Game programming for beginners

In these series of tutorials I will explain new java concepts of an intermediate level (threads, AWT, Swing, etc.) and basic concepts for game programming (game loop, FPS, sprite, etc). My idea is that these tutorials are useful both for those who want to program games, as for those who, with a basic or intermediate level in java, want to learn and improve java programming concepts in an entertaining way.

Games in Java

Until very recently, professional games have been developed in C or C++. This has changed and now there are great games developed completely in java. The game industry for mobiles is growing and java is the language to program in Android. Android must be by now the most used operative system for smart phones. In the other hand, games like Minecraft, have millions of users and are developed by only one developer, without the support of a big company.

I hope, with this series of tutorials, I can motivate you to step into the world of java programming and in particular into game programming.

The game: Mini Tennis

In this series of tutorials we will developed from scratch a version of one of the most famous games.

This game is not meant to be the next most sold game but just a platform from which to teach and maybe inspire someone to be the next most succesful developer in the world ;)


  1. Our first graphic: JFrame, JPanel, paint method
  2. Animation of a moving object
  3. Sprites
  4. Events. Keyboard input
  5. Adding the sprite "racquet"
  6. Collision detection
  7. Adding sound to our game
  8. Creating a Sound class for our game
  9. Adding punctuation and speed increase
  10. Creating executable jar archive. Virtual java machine.
  11. Download the source code for minicraft and its configuration for eclipse
  12. Adding a view map to Minicraft