[java] books for intermediate programmers
I recommend the "Patterns in Java" series written by Mark Grand and published by Wiley. They probably won''t teach you anything new about Java, but they can help you make the next step up as a Java programmer.
ManaSink
ManaSink
I found ''Java Game Programming for Dummies'' was a suprisingly good buy. It assumes you know classes, inheritance, interfaces and all that jazz. Then it shows the basics of animating sprites & collision (pool,golf), designing games in OO (card games, puzzle games), sprite engines (pac man-ish maze game), and it even touches on 3D engines. It doesn''t go real in-depth on any of these topics, but it does give you enough to start exploring on your own. The only thing I didn''t see in it, nor any java gaming book for that matter, was scrolling. I don''t know what people do for this in java. I guess that''s what ScrollPanes are for.
Do you mean side scrolling games super mario bros or space shooter style? For this you probably wouldn''t want a scrollpane. I think scrollpanes are for app type stuff like in a browser. You should use sprites for this. If you want to have a background image always painted you could have and array of images that in a line form the level and write a algorithm to display the images depending on the players position. I have tried these and the sprite method worked good. However when I did the array of images I was doing the game with 1024x768 images(only around 4 of them) and it hurt the framerate bad.
quote:Original post by Icculus
Do you mean side scrolling games super mario bros or space shooter style? For this you probably wouldn''t want a scrollpane. I think scrollpanes are for app type stuff like in a browser. You should use sprites for this. If you want to have a background image always painted you could have and array of images that in a line form the level and write a algorithm to display the images depending on the players position. I have tried these and the sprite method worked good. However when I did the array of images I was doing the game with 1024x768 images(only around 4 of them) and it hurt the framerate bad.
Yes, i find the framerate of painting an array of images unacceptable. I''ve started a level editor that can handle a map much larger then the pre-calculated one in my engine without the lag. But there is also no collision detection in my map editor. I will have to try ScrollPanes in a real world situation.
"I''ve started a level editor that can handle a map much larger then the pre-calculated one in my engine without the lag"
Cool, what sort of tricks did you use to make it lose the lag?
Cool, what sort of tricks did you use to make it lose the lag?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement