FallDown Game

Hello, I am currently working on a port of the Falldown game, if you don't know what it is you can search for a flash version on the internet.

For those who know what I am talking I need help implementing the random platforms that scroll vertically on the screen. I have been thinking to either create them as lines or thin rectangles, maybe setting them up in an array. Since I am new to game programming how could I randomly display them off screen from the bottom and remove them from memory when they leave the top of the screen. Everything else about the game I have covered it just this part I need advise on to make it simple, easy, and convenient. Thanks

[676 byte] By [games4dummies3a] at [2007-11-27 4:30:13]
# 1
Create some class named Platform (or whatever you want), and add all the platforms on the screen into a List. When a platform reaches the top of the screen, remove it from the list and add another to the bottom of the list.
CaptainMorgan08a at 2007-7-12 9:39:26 > top of Java-index,Other Topics,Java Game Development...
# 2
when the platform reaches past the top of the screen move it back down to the bottom so ur using the same platforms the entire time. dont worry bout removing it.just check for coordinates and put in if statements.
stephensk8sa at 2007-7-12 9:39:26 > top of Java-index,Other Topics,Java Game Development...
# 3
> when the platform reaches past the top of the screen> move it back down to the bottom so ur using the same> platforms the entire time.That would get very repetitive and easy.
CaptainMorgan08a at 2007-7-12 9:39:26 > top of Java-index,Other Topics,Java Game Development...
# 4
>That would get very repetitive and easy. not if u didRandom rand = new Random();and got a new random int(its x position) every time u put it back at the bottom
stephensk8sa at 2007-7-12 9:39:26 > top of Java-index,Other Topics,Java Game Development...
# 5

hey wattsup.wel am nt dt new2java,bt havnt done alot of practie.i wanted2knw u knw how i cn port java3d api in2 a IDE witout usin msdos2 programm,or do knw a game ide usin java3d or jogl 2 create a game,am walkn on a 2D game it simple bt wel u gtta start sumhere,reply2 me on me emaail,trinox3000@yahoo.com.hope we cn talk,down here in nigeria,gamers dnt happen often,only d brae take d steps,any help wud b appreciated

fronta at 2007-7-12 9:39:26 > top of Java-index,Other Topics,Java Game Development...
# 6
m sry bt icnt tl wht ur syng...
CaptainMorgan08a at 2007-7-12 9:39:26 > top of Java-index,Other Topics,Java Game Development...
# 7
I wonder how some people can learn to program before they learn how to type?
robtafta at 2007-7-12 9:39:26 > top of Java-index,Other Topics,Java Game Development...
# 8
I'm getting compiler errors...pblc cls HloWld{pbc stc vd mn(str[] arrr){Sst.ut.ptln("HloWld!");}}
CaptainMorgan08a at 2007-7-12 9:39:26 > top of Java-index,Other Topics,Java Game Development...
# 9
> I wonder how some people can learn to program before they learn how to type?I think you're making a rather large assumption.
YAT_Archivista at 2007-7-12 9:39:26 > top of Java-index,Other Topics,Java Game Development...
# 10
> > I wonder how some people can learn to program> before they learn how to type?> > I think you're making a rather large assumption.That they know how to program? ;-)
hunter9000a at 2007-7-12 9:39:26 > top of Java-index,Other Topics,Java Game Development...
# 11

> > > I wonder how some people can learn to program

> > before they learn how to type?

> >

> > I think you're making a rather large assumption.

>

> That they know how to program? ;-)

now you're making a rather large assumption as well (particularly, that learning leads to knowledge).

jwentinga at 2007-7-12 9:39:26 > top of Java-index,Other Topics,Java Game Development...