CodeWalrus

CodeWalrus Website => Game, Software and Music Downloads => Games => Topic started by: Unicorn on May 13, 2016, 05:37:16 AM

Title: [TI-84+CE] StackerCE - Stacker for the TI84+ CE [C]
Post by: Unicorn on May 13, 2016, 05:37:16 AM
Have you ever played the timeless game Stacker on your Phone, or at an arcade? Well, now you can with the all new StackerCE! The program is complete, with customizable colors and two different skins, as well as an Endless gamemode! I suggest giving this game a try!

Download (https://www.cemetech.net/programs/index.php?mode=file&id=1466)

(https://usercontent.irccloud-cdn.com/file/3iS8bqsX/stacker.gif)

[spoiler=Original]Hey everyone! I pretty much finished SwipeCE yesterday, so I decided to go ahead and start creating another game! At first I went for snake, but I haven't figured out how to get a snake moving around, so I decided to port Stacker!

Anyways, Screenshot below, and I hope to finish it by next week Wednesday or so, depending on the amount of studying I have to do for finals ;)

(https://usercontent.irccloud-cdn.com/file/DwQ60DE4/Stacker.gif)[/spoiler]
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Dream of Omnimaga on May 13, 2016, 05:57:10 AM
Oh that's a nice idea actually. I didn't play that game before but I saw it in some arcades. Do you plan to add some graphics once the engine is done? (eg make the blocks look more like Tetris and make the frame more detailed, maybe like the arcade?)
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Unicorn on May 13, 2016, 06:02:56 AM
Thanks!

I may do that, though I don't want to make the program to large, if you know what I mean. But I guess the graphics are 10x10, so 2 or 3 of those wouldn't increase the size by to much.
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Dream of Omnimaga on May 13, 2016, 06:04:12 AM
Well, you could probably just use a few graphics that are tiled and at low bit rate (I think 16 colors would be more than enough) and have parts that are just a plain color. Or for squares you could draw some borders with line and rectangles.
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: alexgt on May 13, 2016, 12:01:23 PM
Looks nice Unicorn ;) I am actually pretty good at the real stacker :P
Title: Re: StackerCE - Stacker for the TI84+ CE [C]
Post by: kegwaan on May 14, 2016, 01:40:52 AM
Whoa, I think this'll turn out nice.
And I'm pretty good at the real arcade stacker too, as good as you can get at a rigged game  <_<
Title: Re: StackerCE - Stacker for the TI84+ CE [C]
Post by: Dudeman313 on May 14, 2016, 03:29:47 AM
Nice idea!

What I would want to see is maybe another iOS to CE port, more specifically, Stack.
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Dream of Omnimaga on May 14, 2016, 04:45:23 AM
Quote from: kegwaan on May 14, 2016, 01:40:52 AM
Whoa, I think this'll turn out nice.
And I'm pretty good at the real arcade stacker too, as good as you can get at a rigged game  <_<
Is the arcade version really rigged or is it just very hard? Because I find it kinda weird that such type of game would be rigged, unless it's a mechanical arcade machine or that the game code makes the block stop moving a little bit too late only in certain occasions so you spend more credits.

EDIT: It seems like it's definitively rigged, according to Google. It can be hard to tell with arcade games, though. Many old arcade games are not necessarily rigged, but super mega hard as hell. This is why many console action games in the 90's were so hard, because they were based on arcade games.
Title: Re: StackerCE - Stacker for the TI84+ CE [C]
Post by: alexgt on May 15, 2016, 01:41:39 AM
Well that is why we have 3D printers! now you can print a plastic tool to fool arcade games that you put in a quarter  (-_(//));
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Unicorn on May 15, 2016, 04:25:20 AM
Its done! Download in the OP, heres a screenshot! There is still things to do, like sprites and customizable colors and menus, but for now, it works :)

(https://usercontent.irccloud-cdn.com/file/NueNUXwG/Stacker.gif)
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: alexgt on May 15, 2016, 05:37:34 AM
Nice work Unicorn ;) It looks great!
Title: Re: StackerCE - Stacker for the TI84+ CE [C]
Post by: kegwaan on May 15, 2016, 01:39:16 PM
Whoa, looks good  :thumbsup:
Are you going for looking like the original or basing it off of the original? Either way, I think it'll turn out nice.
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Unicorn on May 15, 2016, 03:53:00 PM
Thanks guys!I'm thinking I'm gonaa create my own sprites, but I may ad an option to have the original graphics...
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Dream of Omnimaga on May 17, 2016, 08:27:32 AM
Glad to see a release. I'll download it when I can. Is it rigged like the original game? Because Critor on TI-Planet tried the game multiple times and could reach the second to last row multiple times, but never the last. :P https://tiplanet.org/forum/viewtopic.php?p=201811#p201812
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: aetios on May 17, 2016, 08:27:57 AM
So if I win do I get a psvita?
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Unicorn on May 17, 2016, 09:57:06 PM
Quote from: DJ Omnimaga on May 17, 2016, 08:27:32 AM
Glad to see a release. I'll download it when I can. Is it rigged like the original game?
lol, no, I wouldn't do that :P

Quote from: aeTIos on May 17, 2016, 08:27:57 AM
So if I win do I get a psvita?
if you try hard enough :P

Anyways, I added a menu and you can now change colors at will! The other two options, original sprites and custom sprites are not yet implemented, I'm waiting for @MateoConLechuga to respond about some convpng problems...

(https://usercontent.irccloud-cdn.com/file/ynRZiCHE/Stacker.gif)
Title: Re: StackerCE - Stacker for the TI84+ CE [C]
Post by: SiphonicSugar on May 17, 2016, 10:02:17 PM
Hmm... I'm starting to wonder if @MateoConLechuga is a library for ez80. :P

No offense to anyone.
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Dream of Omnimaga on May 17, 2016, 10:03:36 PM
Quote from: aeTIos on May 17, 2016, 08:27:57 AM
So if I win do I get a psvita?
Lol aeTIos. Good luck because if the game is programmed like the original then winning THE GAME might be close to impossible >.<
Quote from: Unicorn on May 17, 2016, 09:57:06 PM
Quote from: DJ Omnimaga on May 17, 2016, 08:27:32 AM
Glad to see a release. I'll download it when I can. Is it rigged like the original game?
lol, no, I wouldn't do that :P

Quote from: aeTIos on May 17, 2016, 08:27:57 AM
So if I win do I get a psvita?
if you try hard enough :P

Anyways, I added a menu and you can now change colors at will! The other two options, original sprites and custom sprites are not yet implemented, I'm waiting for @MateoConLechuga to respond about some convpng problems...

(https://play.google.com/store/apps/details?id=com.ketchapp.stack&hl=en)
I was asking because according to critor, the last row is impossible to beat because the square always stop slightly too late like in the original, but maybe it was just a  coincidence. :P Good luck adding sprites to the game. (also your image link is broken)  :)
Quote from: SiphonicSugar on May 17, 2016, 10:02:17 PM
Hmm... I'm starting to wonder if @MateoConLechuga is a library for ez80. :P

No offense to anyone.
He's not a bot O.O
Title: Re: StackerCE - Stacker for the TI84+ CE [C]
Post by: SiphonicSugar on May 17, 2016, 10:05:55 PM
No no no!  O.O I don't think that he's a bot! Bots can't be that smart. And my proof is that I've seen him say humanly things on Cemetech IRC.
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Dream of Omnimaga on May 17, 2016, 10:24:00 PM
We never know, though. Cemetech and Omnimaga had their share of bots that were smart enough to post relevant replies to calculator topics. O.O
Title: Re: StackerCE - Stacker for the TI84+ CE [C]
Post by: SiphonicSugar on May 17, 2016, 10:28:19 PM
Wal 9000
/\
|
"W" in walrrii
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Unicorn on May 18, 2016, 02:52:58 AM
Woops, my I still had a google link on the clipboard, here the image is:

(https://usercontent.irccloud-cdn.com/file/ynRZiCHE/Stacker.gif)
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Dream of Omnimaga on May 18, 2016, 03:11:57 AM
Has the row skipping bug shown in the screenshot been fixed?
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Unicorn on May 18, 2016, 03:50:01 AM
Oh yes, that...

I'm not exactly sure what causes that, I'm gonna check using the debug library, but I don't think it happens on the actual calc.
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: alexgt on May 18, 2016, 04:34:08 AM
Quote from: Unicorn on May 18, 2016, 03:50:01 AM
Oh yes, that...

I'm not exactly sure what causes that, I'm gonna check using the debug library, but I don't think it happens on the actual calc.
That is strange, sounds mire like a HP Prime emu bug to me :trollface:
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Unicorn on May 18, 2016, 04:35:11 AM
Quote from: alexgt on May 18, 2016, 04:34:08 AM
Quote from: Unicorn on May 18, 2016, 03:50:01 AM
Oh yes, that...

I'm not exactly sure what causes that, I'm gonna check using the debug library, but I don't think it happens on the actual calc.
That is strange, sounds mire like a HP Prime emu bug to me :trollface:
haha, not really. More like the emu goes faster than the real calc and you don't hold buttons down if you play regularly
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: alexgt on May 18, 2016, 04:38:23 AM
Yeah, I have found that GETKEY is acting much stranger than what I remember when I was coding on the 84+, when I was making a little game on my friends CE I found that GETKEY and loops do not like each other xD
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Unicorn on May 18, 2016, 04:38:57 AM
Quote from: alexgt on May 18, 2016, 04:38:23 AM
Yeah, I have found that GETKEY is acting much stranger than what I remember when I was coding on the 84+, when I was making a little game on my friends CE I found that GETKEY and loops do not like each other xD
Except for that fact that I'm using the C keypad library...
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: alexgt on May 18, 2016, 04:40:00 AM
Oh, well then IDK :P. I am learning C though, except that is on hold until MinePrime is more up to snuff
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Dream of Omnimaga on May 18, 2016, 04:14:47 PM
About CEmu, I did notice it runs slightly faster than the calculator, but the weirder part is that when taking screenshots the TI-Basic key detection seems very poor.
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Unicorn on May 18, 2016, 08:01:21 PM
Update: I added sprites, a menu, and custom colors, here's a screenshot if you're interested.

(https://usercontent.irccloud-cdn.com/file/hG3FxGRV/Stacker.gif)

There are still some menu, quitting, and losing bugs, but they should be relatively easy to smash. After I get those, I'm thinking about adding an endless mode...
Title: Re: StackerCE - Stacker for the TI84+ CE [C]
Post by: SiphonicSugar on May 19, 2016, 12:50:55 AM
What's teh custom sprite option about?  :P
Title: Re: StackerCE - Stacker for the TI84+ CE [C]
Post by: MateoConLechuga on May 19, 2016, 02:22:48 AM
Quote from: SiphonicSugar on May 19, 2016, 12:50:55 AM
What's teh custom sprite option about?  :P
Watch the GIF all the way through :)
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Dream of Omnimaga on May 19, 2016, 12:38:55 PM
This is why I think the screenshot should have displayed the sprite mode first, because earlier I was using 3G and could only see the first half of the GIF, and I couldn't see any difference from the previous version lol.

My suggestion for the new version would be to allow the player to use sprites similar to the original arcade game. :)  (and perhaps a 16x16 :walrii: mode)
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Unicorn on May 19, 2016, 08:06:47 PM
Yup, I was having some problems with key detection, but now everything owrks fine, so the screenshots should be smaller. Also, I can get that original sprites gamemode working if I can get someone to make those sprites :P

Ok, endless mode is done, download in OP

(https://usercontent.irccloud-cdn.com/file/KMiFxogx/Stacker.gif)
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: alexgt on May 19, 2016, 08:55:53 PM
That looks nice Unicorn ;)
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Dream of Omnimaga on May 19, 2016, 09:52:36 PM
Hm I still notice the game skips a row in the 2nd screen. Is that normal?
Title: Re: StackerCE - Stacker for the TI84+ CE [C]
Post by: SiphonicSugar on May 19, 2016, 10:05:25 PM
Lol, it would be cool if you could actually win things from this.  O.O
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Unicorn on May 20, 2016, 02:41:35 AM
Quote from: DJ Omnimaga on May 19, 2016, 09:52:36 PM
Hm I still notice the game skips a row in the 2nd screen. Is that normal?
Nope, but at the time of this post, I fixed it ;) I think its just about ready, I have to make 3 or so more sprites, and then I'm all set for a final release! (By that time the mew graphics library may have come out and I will need to update my code)
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: MateoConLechuga on May 20, 2016, 03:26:18 AM
Quote from: Unicorn on May 20, 2016, 02:41:35 AM
Quote from: DJ Omnimaga on May 19, 2016, 09:52:36 PM
Hm I still notice the game skips a row in the 2nd screen. Is that normal?
Nope, but at the time of this post, I fixed it ;) I think its just about ready, I have to make 3 or so more sprites, and then I'm all set for a final release! (By that time the mew graphics library may have come out and I will need to update my code)
Sorry, it has :( Updating should be a breeze though; CheckersCE was over 1000 lines and it took like 10 minutes to find and replace the functions :) Awesome work Unicorn :D
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Dream of Omnimaga on May 20, 2016, 03:27:42 AM
As long as you don't make people have to update their code every few month then it should be fine (although more often is fine too if for very large projects it only requires small changes that can be done easily via Find/Replace. :) Otherwise it could lead to many people refusing to update. :P
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: MateoConLechuga on May 20, 2016, 03:35:41 AM
Quote from: DJ Omnimaga on May 20, 2016, 03:27:42 AM
As long as you don't make people have to update their code every few month then it should be fine (although more often is fine too if for very large projects it only requires small changes that can be done easily via Find/Replace. :) Otherwise it could lead to many people refusing to update. :P
Haha, I totally agree. This update is the first and last that will actually change the names of functions; it was mainly done to make things easier to use and understand. Unicorn; I do have one comment on your code that should help decrease size by a lot: Use smaller types :) Some functions only require a uint8_t, but you send them ints, which means mode code and more data. Also, it is faster to put variable declarations in functions, rather than having everything be global. Globals tend to make the code a bit harder to read. Other than that; you have come a long way I must say :) Nice job.
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Unicorn on May 22, 2016, 08:11:02 AM
huh. didn't know that about declaring things and such... I generally only use int's as a rule right now, which I really shouldstop doing...

Anyways, I really need to get one more sprite. If anyone is bored, cod you make a sort of red gradient to act likea border?
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Dream of Omnimaga on May 22, 2016, 07:28:33 PM
I might try to do something later but it will most likely just be like lines
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Unicorn on May 29, 2016, 04:59:32 AM
Hey everyone!

I've been hard at work (sorta) and I've made 2 gamemodes and 3 skins. The first one is Regular Mode where if you make it to the op you win, and the second one in Endless Mode, where the game is endless, increasing in speed indefinitely. Anyways, I'm all done, and I've uploaded it to the OP and it will also appear here: https://www.cemetech.net/programs/index.php?mode=file&id=1466

(https://usercontent.irccloud-cdn.com/file/3iS8bqsX/stacker.gif)
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Dream of Omnimaga on May 29, 2016, 07:43:57 PM
Very nice! I'll try this version soon :)
Title: Re: [TI-84+CE] StackerCE - Stacker for the TI84+ CE [C]
Post by: Dudeman313 on June 07, 2016, 11:54:06 PM
Looks cool! :D
Title: Re: [TI-84+CE] StackerCE - Stacker for the TI84+ CE [C]
Post by: GalacticPirate on November 30, 2016, 06:25:00 PM
Am I the only one who can't reach even the first row ? Each time I press 2nd, it goes directly to the Game Over Screen. I only managed to get to the second row by pressing the key superduperfast, but that makes that game impossible...
Title: Re: StackerCE - Stacker for the TI84+ CE
Post by: Unicorn on November 30, 2016, 06:46:48 PM
Quote from: STV on November 30, 2016, 06:25:00 PM
Am I the only one who can't reach even the first row ? Each time I press 2nd, it goes directly to the Game Over Screen. I only managed to get to the second row by pressing the key superduperfast, but that makes that game impossible...
Yeah, that is a problem. Though I am able to do it without a problem, and get up to like 9. Are you running it in CEmu? I need to update it with better key pressing to make sure it doesn't repeat, so you could hold it down, but it will only send it once.
Title: Re: [TI-84+CE] StackerCE - Stacker for the TI84+ CE [C]
Post by: GalacticPirate on December 01, 2016, 01:01:15 PM
Yeah, actually I finally managed to get to 5 or 6 but that requires an inhuman precision (if you press the key too fast it isn't detected at all, and if you press it too slow it counts 2 key presses and that's an automatic Game Over). By the way, I have exactly the same problem with your Swipe Arrows game :p