FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Responsive Form, Games
(Moderator: REAS)
   top down shooter
« Previous topic | Next topic »

Pages: 1 2 
   Author  Topic: top down shooter  (Read 2996 times)
mflux

fluxhavoc WWW
top down shooter
« on: Apr 28th, 2004, 11:17am »

I wrote this system tonight to play around with the idea of side-scrolling shooting games. At first I wanted an r-type style sideways shooter, but I decided my system was better for a top-down type game.
 
http://www.design.ucla.edu/~mflux/p5/firing/applet
 
use your mouse to move the crosshair and fire
 
use first person shooter keys:
"w" "a" "s" "d" to move the ship up down left and right.
 
I used a slight steering mechansim to make it "feel" like the ship is flying.
 
Gonna keep making this into a game.
 
depth

WWW Email
Re: top down shooter
« Reply #1 on: Apr 30th, 2004, 7:39pm »

i like the motion...
needs a joysitck tho!  too hard to control with the keyboard.
 
any thoughts on graphics?  are you gonna use bitmaps, or draw everything in the asteroids style you have so far?
 
Markavian

Markavian+iTX WWW
Re: top down shooter
« Reply #2 on: Apr 30th, 2004, 11:27pm »

I don't like the motion. It seems to accelerate a bit longer then you hold the key down for, so making the slightest adjustment is a bit hard.
 
Graphics would be good. I'm sure you'll have fun with collision detection too.
 
mflux

fluxhavoc WWW
Re: top down shooter
« Reply #3 on: May 1st, 2004, 9:58am »

thanks for the input. yeah.. needs a joystick.. but I'm gonna try and make the keyboard as functional as possible. A joystick uses the right hand, where as a keyboard you can use the left as well as the mouse.
 
I adjusted the ship so that the movement isn't so fast. Still trying to make it so you can make it fine-tune the motion, without sacrificing the "feel".
 
I added graphics to the ship (modeled in maya too bad it doesn't show too well) and a particle system for the engine.
 
Added additional frames to create animation of the ship banking. Cut out the wings of the ship so the ship graphic is larger and more visible.
 
http://www.design.ucla.edu/~mflux/p5/firing/applet/
« Last Edit: May 1st, 2004, 11:18am by mflux »  
Markavian

Markavian+iTX WWW
Re: top down shooter
« Reply #4 on: May 20th, 2004, 11:10am »

Looks really good. I like the ship and the impression of travelling through space, the stars shooting past. Now you gotta make it side scroll!
 
Some baddies, or even asteroids to blow up would be useful, give you a chance to work out collision detection.
 
- Markavian
 
TomC

WWW
Re: top down shooter
« Reply #5 on: May 28th, 2004, 12:10am »

Not as slick, but I'm almost there with an Asteroids clone... http://www.tom-carden.co.uk/p5/asteroids_alpha/applet/  
 
Current controls are arrow keys and space.  The bullets are all wrong (I think it would be a bit too easy to win if I left them like that!)  I'll implement collision detection soon, but then I don't think it will be as much fun
 
How's your scrolling shooter coming on, mflux?
« Last Edit: May 28th, 2004, 12:12am by TomC »  
mflux

fluxhavoc WWW
Re: top down shooter
« Reply #6 on: May 28th, 2004, 1:17am »

Hey Tom. I'm having trouble loading your applet. Does it use the more advanced java package?
 
I haven't been working on mine due to school projects but I do intend to keep adding to it.
 
ouoertheo

OuoertheoJadeSlash2000 Email
Re: top down shooter
« Reply #7 on: May 28th, 2004, 2:42am »

0_0, this is almost the same thing as a game i was making, except better control system.
 
How did you get the program to respond to the keyboard like that, or am i crazy and it was actually only accepting one key at a time for a delayed ammount of time?
 
TomC

WWW
Re: top down shooter
« Reply #8 on: May 28th, 2004, 9:25am »

Thanks for the info mflux, I'll look into it - it could be the way I did my object-oriented stuff, not sure. (On update... it'll be the ArrayList - I'll switch to Vector with addElement).
 
For the input, I used the method fry describes here...  
 
http://processing.org/discourse/yabb/board_Contribution_Physica_l_action_display_num_1082541220.html
 
It uses an array of booleans to keep a record of whether a key is down or not by using keyPressed and keyReleased.
 
« Last Edit: Jul 21st, 2004, 11:27am by TomC »  
TomC

WWW
Re: top down shooter
« Reply #9 on: May 29th, 2004, 2:32pm »

Updated mine. Still not optimised but getting there.  Just needs scoring system now.
 
http://www.tom-carden.co.uk/p5/asteroids_beta/applet/index.html
 
I had trouble testing this under the MS Java VM, it didn't seem to take my keyboard input.  Any ideas?
 
mKoser

WWW Email
Re: top down shooter
« Reply #10 on: May 29th, 2004, 7:56pm »

nice explosions Tom
 

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
TomC

WWW
Re: top down shooter
« Reply #11 on: May 29th, 2004, 10:58pm »

Boom!
 
Now with scoring, and added Sonia...
http://www.tom-carden.co.uk/p5/asteroids_sonic/applet/
 
 
ouoertheo

OuoertheoJadeSlash2000 Email
Re: top down shooter
« Reply #12 on: May 29th, 2004, 11:44pm »

on May 29th, 2004, 2:32pm, TomC wrote:
For the input, I used the method fry describes here...  
 
http://processing.org/discourse/yabb/action_search2.html

 
Ahhh yes, genius of course. Now why didn't I think of that before :p
 
Thanks, I plan to try that out soon
 
mflux

fluxhavoc WWW
Re: top down shooter
« Reply #13 on: May 30th, 2004, 3:00am »

pretty damn cool tom The explosions are definitely nice.
 
I have trouble moving the ship though. I can't seem to be able to. I can fire, but I can't thrust nor turn the ship at all.
 
TomC

WWW
Re: top down shooter
« Reply #14 on: May 30th, 2004, 5:09am »

on May 30th, 2004, 3:00am, mflux wrote:

I have trouble moving the ship though. I can't seem to be able to. I can fire, but I can't thrust nor turn the ship at all.

 
Yep, I get that too when running inside Processing, or when using the Microsoft Java VM.  I'll borrow your key configuration a/s/w/d as an alternative tomorrow, and see if that works.
 
 
Pages: 1 2 

« Previous topic | Next topic »