Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: CinusMinus on April 01, 2014, 12:20:48 pm

Title: Chicken Invaders for NSpire
Post by: CinusMinus on April 01, 2014, 12:20:48 pm
Hi,
today I proudly present to you the first real game I have made in Lua for the NSpire: Chicken Invaders. I have started this project some time ago, but now I decided to share this nice little game with you.
Features:
At the Moment I have no plans for future changes, but maybe you have some interesting suggestion :) </p><p><br></p>

Screenshots:
Spoiler For Screenshots:
(http://i.imgur.com/hWjkFIM.jpg)
(http://i.imgur.com/j78uxwL.jpg)
(http://i.imgur.com/bbiItTM.jpg)
(http://i.imgur.com/mOiA5Tl.jpg)
Dowload:
look for it in the Attachments :)
Title: Re: Chicken Invaders for NSpire
Post by: Matrefeytontias on April 01, 2014, 12:22:57 pm
Haha nice :D Chicken Invaders is a cool stupid game, nice to see it for the Nspire :P

By the way, welcome on the forums :) have some peanuts :

!peanuts
Title: Re: Chicken Invaders for NSpire
Post by: DJ Omnimaga on April 01, 2014, 12:25:07 pm
Welcome to the forums, and nice looking game. I'll try it when I have some time :)
Title: Re: Chicken Invaders for NSpire
Post by: Streetwalrus on April 01, 2014, 04:47:05 pm
Nice looking. ;) Is it like Space Invaders but with chickens ?
Title: Re: Chicken Invaders for NSpire
Post by: Adriweb on April 01, 2014, 05:40:35 pm
Hi.

First, pretty cool game :)

Second : looking at the code, I was amazed. Why ? Because, well, it looks very much like a mix of coding style/habits from Levak, Jim and myself, combined.
At some point, the similarity is rather uncanny, actually, for the wave handling (you and me both) :P
You :
Code: [Select]
theWave = formations[(wave-1) % (#formations) + 1].wave(theView)Me (in my towerdefense game) :
Code: [Select]
setmetatable( self.theTypes, { __index =   function(tbl, key)  return tbl[(key%(#tbl))+1]  end } )

Anyway, goob job :)

BTW : some feedback :
- error when launching the first time on TINCS 3.2
- please use relative coordinates everywhere (so that it works on computerview and ipad) ;)
- you may want to take a look at http://inspired-lua.org/index.php/2013/05/a-new-smarter-way-to-create-a-screen-manager

Also, since you seem to be rather advanced at Lua scripting, you may also be intersted in this presentation I gave last month at the T3 conference :
http://adriweb.free.fr/t3/2014/