Sign in to follow this  
TheCompBoy

Jframe for Java game?

Recommended Posts

TheCompBoy    120
Im now starting to create my own side scroller in java but before i start i want one question answeared.. I didn't find any answear for this on google so i will try my luck here..

Basicaly i think i've seen somewhere that when you create a game in java there is something you can extend your class with something like GamePanel or something or is this not true? Do you just use Jframe for your java games?

Share this post


Link to post
Share on other sites
SimonForsman    7642
[quote name='TheCompBoy' timestamp='1313337590' post='4849006']
Im now starting to create my own side scroller in java but before i start i want one question answeared.. I didn't find any answear for this on google so i will try my luck here..

Basicaly i think i've seen somewhere that when you create a game in java there is something you can extend your class with something like GamePanel or something or is this not true? Do you just use Jframe for your java games?


[/quote]

I'd recommend using something like Slick for a 2D game instead.

http://slick.cokeandcode.com/wiki/doku.php?id=01_-_a_basic_slick_game

Share this post


Link to post
Share on other sites
beatlefan    198
[quote name='TheCompBoy' timestamp='1313344246' post='4849038']
I did use that but would it hurt making a game with normal java no libraries ?
[/quote]

No your fine without using any additional libraries. When I used Java I didn't use anything extra.

You might find [url="http://www.thenewboston.com/?cat=35&pOpen=tutorial"]these[/url] interesting. The ones that involve creating the screen might be useful.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this