View Full Version : New game: Shooter
whisperstorm
10-28-2003, 02:13 PM
I'm a big fan of retro gaming. Shooters like R-Type and Radiant Silvergun are legends. I was able to throw this together in about 2 hours. Tons of thanks to Max for letting me use is Zoetrope layout -- an extremely useful layout for doing tickers, sliders, and in this case scrolling space :) I'm thinking of extending this layout to do parallax scrolling fairly easily.
Anyway, here's another simple game demo - this time you are a lone spaceship. Right now all you can do is shoot. Using animators for this is problematic as you can easily scroll off screen unless you tap the keys each time.
Presented for others to try out and use.
antun
10-28-2003, 02:28 PM
Here it is:
http://www.mylaszlo.com/lps/whisperstorm/shooter/shooter.lzx
Very nice!
For movement, you might want to consider moving the spaceship incrementally - have a method that gets called onidle, and if a key is pressed, move by a set increment in that direction maybe?
-Antun
whisperstorm
10-28-2003, 02:46 PM
yeah working through this suggests to me that I should starting building my own classes for doing 2d games and opening that up to the community. That way as improvements to the core 2d library happens, folks can create games from them...
I didnt add enemies because it seems like collision detection will be fairly complicated, but I know of your previous post about collision detection,so I'll try to adapt that.
Interruptable animations would be nice :)
Is there a way to use the constraint method on the movement? To prevent the ship from flying off screen when you hold down the movement keys.
Fun stuff! This is great mindplay :)
failrate
05-08-2005, 08:38 PM
Yes, you would definitely want to test against the constraints. Basically, if your speed was 5, it would be, onkeydown, um whatever right is on your key layout, if (ship.x + 5) <= screen.width { ship.x += 5}.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.