1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-10-31 03:39:16 +00:00

comments done

This commit is contained in:
2022-06-17 09:21:07 +02:00
parent 769adeeeca
commit bae3543a0b
4 changed files with 20 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ public class ScreenMap extends RenderingScreen{
try { map = player.getMap(); } catch (Exception e) {}
// create map
// create all map
createMap("test");
createMap("test_couloir");
createMap("desert");
@@ -150,6 +150,11 @@ public class ScreenMap extends RenderingScreen{
return speed;
}
/**
* Check if the position is a door and if yes, get and save all settings for change map
* @param position The position to be tested
* @return true if it's a door
*/
public boolean isDoor(Vector2 position) {
if (doors == null) return false;
boolean onDoor = false;