JavaGaming.org

July 30, 2010, 09:41:59 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
Advanced search  
Pages: [1]   Go Down
Print
Author Topic: Shootem-Up Enemy Attack Waves..  (Read 1766 times)
0 Members and 1 Guest are viewing this topic.
steveyO
Full Member
***
Offline Offline

Gender: Male
Posts: 223



View Profile WWW
« on: December 31, 2009, 11:35:01 am »

I am looking for some links/algorithms to program some enemy attack waves (80s style shootem up).. For example,  enemies coming down in zig-zag patterns,  or entering the screen on the left, doing a circular loop and leaving the screen on the right (1942, or Galaxians style)..

Suprisingly, considering the amount of shootemups out there,  I can't find a single thing on google.  Am considering using Bezier Curves, or Sine Waves unless anyone can provide me with a better tip/method..   Wink   (ps.  For 4K, so looking for a few simple algorithms only).
Thnx  Edit:  Happy New Year Everyone!!
« Last Edit: December 31, 2009, 11:37:09 am by steveyO » Logged

www.bullsquared.com   Play games, make friends, talk Bull!
moogie
JGO Ninja
*****
Offline Offline

Posts: 734


Java games rock!


View Profile
« Reply #1 on: December 31, 2009, 04:06:26 pm »

random walk is very cheap (algorithmically) to implemented. You could also use the same mechanism to loop in circles while moving down by using a bias instead of randomness.
Logged
pjt33
JGO Ninja
*****
Offline Offline

Posts: 599


View Profile
« Reply #2 on: January 01, 2010, 10:16:12 am »

If you do go for sine waves then remind yourself about (or read up on) simple harmonic motion. No calls to Math.sin required...
Logged
steveyO
Full Member
***
Offline Offline

Gender: Male
Posts: 223



View Profile WWW
« Reply #3 on: January 03, 2010, 05:11:23 pm »

Gosh, its 20+ years since I did SHM   A-Level physics. Had a quick revisit but enough to put me off..
Have finally, gone for a combination of Bezier Curves and Random walking.. And gradually realizing why have never written a shootem up before.. Getting decent gameplay/waves is proving to be a real git and a half!
Logged

www.bullsquared.com   Play games, make friends, talk Bull!
Pages: [1]   Go Up
Print
 
Jump to: