Skip to content

astamato/ninja-rabbit

 
 

Repository files navigation

libGDX 2D Platformer ninja-rabbit

A very simple desktop, 2D platform game built in JAVA with libGDX simply to demonstrate the use of various technologies and design patterns as I was learning them. This is, by no means, a complete video game and it puts no effort into being one.


Technologies

This project was developed using the following frameworks and tools:

  • libGDX - A great JAVA game development framework.
  • Box2D - Physics engine. libGDX has a built-in JAVA implementation of it.
  • libgdx-utils - A set of utility classes and methods that alleviates common work while using libGDX. Written by the renowned @dermetfan.
  • Physics Body Editor - Developed by Aurelien Ribon, this tool allows you draw Box2D bodies for your srites, export the data as json and load them in your libGDX game.
  • Tiled - Free tile map editor. Used as a level editor, as well as laying out physics related objects.
  • TexturePacker - Creation of sprite sheets. Allows exporting to libGDX atlas format.

With the exception of TexturePacker, all of the above are free and open source projects. You might as well considered donating or contributing something back if they have managed to help you in some way or if you enjoy using them.

libGDX has its own open source texture packer, as an alternative to the CodeAndWeb application.

Design

Ideas for the architecture and design were shamelessly taken from the phenomenal Game Programming Patterns online book, by EA developer @munificentbob, following the path of Erich Gamma and cia. Honorable mentions go to the Component and State design patterns. Both of them were used in ninja-rabbit.

Game Programming Patterns is a must read. If you think of yourself a game developer or enthusiast, you owe to yourself reading it.

Also worth mentioning, is the handy work of ForeignGuyMike who created the LibGDX Box2D Tiled video tutorial series. Great for starting out with Box2D and drawing sprites.


Controls

  • You move the rabbit character around by using the W, A, S, D keys. Self explanatory.
  • If you fall down a pit, you'll immediately respawn at the start of the level. There's no way to die.

Screenshots

At the start of the level Borrowed inspiration

All assets and artwork in the game are the work of graphic designer Julieta María Ojea (@JulietteChuu).

About

A very basic 2D platformer game built with libGDX (http://libgdx.badlogicgames.com/).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published