CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: JamesV on February 16, 2016, 01:11:14 PM

Title: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: JamesV on February 16, 2016, 01:11:14 PM
As a quick little side project, I've started porting my TI-84+CSE port (https://www.cemetech.net/programs/index.php?mode=file&path=/84pcse/asm/games/spaze.zip) of Movax's Spaze Invaders over to the newer TI-84+CE. This shouldn't take too long :)

(http://imageshack.com/a/img921/4784/3fiaNw.png)
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dudeman313 on February 16, 2016, 01:29:20 PM
Cool! So Zargul, Thunderbirds CE, Alien Breed CE and now this, makes 4 projects you're working on at once for the CE. Plus Snail Maze makes 5 total, right? I think if you finish all these, you will have been the current most contributing author of CE games as of now. I don't know about what's on TI-Planet and such, but on Cemetech and here, no author has made that many. Congrats! :P
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: JamesV on February 16, 2016, 10:25:51 PM
Quote from: Dudeman313 on February 16, 2016, 01:29:20 PM
Cool! So Zargul, Thunderbirds CE, Alien Breed CE and now this, makes 4 projects you're working on at once for the CE. Plus Snail Maze makes 5 total, right? I think if you finish all these, you will have been the current most contributing author of CE games as of now. I don't know about what's on TI-Planet and such, but on Cemetech and here, no author has made that many. Congrats! :P
Maybe - although who knows what other projects other people are working on that they haven't announced yet. We'll see if I manage to get all these finished! Zargul I haven't touched in nearly a year, but I still have every intention of getting back to it. I also have another smallish arcade type game that I've started plans on for the CE, but I haven't written any code yet.

To be honest, I have a list of potential projects that I'd like to get done over the next few years, but this is probably a bit ambitious on my part :P These are all TI-84+CE projects (with Alien Breed & Thunderbirds also being 83+/84+ compatible as well).

(http://imageshack.com/a/img924/3949/fi29rx.png)
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dream of Omnimaga on February 16, 2016, 10:51:39 PM
Glad to see Spaze Invaders being ported. Do you think you will be able to use the full screen with new sprites since that calc is faster or do you plan to stick to the current resolution?

And lol at your project list. At first I thought that was an HP Prime screenshot (using a different skin) because of the layout being used and the fonts, so I thought you were porting some to that calc as well. :P
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dudeman313 on February 17, 2016, 01:24:18 AM
*Dudeman313 looks at project list's lenght*
*Vibrates with anticipation*

*Notices dates*
*Sighs*
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: JamesV on February 17, 2016, 02:47:10 AM
Quote from: DJ Omnimaga on February 16, 2016, 10:51:39 PM
Glad to see Spaze Invaders being ported. Do you think you will be able to use the full screen with new sprites since that calc is faster or do you plan to stick to the current resolution?

And lol at your project list. At first I thought that was an HP Prime screenshot (using a different skin) because of the layout being used and the fonts, so I thought you were porting some to that calc as well. :P
My intention is essentially to just port the CSE version "as is". Mainly because I can the play screen, etc. to be the same scale and feel as the TI-83 original. However I have tossed up the idea of having an alternative "HD" mode in future versions, where it's full screen with higher detail graphics. This would probably just be on the CE though.

A HP? Ewwww... Haha j/k :)
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dudeman313 on February 17, 2016, 03:26:49 AM
Oooo! HD! Then I can show off my CE even more than I already do! :P
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dream of Omnimaga on February 17, 2016, 03:40:40 AM
Quote from: Dudeman313 on February 17, 2016, 01:24:18 AM
*Vibrates with anticipation*
Wait what? O.O

Quote from: JamesV on February 17, 2016, 02:47:10 AM
Quote from: DJ Omnimaga on February 16, 2016, 10:51:39 PM
Glad to see Spaze Invaders being ported. Do you think you will be able to use the full screen with new sprites since that calc is faster or do you plan to stick to the current resolution?

And lol at your project list. At first I thought that was an HP Prime screenshot (using a different skin) because of the layout being used and the fonts, so I thought you were porting some to that calc as well. :P
My intention is essentially to just port the CSE version "as is". Mainly because I can the play screen, etc. to be the same scale and feel as the TI-83 original. However I have tossed up the idea of having an alternative "HD" mode in future versions, where it's full screen with higher detail graphics. This would probably just be on the CE though.

A HP? Ewwww... Haha j/k :)
Ah ok. And yeah I was suggesting because that's a very small screen we got there, and utilizing all of it would probably reduce headaches from playing games that only takes a small portion of the screen like we had on the Game Boy Micro :P

Also lol HP Prime basic language beats CSE ASM in speed by far :P
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dudeman313 on February 17, 2016, 05:11:27 AM
Like this. :P
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dream of Omnimaga on February 17, 2016, 05:17:22 AM
I'm unsure how this is relevant to the current discussion Dudeman. ???
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dudeman313 on February 17, 2016, 05:29:47 AM
I can't quote from my Nokia, I'm supposed to be asleep at 12:30 AM, but if I was at my computer, I would've quoted the beginning of your previous post.
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dream of Omnimaga on February 17, 2016, 05:30:59 AM
Ah ok. It's generally best to add context to your posts, even if not the direct quote, to be understood, and generally it's best to also add to the original topic discussion.
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: JamesV on February 17, 2016, 08:07:17 PM
It's coming along pretty quick - hopefully I can have it finished by next week.

(http://imageshack.com/a/img924/6465/On2gdh.gif)
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dudeman313 on February 17, 2016, 08:44:42 PM
Nice! I just got back online, and it seems like from the time I was last online, the amount of CE games released started exponential growth! :D
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dream of Omnimaga on February 17, 2016, 09:04:25 PM
Looks very good, as always, James. :) ANd yeah Dudeman313, if CW users also take interest in making CE games, then I think there will be many to come.
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: JamesV on February 17, 2016, 10:06:08 PM
From the last couple of months of starting my way into transitioning over to TI-84+CE assembly coding, I think any TI-83/83+/84+ assembly coders could make the jump without too much difficulty. The concepts are all essentially the same, it's just a case of remembering that the multi-byte registers are now 24-bit instead of 16-bit, and also just a few little LCD things such as setting the bits per pixel mode and setting up a colour palette, and (if required) using vram flipping.

I've got my own little BMP/PNG to ASM/BIN Windows command line program that can take images and generate .asm or .bin files in either 8bpp or 4bpp. I'll eventually release this program once I've cleaned it up a little and added a few more features. I believe Mateo has his own similar program as well. So creating and converting images & sprites will be fairly straight forward.
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dudeman313 on February 17, 2016, 10:31:31 PM
I just now looked closer at that GIF :P. The title screen is so cool!

EDIT:
WHAT?!?! Can it really be? A release!
I was on your website(bored, not stalking...) and saw it! Downloaded and sending right now! @JamesV ! This should be in the news!
:w00t:  :w00t:  :w00t:
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: JamesV on February 22, 2016, 04:53:52 AM
Quote from: Dudeman313 on February 17, 2016, 10:31:31 PM
I just now looked closer at that GIF :P. The title screen is so cool!

EDIT:
WHAT?!?! Can it really be? A release!
I was on your website(bored, not stalking...) and saw it! Downloaded and sending right now! @JamesV ! This should be in the news!
:w00t:  :w00t:  :w00t:
It is now available for download, yes :)
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dudeman313 on February 22, 2016, 12:03:52 PM
I found a bug. :( When I got the game over message, after playing on Medium, the game went to the title screen. Instead of pressing [2nd], I pressed [clear], to exit. It crashed. I can't get my scores back on Calcuzap and CMonster, as they are kept in RAM(maybe that should be changed), but Phasm restored Celsium to my calculator. :walrii:

EDIT:
This could be because the program was archived, hidden, or ran from Celsium.
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: JamesV on February 22, 2016, 07:44:53 PM
Quote from: Dudeman313 on February 22, 2016, 12:03:52 PM
I found a bug. :( When I got the game over message, after playing on Medium, the game went to the title screen. Instead of pressing [2nd], I pressed [clear], to exit. It crashed. I can't get my scores back on Calcuzap and CMonster, as they are kept in RAM(maybe that should be changed), but Phasm restored Celsium to my calculator. :walrii:

EDIT:
This could be because the program was archived, hidden, or ran from Celsium.
Mmm just did some testing and everything was fine, until the program was "hidden". I think this is the issue, due to the program write back used to save the high score. I'll do some further testing and if this is the case, I'll rectify it :)
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dream of Omnimaga on February 26, 2016, 05:39:05 AM
Glad to see this released. I'll try it when I have some time :)
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dudeman313 on February 27, 2016, 03:07:27 AM
I was playing this game, and I got a crowd of people to marvel at the HD-ness of my cool color graphics. :P
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: JamesV on March 01, 2016, 12:28:27 AM
There is a bug in the current release version: if you are using Cesium and you have prgmSPAZE "hidden", the game will crash on exit due to an issue with the high score saving. I should have v1.0.2 uploaded in the next 24-48 hours with a fix for this - sorry for anyone who has been affected!
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dream of Omnimaga on March 01, 2016, 04:02:54 AM
By hidden, do you mean like with MirageOS where you can hide programs from the PRGM menu? What exactly caused the crash with highscore saving when the program is hidden?
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: JamesV on March 01, 2016, 12:07:09 PM
Quote from: DJ Omnimaga on March 01, 2016, 04:02:54 AM
By hidden, do you mean like with MirageOS where you can hide programs from the PRGM menu? What exactly caused the crash with highscore saving when the program is hidden?
Correct - the issue was that upon quitting, the code would search for prgmSPAZE and write the high score, but due to silly forgetfulness on my part, I didn't allow for the possibility of prgmSPAZE not being found. So when the program is hidden, the high score is written to a random part of memory O.o

I'm finalising the patch to fix this now and will be uploading shortly :)
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dream of Omnimaga on March 01, 2016, 06:56:11 PM
Ah I see lol. Is it possible to save highscores even when a program is hidden, or is writeback just out of the question in such case?

Also if you would like your game appearing in the CW downloads section James, feel free to add the ticalc.org file page URL in the first post of this topic and I can make the topic appear in both forum sections. :)
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: JamesV on March 01, 2016, 08:59:30 PM
Quote from: DJ Omnimaga on March 01, 2016, 06:56:11 PM
Ah I see lol. Is it possible to save highscores even when a program is hidden, or is writeback just out of the question in such case?

Also if you would like your game appearing in the CW downloads section James, feel free to add the ticalc.org file page URL in the first post of this topic and I can make the topic appear in both forum sections. :)
If it's hidden by Cesium, then it will be able to find itself to save the highscore, as it now accounts for the method that Cesium uses to "hide" programs.

v1.0.2 with the fix is now available for download here (https://www.cemetech.net/programs/index.php?mode=file&path=/84pcse/asm/games/spaze.zip).
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dream of Omnimaga on March 01, 2016, 09:21:31 PM
I see now, thanks for explaining :3=
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dudeman313 on March 01, 2016, 09:22:54 PM
How come it's only in the CSE directory? Is it compatible between the two, or are both versions within the same zip?
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: JamesV on March 01, 2016, 09:49:28 PM
Quote from: Dudeman313 on March 01, 2016, 09:22:54 PM
How come it's only in the CSE directory? Is it compatible between the two, or are both versions within the same zip?
I might have stuffed something up during the upload - I'll see if I can get that fixed. But yes, both CSE & CE are in the same zip :)
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dudeman313 on March 01, 2016, 10:24:23 PM
Thanks! And I don't know if this is a bug or something, but since it's also in your screenshot I'll assume it's not.

How come when the invaders shoot, sometimes a piece of them disappears? (Ex. Alien shoots laser, laser shaped black rectangle appears on them)
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: JamesV on March 02, 2016, 04:05:04 AM
Quote from: Dudeman313 on March 01, 2016, 10:24:23 PM
Thanks! And I don't know if this is a bug or something, but since it's also in your screenshot I'll assume it's not.

How come when the invaders shoot, sometimes a piece of them disappears? (Ex. Alien shoots laser, laser shaped black rectangle appears on them)
That's kind of intentional - it's carried over from the original TI-83 version which did the same thing. I could have rewritten the graphics stuff to avoid it, but I felt that the port felt more authentic by keeping that in there :)
Title: Re: Spaze Invaders v1.0.1 (TI-84+CSE & CE)
Post by: Dudeman313 on March 02, 2016, 07:54:26 PM
Oh. Okay. :)
I'm gonna go play this some more....  8)