Natalia DaLomba's profile

Rain (Java Game Programming prototype)

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.
We started by creating a display thread to show the window at a given screen resolution.
I understand how to catch exceptions in case if anything unforeseen happens so I can more quickly debug an error. I appreciate the organization it takes to program in a modular, clean way because then you can use 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.
A new instance of the game is set in the main method and all of the properties for said game are set as well. I learned how to draw a buffered image to the screen and became familiar with creating a pixel coordinate system when drawing images to the screen. I first tested drawing the color magenta on the canvas.
I rendered and generated the level through a .png file. Each color corresponds with a certain tile on the map.
The Entity class is an overall class that has certain properties that I wanted the Mob class to inherit. I then created the Player class which inherits or extends the Mob class which extends Entity.

The Player is instantiated and Player input has been set up through key pressing.
I created the Sprite class which copies the int[] pixels data from SpriteSheets. SpriteSheets loads .png file data.
The Player is able to navigate around the map. For testing purposes, I spawned particles when the Player collides with a Tile that had a collider bounding box, like a wall.

I also created Projectiles for the Player to shoot with the left mouse button.
I plan to finish this Game Programming series at a later date. I value creating the systems and functionality to a game. This helps me understand programmers I will be working with and also assist with any programming needs.​​​​​​​
Rain (Java Game Programming prototype)
Published:

Owner

Rain (Java Game Programming prototype)

Published: