Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Game Graphics

 
Rayln Sander
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know how to display images but is that all i can do? 2D graphical bitmaps? Im new and would welcome any support on how to use graphics
 
Bill Cruise
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, Rayln. Welcome to Java Ranch.

You can display 3D graphics in Java too. I know of one online tutorial and there are plenty of
books available.
 
Rayln Sander
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Bill Cruise
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
Rayln Sander
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thanks again
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic