Map Screen and Minimap - How to Make a 2D Game in Java #47

preview_player
Показать описание
In this video, we will implement a map screen and minimap function.

Guidelines for using Blue Boy Adventure's code and assets:

Timestamps:
0:00 Introduction
0:23 Creating Map Class
5:22 Map Screen
14:45 Minimap
20:00 FINAL RESULT

#javatutorial #javagamedevelopment
Рекомендации по теме
Комментарии
Автор

Every time I get close to catching up, a new part releases! I look forward to following along with this one soon, too. Thank you!

Azulicious
Автор

As always nice and informative. Remember to dispose of Graphics2D object when you are done drawing to the BufferedImage(image), since you are creating Graphics2D g2 = image.createGraphics(), unless you dispose it, the resource will stay open. Its something that's easily forgotten.

TaariBarungsi
Автор

I'm always so excited when i see a new video on your channel!

Loggog
Автор

Hey, Ryisnow! I was looking back and wondered if it was possible to add interactive tiles on the map to avoid confusion. Thanks!

OneLatteComingRightUp
Автор

Wow cant wait to make my own game to enjoy

hatdog
Автор

how do you include the other entities such as NPCs and objects into the map? because if I wanted to display a map with abundance of objects the map looks desolated when it only displays the tiles.

ProjCRys
Автор

So when I try to start the game after implementing the map for the first time, it crashes and sends this error: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
I think it's cause my map is too large, cause when I shrink it down it works fine. Right now my map is 341x193. Do you know any way to fix this without changing the map size?

JacobBohley
Автор

YAY THANKS!


If anyone has added new tilesets/maps I Was running into issue where I would get a :

Cannot read field "image" because "this.tile[tileNum]" is null
at
at tile.Map.<init>(Map.java:17)
at
at main.Main.main(Main.java:17)

Took me a second to figure out, but it was because I still had old maps that were not being used with old tilesets but I had not commented/deleted them out yet. Once I commented it worked just fine again.

deepseatrip
Автор

Hello, I need some help. I have a problem in KeyHandler, where I want the player to move. Can you solve my problem? Thank you

mightymeet
Автор

When will you implement the load game function? In the title screen video, you mentioned implementing load game

_bit_coding
Автор

I am getting white gaps between the tiles, how do I fix this @RyiSnow ?

basilbijichirathilattu
Автор

Can I request how to make tiles clickable with mouse 😁

droidlycodes
Автор

Hello! Can somebody help me? When I am doing Map Screen and Minimap - How to Make a 2D Game in Java #47. I get errors: Exception in thread "main" Cannot read field "image" because "this.tile[tileNum]" is null
at
at tile.Map.<init>(Map.java:19)
at
at main.Main.main(Main.java:16). I have checked it and nothing is wrong. So please help me.

mck