Drawing Tiles - How to Make a 2D Game in Java #4
In this video, we will draw background tiles on the screen.
Also, we will create a sample map with a text file and import & render the map data on the screen.
Caution: This is a tutorial for Java 2D beginners so it's pretty verbose! (and the pacing is a bit slow...)
If you have any questions, please feel free to leave a comment.
Thanks for watching.
If you want to use my graphic asset that are used in this tutorial, here's the link:
https://drive.google.com/drive/folders/1OBRM8M3qCNAfJDCaldg62yFMiyFaKgYx?usp=sharing
*I'm releasing my art/music/sound effects to help your smooth learning with this series. If you wish to use them to create a public content (profitable/non-profitable), please contact me via Twitter or email. Both links are in the About section of this channel. In any case, please don't re-distribute my asset (graphics/sound) and limit it to personal use.
Timestamps:
0:00 Importing tile images
1:28 Create Tile and TileManager class
6:02 Draw a tile
9:13 Draw a 5x5 map
13:11 Create a map data with text file
15:54 Import the map data
23:03 Draw the map on the screen
26:32 Final result
#java2d #javagamedevelopment #javatutorial