Java-Gaming.org
Java4K - to go         Javadoc:
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, peek at the official java tutorials or join us at irc: #jgo.
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Shootem-Up Enemy Attack Waves..  (Read 2656 times)
0 Members and 1 Guest are viewing this topic.
Offline steveyO

Sr. Member
**

Posts: 308
Medals: 4



« on: 2009-12-31 14:35:01 »

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!!

www.bullsquared.com   Play java (applet) games! www.chessclockpro.com Free Online Chess Clock
Offline moogie

JGO Strike Force
***

Posts: 773
Medals: 4


Java games rock!


« Reply #1 on: 2009-12-31 19:06:26 »

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.
Offline pjt33

JGO Strike Force
***

Posts: 890
Medals: 17



« Reply #2 on: 2010-01-01 13:16:12 »

If you do go for sine waves then remind yourself about (or read up on) simple harmonic motion. No calls to Math.sin required...
Games published by our own members! Go get 'em!
Offline steveyO

Sr. Member
**

Posts: 308
Medals: 4



« Reply #3 on: 2010-01-03 20:11:23 »

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!

www.bullsquared.com   Play java (applet) games! www.chessclockpro.com Free Online Chess Clock
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.09 seconds with 21 queries.