Through creating this game, I gained a better understanding of Java, 2D art, sprite sheets and game programming as a whole on this Rain prototype in the Eclipse IDE.

I learned how to create a game in Java from scratch after completing 78 tutorial episodes of Game Programming from TheCherno on YouTube.

https://youtu.be/AEFnsJlDgTE

The project started by creating a display thread to show the window at a given screen resolution.

code 1.png

It’s important to catch exceptions in case if anything unforeseen happens so an error can be debugged more quickly. Organizing code in a modular, clean way enables one to reuse classes in several situations. Good code requires planning ahead and using the minimal amount of resources as possible so your computer doesn't have to work as hard and the framerate can stay up.

code 2.png

first game screen.png

A new instance of the game is set in the main method and all of the properties this game are set as well. Buffered images are drawn to the screen through creating a pixel coordinate system.

The level is rendered and generated through a .png file. Each color corresponds with a certain tile on the map.

code 3.png

minimap.png

The Entity class is an overall class that has certain properties which the Mob class inherits from. The Player class inherits or extends the Mob class which extends Entity.

The Player is instantiated and Player input has been set up through key pressing.