java 2d rpg game

hi there, i’m contributing some code from my game project “Tomb Sniffer” :wink:
(i originaly created this topic in "java2d, but i feel it’s more appropriate here in "Shared code,
and the game progressed a bit too since last time…)

it’s my first project in java… i learned doing this.
it’s based off Kevin Glass cokeandcode tutorials.
i’m still beginner level, but i think this code might help other newbies outhere
willing to try making their first game.

so here’s the java web start version: here
and the “tutorial” and sources are here
most of the sources yet need to be commented… but i created it step by step so it’s progressive difficulty.
starting with barebone 3 classes, step by step it grew into 10 classes project.

as of the current version there’s:

  • tile map, with collision detection and scrolling
  • character animation
  • sounds
  • monster use random move (no pathfinding yet…)

i now need to add pathfinding and more stuff for the gameplay, like doors and keys, more enemies and traps, and make the level prettier with more graphics.
but all the basic stuff is here allready, working…

any help / comments welcome :slight_smile:

Keep up the good work.

For an easy tweak, place a monster in every room.

Very nice!
Currently working on a rpg myself though your screens look better. :slight_smile:

Cool work! It looks mysteriously like some other game I played, but a lot smoother. Nice job with web starting it too.

It seems like the player position is being updated per key press. To get smoothness, maybe consider setting a boolean value when keypress is detected & update position according to that, toggling the boolean off when the key release is detected.