Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Spenceboy98

Pages: [1] 2 3
1
TI Z80 / Zombie Chase CE [C]
« on: March 07, 2016, 06:02:21 am »
I have ported my Prizm game Zombie Chase to the CE! It has the same gameplay, but with a new feature! Now as you pick up health packs, you also get points! See how many points you can get before you die! I also plan on updating my other versions for other calcs to have this feature. :)

In this game you are a white square attempting to survive the zombie apocalypse. You must collect red health packs and avoid green zombies, or you will die. Good luck!

Just in case you don't rememner the Prizm or the Nspire version, here are links to the topics:
Prizm: https://www.omnimaga.org/casio-prizm-projects/(prizm-c)-zombie-chase/
Nspire: https://www.omnimaga.org/ti-nspire-projects/(nspire-c)-zombie-chase/

Screenshot:


You can download from here.

2
TI-Nspire / [Nspire C] Catylizm
« on: November 08, 2015, 06:49:36 pm »
This is a port of my Catylizm game for the  Prizm that won first place in the Cemetech Contest #13. It should work fine, but I've only tested it in the emulator. Could someone test it on a real device and let me know if there are any issues? The touchpad should work for controls during gameplay. Also, could someone test/get a screenshot on a non-color Nspire? Help is appreciated. :)

Side-by-side screenshots with the Prizm version:
Nspire:                                                                                       Original Prizm:
 
 
 
 

TNS attached. :P

3
Casio PRIZM / [PRIZM] CATylizm
« on: January 05, 2015, 04:29:00 pm »
This is my entry from the Cemetech Contest #13 that won 1st place (which still surprises me).

Here is the Cemetech post:
Quote
Well, I guess I need to make a topic. I wasn't going to enter the contest due to lack of creative ideas, but I was playing around with making space-cat sprites, and I chose otherwise. Razz So my entry is CATylizm (CAT because cats and -izm because it's for PRIZM). I didn't want to do things similar to other contestants, but I figure mine is in a different CATegory , so it's okay if there are similar components.

The game is as follows: You're a cat in a spacesuit with a jet-pack. You have to fly through space collecting coins and space-mice (a mouse is worth 5 coins), but you have to dodge obstacles (which means there is a health bar involved). You also have a fuel tank that will run out, but you can pick up fuel tanks as you go. The object of the game is that you have to get as many coins as you can before your fuel runs out.

Also, I am hoping to add turbo boosts so that if you CATch one it will make you invincible and super fast for a short amount of time, but I will only add them if I can get everything else working first.

This will be written in PRIZM C.

I wanted to make a topic here because not everyone on Omnimaga goes on Cemetech.

Description:
You are a Space Cat named Carl, and you must get as many points as you can by collecting coins for one point each or collecting mice for five points each. You must avoid asteroids and keep from running out of fuel. Good luck!

Screenies:




Download link: http://www.cemetech.net/programs/index.php?mode=file&id=1224

For those of you who prefer an attachment download, it's attached. :P

4
Casio PRIZM / [PRIZM] Cookie Clicker
« on: July 08, 2014, 04:51:40 pm »

Hello, everyone! For the past couple days I've been bored, so I decided to play around with programming (since I hadn't in a while). Cookie Clicker seemed easy enough to make, so I decided to try to port/clone it (not sure which to call it; a port or a clone?). I tried making it as accurate to the original as I possibly could. It's pretty simple for now. I plan on adding a saving/loading feature to save your data when you exit the program and to load it back up when you re-enter it later. So far I could only get the Cursors through the Time Machines to work properly in the shop. Here is a screenie to show what I've done so far:





(Idea and Sprites are not mine; they were created by Orteil)

5
Casio PRIZM / [PRIZM C] Ponies!
« on: July 26, 2013, 11:59:24 pm »
This is my version of Desktop Ponies for the Casio Prizm. So far I only have Applejack done, but I hope to get the rest of the mane 6 and Derpy(do you really have to ask why?) done too(I'll take requests when I get all of the mane 6 and Derpy done)! They are all going to be separate addins for each(because of memory reasons).

Screenie:


Should I add a background color(different for each pony)? If so, what colors for each pony should I use?

Download attached.

6
Calculator C / [Ndless] Tunnel
« on: June 17, 2013, 04:08:44 pm »
Hello all. I saw this tutorial on how to make a tunnel and I decided to port it to Nspire. I'm having problems though. It only displays half of the tunnel correctly(the right side).

Could you guys help(I directly ported the code from the tutorial)?

Gif is attached(faster on calc).

7
TI-Nspire / [Nspire C] Zombie Chase
« on: May 20, 2013, 12:40:51 am »
This is a port of my Prizm game Zombie Chase.

Here is some screenies:




The problem is, is that it reboots the calc every time you exit.
This is the code it does when the while loop breaks:
Code: [Select]
free(screen);
return 0;

The screen variable is:
Code: [Select]
screen = (char*)malloc(SCREEN_BYTES_SIZE * sizeof(char));
I hope you can help so that I can get this uploaded for you to enjoy(or dislike :P).

8
General Calculator Help / Nspire won't delete OS D:<
« on: May 19, 2013, 12:56:07 am »
This is really frustrating me. It won't let me delete my Nspire's OS. I go to the maintenance screen and I press 2,but it does nothing. All the other options work, but this doesn't. I go to another option and it says press any other key to cancel, so I pressed 2 and it worked fine. Any ideas?

 :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: >:( >:( >:( :'( :'( :'(
Frustrating.

9
Casio PRIZM / [PRIZM] Paint
« on: May 03, 2013, 08:09:14 pm »
I was disappointed when zeldaking never finished his Paint program, so I Decided to make my own!





It's got circle drawing(no ellipse), rectangle drawing, line drawing, pen, floodfill, zooming in(plus button), zooming out(minus), has a grid for larger than 3x, and a color picker(hope I didn't leave anything out). It took me a while to figure out how to make it actually draw, but then I realized that I could draw a sprite to the screen and just edit the sprite data. The problems that I'm having is, opening files(.ppf files stands for Prizm Picture Files, I already have saving working okay), rotating image(I couldn't figure out how, I asked in my topic, but no one helped), resizing properly(resize it so the new image doesn't look corrupted and just adds white pixels in those places), displaying the hex of the color in the color picker(it is only displaying the #?), scaling gets corrupted after the displayed pic gets over 115(or something like that) pixels high or wide, and I think that's it unless I forgot.

Here is the opening code(if you can help, it segfaults the calc at the end of the progress bar):
Code: [Select]
void openFile(char *PATH, color_t *data, int width, int height){
    char databuf[5];
    unsigned short buffer[sizeof(PATH)*2];
    Bfile_StrToName_ncpy(buffer, (unsigned char*)PATH, strlen(PATH)+1);
    int hFile = Bfile_OpenFile_OS(buffer, 0);
    for(int i = 0; i < height; i++){
        for(int j = 0; j < width; j++){
            ProgressBar((i*width)+j, width*height);
            Bfile_ReadFile_OS(hFile, databuf, 5, ((i*width+j)+2)*5);
            data[(i*width+j)] = strtol(databuf, NULL, 10);
        }
    }
    Bfile_CloseFile_OS(hFile);
    return;
}

I don't have any code for rotating(90 degree increments), but if you could help, it would be nice.

Here is my resizing code, so if you could help make the output less corrupted:
Code: [Select]
void resizeImage(color_t *image, int w1, int h1, int w2, int h2){
    int w, h;
    color_t* holder = image;
    color_t* temp = (color_t*)malloc(((w1*h1)*2)*sizeof(color_t));
    temp = (color_t*)realloc(temp, ((w2*h2)*2)*sizeof(color_t));
    if ( temp != NULL ){
        image = temp;
    } else {
        free(temp);
        return;
    }
    if(w1 < w2){
        w = w1;
    } else {
        w = w2;
    }
    if(h1 < h2){
        h = h1;
    } else {
        h = h2;
    }
    for(int i = 0; i < h; i++){
        for(int j = 0; j < w; j++){
            image[(i*w)+j] = holder[(i*w)+j];
        }
    }
}

Here is the code for changing the RGB values to Hex(based off of my TI-BASIC program):
Code: [Select]
char* RGBtoHex(int r, int g, int b, char buffer[7]){
    char val[16] = "0123456789ABCDEF";
    float a = (r/16);
    float c = (g/16);
    float d = (b/16);
    int e = floor(a);
    int f = floor(c);
    int h = floor(d);
    if(e > a)
        e--;
    if(f > d)
        f--;
    if(h > c)
        h--;
    a = a - e;
    c = c - h;
    d = d - f;
    a = a * 16;
    c = c * 16;
    d = d * 16;
    buffer[0] = '#';
    buffer[1] = val[e];
    buffer[2] = val[(int)a];
    buffer[3] = val[f];
    buffer[4] = val[(int)d];
    buffer[5] = val[h];
    buffer[6] = val[(int)c];
    return buffer;
}

And, finally here is my nearest-neighbor scaling routine:
Code: [Select]
color_t* Scale(color_t *temp, const color_t* data,int w1,int h1,int w2,int h2) {
    if((w2 <= 0) || (h2 <= 0)){
        return 0;
    } else {
        color_t* milk = (color_t*)realloc(temp, (w2*h2*2)*sizeof(color_t));
        temp = milk;
        int x_ratio = ((w1<<16)/w2)+1;
        int y_ratio = ((h1<<16)/h2)+1;
        int x2, y2;
        for(int i=0;i<h2;i++) {
            for(int j=0;j<w2;j++) {
                x2 = ((j*x_ratio)>>16);
                y2 = ((i*y_ratio)>>16);
                temp[(i*w2)+j] = data[(y2*w1)+x2];
            }
        }
    }
    return temp;
}

I really hope you can help with this. This is pretty much the farthest I've ever made on a Prizm C program from pretty much scratch.

Also, if you help, you get some credit(I'll make an About on the program that lists people who help).

Here's what I have right now:
-Rectangle
-Circle(not ellipses)
-Line
-Dropper
-Fill
-Color Picker with RGB editing(and hopefully hex code editing, but I need to get the hex displaying fixed first) and some preset colors(the same ones from Paint on Windows)
-Resizing(glitchy)
-Zooming/Scaling(glitchy, needs to be fixed; code is in first post)
-Saving(hopefully editing soon if I can get it to work; code is also in first post)

Planning for eventually:
-Eraser
-Select Tool with Copy, Paste, Crop, etc.

I'll take any suggestions if you have any.

10
Calculator C / [Ndless] Program Won't Run
« on: April 28, 2013, 05:20:32 pm »
I send the hello world program from here, and it keeps popping up, "This document format is not supported. Test.tns"

Can anyone help? I'm using the SDK version beta-r765.

11
Casio PRIZM / [Prizm C] Zombie Chase
« on: April 27, 2013, 10:35:55 pm »
Crosspost:

I made a little zombie game today. I was bored. If you gave any suggestions or comments, it will be appreciated.
Here is the download: http://www.cemetech.net/programs/index.php?mode=file&id=891





In this game you are white square and you have to run away from the green squares(zombies). Health bar is at the top. You collect the red squares to gain health. It's a fairly simple game. Good luck.

12
Casio PRIZM / [LuaZM] pFighter
« on: April 20, 2013, 03:12:56 pm »
Ported from adam Tree's nFighter to LuaZM(with permission). In this game, you have to destroy your enemy. There are bonus's too. You shoot them to collect them. B is bullets, S is score, and F is fuel. Try not to run out of bullets or fuel or it's GAME OVER.

You can use arrows or numpad to move. Use [5] or [SHIFT] to shoot. [x^2] to restart.

Here's the cemetech download: http://www.cemetech.net/programs/index.php?mode=file&id=888



Original: http://www.ticalc.org/archives/files/fileinfo/437/43729.html
I will upload it to Omni archives soon.

13
Other Casio Calculators / Casio BASIC Help
« on: March 25, 2013, 10:02:17 pm »
I'm gonna direct my Casio BASIC questions here. First:
Can I not use multiple characters for Lbls? Like:
Code: [Select]
Lbl 10
Lbl AA
Lbl AB
?

14
TI Z80 / [TI-Concours 2013] MIND05(Spenceboy's Mastermind)
« on: March 12, 2013, 09:45:05 pm »
This is my TI-BASIC entry for TI-Concours. It is a Mastermind game. Anyways, it comes up with a random number sequence(or a friend picks one for you) of 4 digits. Sometimes it takes a while to load the random sequence(because it checks to keep a number from repeating). You guess(numbers 0-9, no repeats) until you guess it right. For every right number you guess(in the right place), it displays a plus(not always in order). For every digit in the wrong place, it displays a -(also not always in order). When you get the guess right, it displays the code. At the top of the game screen, it displays how many guesses you have left. Here's the screenie:


15
Casio PRIZM / [PRIZM] Mode 7 Port
« on: February 26, 2013, 06:43:17 pm »
This is a port of a Mode 7 engine by t0xic_kitt3n.

The original:
http://ourl.ca/18123/336651

Download attached.

It works quite well.

Controls:

[8] = Forward
[5] = Backward
[4] = Left
[6] = Right
[7] = Rotate Left
[9] = Rotate Right

Pages: [1] 2 3