Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Face Dodge! (my first 2D game)  (Read 1150 times)
0 Members and 2 Guests are viewing this topic.
Offline StonePickaxes

Full Member
**

Posts: 204
Medals: 3


Nathan Kramber


« on: 2011-12-15 19:43:04 »

A game of dodging faces!

http://www.mediafire.com/?99ecs20jg6ir7e2

Please go easy on me, it's my first attempt at a 2D game written from scratch.

If you find anything that can be improved in the source code, please post it!

Check out my website!
Offline Mads

JGO Ninja
***

Posts: 674
Medals: 16


Directly directional


« Reply #1 on: 2011-12-15 19:47:48 »

Some alpha could help the graphics. Also, it would be nice with a reset button instead of a completele application shutdown.
There seems to be a problem with the boundings too, of the character.

Offline StonePickaxes

Full Member
**

Posts: 204
Medals: 3


Nathan Kramber


« Reply #2 on: 2011-12-15 19:59:29 »

Hmm.. alpha... may I ask what that is?

Restarting - yeah, I'm going to do that next.

And yeah the hit box is off.

EDIT - On restarting, how could I go about doing this? I'm still very new to Java.

Check out my website!
Games published by our own members! Go get 'em!
Offline ra4king

JGO Kernel
*****

Posts: 3155
Medals: 196


I'm the King!


« Reply #3 on: 2011-12-15 22:14:53 »

Hehehe, I could never go for more than 5 seconds Tongue

Alpha is transparency channel. JPG doesn't support alpha channels so you will have to go with PNG (there are other choices but PNGs are the most popular).
The FPS went all over the place, it would go really fast and suddenly slow down and then speed up again. Try bounding the FPS instead of letting the game loop run wild.

Restarting instead of closing could be simply implemented by having a "start" screen that says click to begin. Try playing around with the code to figure out how to implement that Wink

Offline Mads

JGO Ninja
***

Posts: 674
Medals: 16


Directly directional


« Reply #4 on: 2011-12-15 23:32:42 »

Hmm.. alpha... may I ask what that is?

Restarting - yeah, I'm going to do that next.

And yeah the hit box is off.

EDIT - On restarting, how could I go about doing this? I'm still very new to Java.

The simplest way, would be to have an isGameover boolean. If this is true, recieve input from the "r" key, to restart all the games variables. Like score, enemy position and payer poisition.

Offline StonePickaxes

Full Member
**

Posts: 204
Medals: 3


Nathan Kramber


« Reply #5 on: 2011-12-16 08:59:33 »

Ra4king, would you mind helping me implement the opening screen? I tried all night yesterday and couldn't get anything going.

I also tried the FPS cap, but couldn't get that to go smoothly either; it just ended up looking worse.

Check out my website!
Offline ra4king

JGO Kernel
*****

Posts: 3155
Medals: 196


I'm the King!


« Reply #6 on: 2011-12-16 17:29:58 »

A simple boolean variable (ex. "isHomeScreen") would suffice to setup the opening screen.

Pages: [1]
  Print  
 
 
Jump to:  


Add your game by posting it in the showcase section.

The first screenshot will be displayed as a thumbnail.

obsidian_golem 2012-05-23 10:14:50

Danny02 2012-05-21 17:10:34

Danny02 2012-05-21 17:07:10

Danny02 2012-05-21 16:56:12

davedes 2012-05-21 13:59:23

obsidian_golem 2012-05-20 20:28:41

darkjava55 2012-05-12 16:14:40

Ultroman 2012-05-12 09:36:05

Ultroman 2012-05-11 22:49:53

Ultroman 2012-05-11 22:20:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.067 seconds with 19 queries.