Thanks a Lot! Um one other thing im clueless about..... Creating a scrollable image as in when the edge is reached more is loaded like in most games? And one other question how do i do animations beyond the simple things
Thanks again and any other advice is welcome
[Wow i just checked the site its fantastic thanks ]
[ August 06, 2008: Message edited by: Rayln Sander ]
Whoa lots of reading, (yet again), thanks this is awesome ! [ August 06, 2008: Message edited by: Rayln Sander ]
Joined: Jun 01, 2007
You'd want to load more image before you reach the edge, wouldn't you? The way scrollable backgrounds are normally implemented is by drawing in image tiles. Each tile is stored in a 2D array, and every time your character moves, new tiles are loaded, and old ones are thrown out.
Amazon happens to have two good programming books bundled together that I recommend for anyone getting in to game programming in Java here (see the "better together" section). If you're only going to get one book, I recommend "Killer Game Programming in Java".