Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: fb39ca4 on June 18, 2011, 12:59:40 pm

Title: My Nspire contest entry - nZombie - a zombie FPS game
Post by: fb39ca4 on June 18, 2011, 12:59:40 pm
I have finally decided on what I am going to do for the contest. First, I was going to finish up indestructotank. Then, I changed my mind to a mode 7 racing game. Finally I've settled on a zombie first person shooter game. It will use a wolfenstein style raycasting engine, so just square blocks for walls that are all the same height (I would make it fancier, but it would get too slow). If you've ever played Nazi zombies, it will be somewhat similar to that, surviving rounds of zombies that spawn in the map, while being able to upgrade your weapon and possibly unlock new areas. Of course, being myself, I may change my mind again.

EDIT: First screenshot of the raycasting engine!
http://i.imgur.com/OYEwA.png
My fixed point multiplly and divide are really failing right now :P
Title: Re: My Nspire contest entry-zombie fps game
Post by: SirCmpwn on June 18, 2011, 02:27:44 pm
Wow, sounds great!  I look forward to it.
Title: Re: My Nspire contest entry-zombie fps game
Post by: leafy on June 18, 2011, 02:32:03 pm
DON'T CHANGE YOUR MIND I WOULD LOVE THIS. ^^
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on July 07, 2011, 07:45:50 pm
Screw fixed point.  :mad:
I actually have something I can show now  ;D
I still need to figure out why I can't display anything below the height of those two black lines you can see, though, and I also get a lot of graphical glitches. Right now, the raycasting engine is running at a full 320x240 resolution, I am most likely going to have to only raycast every other column of the screen for the final product due to speed issues, though, and I will take away some vertical resolution for the HUD. Next on my agenda is fixing those problems I mentioned above, then adding textures, then I can actually add zombies!
EDIT: New screenshot, I fixed the not drawing to the whole screen issue, and I changed up the color scheme.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: yunhua98 on July 08, 2011, 10:29:22 am
wow sweet.  Those screenies are great!
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: Spyro543 on July 08, 2011, 10:51:34 am
I want download link!!!1!!! Does it support moving around yet?
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: Jim Bauwens on July 08, 2011, 11:01:31 am
He can't provide the link because its his contest entry. You will have to wait a bit :)
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: Levak on July 08, 2011, 11:15:22 am
He can't provide the link because its his contest entry. You will have to wait a bit :)

I think it is the reason why he wants the link :p
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: pianoman on July 08, 2011, 12:11:13 pm
That. Is. Incredible!
I can't wait until it comes out!
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: Deep Toaster on July 08, 2011, 12:36:36 pm
He can't provide the link because its his contest entry. You will have to wait a bit :)

I think it is the reason why he wants the link :p

^ Less competition, eh?

Screw fixed point.  :mad:
I actually have something I can show now  ;D
I still need to figure out why I can't display anything below the height of those two black lines you can see, though, and I also get a lot of graphical glitches. Right now, the raycasting engine is running at a full 320x240 resolution, I am most likely going to have to only raycast every other column of the screen for the final product due to speed issues, though, and I will take away some vertical resolution for the HUD. Next on my agenda is fixing those problems I mentioned above, then adding textures, then I can actually add zombies!
EDIT: New screenshot, I fixed the not drawing to the whole screen issue, and I changed up the color scheme.

Looking amazing already. Looking forward to what you'll have by August 15th! :D
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on July 08, 2011, 01:25:01 pm
I just realized, this is still running at 90mhz, or whatever the default clock speed is in OS 2.0.1. So if I must, I can always overclock to 150mhz, but I'm going to try not to necessitate that.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on July 09, 2011, 05:54:40 pm
Update: I added render fog, along with limiting the distance the ray can be cast, so that maps which do not have a full border along the edge do not cause the engine to cast rays forever and freeze. (now that I think about it, it will just cast rays into other areas of the calc's memory, and that will look weird.) Personally, I think the fog looks ugly, especially because the color borders "move" with the camera, but it may not look as bad on actual hardware, or with textures.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: leafy on July 09, 2011, 05:58:46 pm
If you look at old games the fog looks like that anyways. I think it looks awesome - maybe add a floor, with a bit of texturing along the walls? I'd still make zombies the first priority though - and guns >:)
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on July 09, 2011, 06:04:04 pm
If you look at old games the fog looks like that anyways. I think it looks awesome - maybe add a floor, with a bit of texturing along the walls? I'd still make zombies the first priority though - and guns >:)
Right now, I am just trying to get the raycasting working fully, I still get graphical glitches. I will definitely include wall textures, though I don't know about the floor, as stuff has to be calculated per-pixel instead of per column. I can have a solid color floor that is a different color from the ceiling/sky quite easily though.

Oh, and I just realized the calc crashes when I exit the program, so I have to fix that, or people are going to be very annoyed when they go play my game, the calc crashes, and all the work in their unsaved document is lost.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: Levak on July 09, 2011, 06:28:08 pm
Or people are going to be very annoyed when they go play my game, the calc crashes, and all the work in their unsaved document is lost.

Obviously, you have to save the document before switch to another document. So nothing will be lost, except time to reboot.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on July 09, 2011, 11:20:04 pm
Still, I wouldn't find it acceptable for a program I use to crash my calc, and I'm sure points would be deducted if it happened in the final version.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: pianoman on July 26, 2011, 12:32:13 pm
How's this going?
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on July 27, 2011, 05:03:20 pm
I was out of state last week and I haven't done anything since I got back. I was actually going to start working on it again after I check out the new posts on omni.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: Munchor on July 29, 2011, 02:12:32 pm
I was out of state last week and I haven't done anything since I got back. I was actually going to start working on it again after I check out the new posts on omni.

If you're still participating, please go here (http://ourl.ca/12277) and tell us that you will, so we know how many entries there'll be.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 06, 2011, 06:31:37 pm
I am still making progress on this, I am trying to fix those graphical glitches I had earlier, but it isn't really working:
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 06, 2011, 10:23:46 pm
Yay, I fixed those issues, it turns out I had mixed up some variable names. :banghead:
I'm going to add textures tonight.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 07, 2011, 08:32:02 pm
Textures didn't quite work out, but I did almost get sprites working. The problem is, they move up and down when I turn the camera :P
EDIT: I fixed that, it turns out I had a typo so the onscreen x coordinate of the sprite was being used for both the x and the y coordinates when I actually went and drew the sprite. Also, sprite clipping used to not work, if a sprite went partially off the top or left edge of the screen, it used to start drawing from the upper left corner, instead of from the middle like it should. But that is now fixed.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 08, 2011, 01:39:19 am
Here's multiple sprites! I still need to get a proper z buffer system though Z buffering is too slow when a sprite is right in front of you, so I'm going to have to sort the sprites back to front, the only reason those were drawn correctly was that they happened to be drawn back to front because of the order they were defined in.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: DJ Omnimaga on August 08, 2011, 04:39:27 am
Nice Toxic ^^
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: Munchor on August 08, 2011, 05:08:04 am
Are you using NCaster as a base?

Looking good so far, but don't forget you have to work quick to get enemies, otherwise it's just a raycasting engine ;)
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 08, 2011, 11:57:25 am
I'm using this tutorial (http://lodev.org/cgtutor/raycasting.html) as a base, adding optimization and improvements as I need. Now that I have multiple sprites, I just need to give them velocity vectors and update the position accordingly, and then the AI will periodically update the vectors, and spawn new zombies. Shooting will be a simple hitscan that is calculated when the sprites are rendered.

EDIT: Moving sprites is working!
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 08, 2011, 02:39:44 pm
Shotgun! :w00t:
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: pianoman on August 08, 2011, 02:43:00 pm
Oh my god that is awesome!
Is this for ndless?
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 08, 2011, 02:44:55 pm
Yes. Oh, and don't pay attention to the garbled area on the bottom of the screen. It was like that when the screenbuffer got allocated, and I haven't drawn over it, it is going to be where the HUD is.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: shmibs on August 08, 2011, 02:47:50 pm
fantastic! where are you getting your gun sprites from?
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 08, 2011, 02:48:45 pm
I found the shotgun sprite on the internet, the creator said anyone was free to use it as long as he gets credit for it.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: Deep Toaster on August 08, 2011, 03:04:10 pm
Shotgun graphics amazing :o

Looking awesome! Good luck.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 08, 2011, 03:13:51 pm
What are your opinions on the controls? Right now (for clickpad) I have:
Up/Down arrow: Move forward and back
Left/Right arrow: Turn
Tab+L/R arrow: Strafe
Esc: Shoot
Home: Reload
Also, if you own a touchpad calculator, could you suggest to me some controls?

EDIT: The gun firing animation is working, and I'm going to work on the hitscan system next.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 08, 2011, 07:00:42 pm
Enemies can now be shot and killed, though I have to refine the damage system a bit.  I do need some help with the sprites for the zombies, though. If you are interested, let me know. I will give you credit ;)
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: BrownyTCat on August 08, 2011, 07:49:15 pm
Amazing! This is probably the first original FPS for Ndless. Maybe do something different than zombies, a lot of FPS'es have zombies. Of course if there's a different twist that would work too. Just the thought of a raycasting FPS from scratch on nSpire is great alone.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: Deep Toaster on August 08, 2011, 08:14:24 pm
Amazing! This is probably the first original FPS for Ndless. Maybe do something different than zombies, a lot of FPS'es have zombies. Of course if there's a different twist that would work too. Just the thought of a raycasting FPS from scratch on nSpire is great alone.
Why not keep it as it is and shoot fractals? :D
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 08, 2011, 08:28:27 pm
Amazing! This is probably the first original FPS for Ndless. Maybe do something different than zombies, a lot of FPS'es have zombies. Of course if there's a different twist that would work too. Just the thought of a raycasting FPS from scratch on nSpire is great alone.
Well, I chose zombies because you don't really need a story, you can just start blasting them away, the level design can be simple, and the AI is easy to code due to the intelligence of zombies and the fact they have no weapons.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: BrownyTCat on August 09, 2011, 11:47:55 am
Amazing! This is probably the first original FPS for Ndless. Maybe do something different than zombies, a lot of FPS'es have zombies. Of course if there's a different twist that would work too. Just the thought of a raycasting FPS from scratch on nSpire is great alone.
Well, I chose zombies because you don't really need a story, you can just start blasting them away, the level design can be simple, and the AI is easy to code due to the intelligence of zombies and the fact they have no weapons.
It would be cool if they could handle weapons like DOOM.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 09, 2011, 12:37:58 pm
It would be but I don't think I would have enough time to do that before the contest starts. Oh, and speaking of DOOM, I found some DOOM-style zombie sprites.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 14, 2011, 02:08:09 pm
Good news, I fixed the crashing problems I was having. BMPtoC, which I used to convert sprites, for some reason put static in front of all the arrays it made, by removing that and replacing it with const, the game no longer crashes.
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 15, 2011, 12:13:39 am
Here's an HUD mockup:
It's pretty simple, but I didn't have much time and I have had no previous experience in making one :P
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: Deep Toaster on August 15, 2011, 10:38:09 am
Well, I like it. Easy to read. And that ammo grid looks great :D
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: Munchor on August 15, 2011, 10:42:51 am
Well, I like it. Easy to read. And that ammo grid looks great :D


I like it too, the contest ends today, the HUD is still gonna be included? I hope so :)
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 15, 2011, 01:29:32 pm
I just got the ammo grid working last night, along with automatic reloading, and I made a macro to display an arbitrary amount of health on the health bar. It seems I forgot about space for the score, I'll just display that along the top now.

The macro I used for the ammo boxes was quite something, It draws a rectangle of the color provided at box n
Code: [Select]
drawAmmoBox(n, color) drawRectFilled(backBuf, 272 + 12 * ((n) & 3), 194 + 14 * (((n) & 4) >> 2), 10, 12, color)
Title: Re: My Nspire contest entry - Zombie FPS game
Post by: fb39ca4 on August 15, 2011, 04:42:35 pm
Can anyone give me feedback on these controls?
    Clickpad:
    Forward-up
    Backward-down
    Turn Left-left
    Turn Right-right
    Strafe-tab+left or right
    Shoot-Esc
    Reload-home
     
    Touchpad:
    Forward-8
    Back-5
    Turn Left -4
    Turn Right-6
    Strafe Left-7
    Strafe Right-9
    Shoot-Ctrl
    Reload-Caps
     
    These controls are actually active at both times, so one could use the number keys for moving on the clickpad if they wanted :P
In other news, I have decided to call this game nZombie.
Title: Re: My Nspire contest entry - nZombie - a zombie FPS game
Post by: fb39ca4 on August 16, 2011, 03:07:49 am
I wasn't able to get the game finished before the contest entry. However, I am going to try to port this to prizm and enter it in the next contest >:D
Title: Re: My Nspire contest entry - nZombie - a zombie FPS game
Post by: Juju on August 16, 2011, 03:08:45 am
Good luck :) You have 1 month to do so.
Title: Re: My Nspire contest entry - nZombie - a zombie FPS game
Post by: Munchor on August 16, 2011, 03:56:25 am
Too bad you couldn't make it, I was really wanting to try this when I woke up. Welll, make sure you finish it someday :D
Title: Re: My Nspire contest entry - nZombie - a zombie FPS game
Post by: boot2490 on September 20, 2011, 11:48:38 am
Suggestion: Put all progress in by editing first post. I HATE digging to find releases.