CodeWalrus

Development => Calculators => Calculator News, Coding, Help & Talk => Topic started by: Derf321 on March 06, 2015, 07:12:11 PM

Title: Free Code up for grabs! (Nazi Zombies)
Post by: Derf321 on March 06, 2015, 07:12:11 PM
I made this around 3 years ago but never finished it because I graduated high school. It's for Axe on Ti83 or Ti84, It's mostly finished, just with a few little tweaks needing to be done. I attached a GIF of it in action, it's a top down view Nazi Zombies with 4 different guns (Pistol, Shotgun, Sniper, WunderWaffe). You can buy ammo from the mystery box (random) and it'll store the highscore of the highest round reached. I always compiled with Axe Fusion or Application. Also I attached a sheet laying out what each variable is and what I had planned to do.

Problems were: Wunderwaffe eats wall pixels in the middle (need to make it ChgPxl instead of what I had), sniper occasionally eat a wall pixel, and occasionally zombies get stuck on the middle wall (as shown).

If anyone takes the initiative to finish it, let me know! I just figured I shouldn't let this go to waste =)

(also cheat code, type 1337 on the main menu for 999 health)

Files here: https://www.dropbox.com/sh/vvcyd1tusie9m54/AAB-Yjc4Uqpuc40RQrUFo3Afa?dl=0#/ (https://www.dropbox.com/sh/vvcyd1tusie9m54/AAB-Yjc4Uqpuc40RQrUFo3Afa?dl=0#/)

https://i.imgur.com/dMzWjRX.gif
Title: Re: Free Code up for grabs! (Nazi Zombies)
Post by: Dream of Omnimaga on March 06, 2015, 10:05:37 PM
Heya and welcome to the forums @Derf321 . :) I'll definitively check this out when I have some time. Do you still do any kind of programming, by the way? (Such as computer, mobile and homebrew?) I myself don't do Axe nor computer stuff, but some people here does. :)
Title: Re: Free Code up for grabs! (Nazi Zombies)
Post by: Derf321 on March 06, 2015, 10:47:09 PM
Thanks for the warm welcome! I actually do some game coding in Unity (android and iOS apps), should be releasing my first finished game soon.

Is this site the sister site of Omnimaga? I can't help but notice the similarities especially in forum layout and your name.
Title: Re: Free Code up for grabs! (Nazi Zombies)
Post by: Dream of Omnimaga on March 07, 2015, 04:54:47 AM
Nice to hear :D. Feel free to showcase your work (and other stuff here) when you feel like it :)

As for the site it isn't really Omni's sister site, since CW started due to many Omnimaga members including myself being unable to adapt to the changes in policies that ocurred there one year after I stepped down from my Omnimaga admin position in July 2011 (not that those policies are a bad thing). A lot of the members who are active here are people who joined Omni from 2010 to 2012, although there are exceptions such as Desolate/xLIB author tr1p1ea, who joined the TI community in 2003. CodeWalrus tried to bring back the Omnimaga that existed from 2009 to 2011. Since I founded both sites and that SMF has been my favorite software since 2008 (Omni used Invisionfree before), both sites use SMF and their respective themes are based off the default SMF theme as seen at www.simplemachines.org/community/index.php , which explains why they look similar. As for the plugins and layout, it's mostly based off what Omni used back when I ran it as an SMF 1.1 site.

As for my nickname I started using it as music artist name in late 2006. I used xlibman and Kevin before. I sometimes use DJ_O on other forums, though.


By the way your game seems really fun to play! :) It's a shame that it was never finished. I like the concept. It may look simple at first, but it does the job very well. Earlier, I was unable to watch the GIF because it didn't play on my phone, but now it works and I liked what I saw.
Title: Re: Free Code up for grabs! (Nazi Zombies)
Post by: Snektron on March 07, 2015, 10:30:30 PM
I don't think it's an animated GIF, since it wont play on my pc either
Title: Re: Free Code up for grabs! (Nazi Zombies)
Post by: Dream of Omnimaga on March 08, 2015, 02:13:39 PM
Now that I check again on my phone, it seems that you need to download it to animate it.
Title: Re: Free Code up for grabs! (Nazi Zombies)
Post by: Derf321 on March 09, 2015, 04:35:41 AM
Quote from: Cumred_Snektron on March 07, 2015, 10:30:30 PM
I don't think it's an animated GIF, since it wont play on my pc either

Sorry, I didn't realize you had to change the dropbox link to "dl" instead of "www" to play the gifs. I fixed the link

Quote from: DJ Omnimaga on March 07, 2015, 04:54:47 AM
By the way your game seems really fun to play! :) It's a shame that it was never finished. I like the concept. It may look simple at first, but it does the job very well. Earlier, I was unable to watch the GIF because it didn't play on my phone, but now it works and I liked what I saw.

Ah that explains it, either way I really liked Omni and I seem to like this site (though I'm not sure how active I'll be with school). Thanks! I wish I finished it too back in the day, I probably could have but I originally wrote it in BASIC, but then learned about how amazing Axe was and had to convert it all over. It could be optimized with a saved Hex picture of the map too. Eventually I wanted to make different maps, since the zombies walk path is targeted to the nearest opening first, then the player (if they're inside), or just the nearest path to the player. Of course I'm no expert on optimization, but I figure someone else could take over on it if they're into Axe development (which I know is on the downward slant with the TI+C calculators.
Title: Re: Free Code up for grabs! (Nazi Zombies)
Post by: Dream of Omnimaga on March 09, 2015, 05:10:44 AM
Wait the AI can actually detect paths too? That's nice. And yeah Axe is kinda on a downward slump since the 84+CSE arrived, although with the 84+CE it looks like the same will happen to 84+CSE dev soon, as it's getting discontinued and fewer and fewer people will be able to buy it.

That said, the code of your game could probably be ported to a different language if someone wanted to port it to newer calcs, although that might not be ideal. The best for a new calc game would be to write the code from scratch or port a game from BASIC or ASM.
Title: Re: Free Code up for grabs! (Nazi Zombies)
Post by: Derf321 on March 09, 2015, 05:30:46 AM
Quote from: DJ Omnimaga on March 09, 2015, 05:10:44 AM
Wait the AI can actually detect paths too?

The best for a new calc game would be to write the code from scratch or port a game from BASIC or ASM.

Yeah, you can see in the .gif (quickly) that the zombies head for the doorways first (specific saved coordinates which could be changed) and then after the player. I have a one-off error with the doorway though which is why zombies get stuck on the corner sometimes like in the .gif.

Though it probably is best to recode for other calculators, Axe just translates your source into ASM to be used by the calculator, right? I wonder if someone could make a reverse compiler to take an ASM program (such as mine after compilation) and write it into the language of your choice. Just an idea.
Title: Re: Free Code up for grabs! (Nazi Zombies)
Post by: Dream of Omnimaga on March 09, 2015, 06:06:46 AM
Actually, now that you mention it, someone once ported a 83+ Axe game to the 83 by disassembling it then translating the code. Something like this could be possible on color models, but screen routines would need to be recoded from scratch.
Title: Re: Free Code up for grabs! (Nazi Zombies)
Post by: Snektron on March 09, 2015, 05:57:36 PM
Hmm, that's not a bad idea actually. Maybe something like LLVM (it's like a general ASM language, compiling to various processors), but specifically for calculators.
It would be harder to do on-calc programming, but the source could always be extracted and compiled to different models on PC :P
Title: Re: Free Code up for grabs! (Nazi Zombies)
Post by: Dream of Omnimaga on March 10, 2015, 01:51:03 AM
There's always Source, by iconmaster, if he is still around and working on it. It's for the HP Prime but he had plans to allow Source programs to be converted to PC languages as well, so maybe a converter to ASM or Axe would be an idea? After all, this was the idea of the MLC language back in the days, which was meant to allow developing for the Casio AFX 2.0, TI-86 and 68K calcs simultaneously, with an HP 49g port being considered at the time.