diff --git a/data/images/background.png b/data/images/background.png new file mode 100644 index 0000000..f31f0a9 Binary files /dev/null and b/data/images/background.png differ diff --git a/data/images/clouds/cloud_1.png b/data/images/clouds/cloud_1.png new file mode 100644 index 0000000..5e0af72 Binary files /dev/null and b/data/images/clouds/cloud_1.png differ diff --git a/data/images/clouds/cloud_2.png b/data/images/clouds/cloud_2.png new file mode 100644 index 0000000..6d86f79 Binary files /dev/null and b/data/images/clouds/cloud_2.png differ diff --git a/data/images/entities/enemy/idle/00.png b/data/images/entities/enemy/idle/00.png new file mode 100644 index 0000000..26b3afc Binary files /dev/null and b/data/images/entities/enemy/idle/00.png differ diff --git a/data/images/entities/enemy/idle/01.png b/data/images/entities/enemy/idle/01.png new file mode 100644 index 0000000..26b3afc Binary files /dev/null and b/data/images/entities/enemy/idle/01.png differ diff --git a/data/images/entities/enemy/idle/02.png b/data/images/entities/enemy/idle/02.png new file mode 100644 index 0000000..4395a2b Binary files /dev/null and b/data/images/entities/enemy/idle/02.png differ diff --git a/data/images/entities/enemy/idle/03.png b/data/images/entities/enemy/idle/03.png new file mode 100644 index 0000000..26b3afc Binary files /dev/null and b/data/images/entities/enemy/idle/03.png differ diff --git a/data/images/entities/enemy/idle/04.png b/data/images/entities/enemy/idle/04.png new file mode 100644 index 0000000..26b3afc Binary files /dev/null and b/data/images/entities/enemy/idle/04.png differ diff --git a/data/images/entities/enemy/idle/05.png b/data/images/entities/enemy/idle/05.png new file mode 100644 index 0000000..5f88abb Binary files /dev/null and b/data/images/entities/enemy/idle/05.png differ diff --git a/data/images/entities/enemy/idle/06.png b/data/images/entities/enemy/idle/06.png new file mode 100644 index 0000000..e3d9967 Binary files /dev/null and b/data/images/entities/enemy/idle/06.png differ diff --git a/data/images/entities/enemy/idle/07.png b/data/images/entities/enemy/idle/07.png new file mode 100644 index 0000000..26b3afc Binary files /dev/null and b/data/images/entities/enemy/idle/07.png differ diff --git a/data/images/entities/enemy/idle/08.png b/data/images/entities/enemy/idle/08.png new file mode 100644 index 0000000..26b3afc Binary files /dev/null and b/data/images/entities/enemy/idle/08.png differ diff --git a/data/images/entities/enemy/idle/09.png b/data/images/entities/enemy/idle/09.png new file mode 100644 index 0000000..26b3afc Binary files /dev/null and b/data/images/entities/enemy/idle/09.png differ diff --git a/data/images/entities/enemy/idle/10.png b/data/images/entities/enemy/idle/10.png new file mode 100644 index 0000000..26b3afc Binary files /dev/null and b/data/images/entities/enemy/idle/10.png differ diff --git a/data/images/entities/enemy/idle/11.png b/data/images/entities/enemy/idle/11.png new file mode 100644 index 0000000..26b3afc Binary files /dev/null and b/data/images/entities/enemy/idle/11.png differ diff --git a/data/images/entities/enemy/idle/12.png b/data/images/entities/enemy/idle/12.png new file mode 100644 index 0000000..5f88abb Binary files /dev/null and b/data/images/entities/enemy/idle/12.png differ diff --git a/data/images/entities/enemy/idle/13.png b/data/images/entities/enemy/idle/13.png new file mode 100644 index 0000000..e3d9967 Binary files /dev/null and b/data/images/entities/enemy/idle/13.png differ diff --git a/data/images/entities/enemy/idle/14.png b/data/images/entities/enemy/idle/14.png new file mode 100644 index 0000000..26b3afc Binary files /dev/null and b/data/images/entities/enemy/idle/14.png differ diff --git a/data/images/entities/enemy/idle/15.png b/data/images/entities/enemy/idle/15.png new file mode 100644 index 0000000..26b3afc Binary files /dev/null and b/data/images/entities/enemy/idle/15.png differ diff --git a/data/images/entities/enemy/run/0.png b/data/images/entities/enemy/run/0.png new file mode 100644 index 0000000..99b54bb Binary files /dev/null and b/data/images/entities/enemy/run/0.png differ diff --git a/data/images/entities/enemy/run/1.png b/data/images/entities/enemy/run/1.png new file mode 100644 index 0000000..47a8ca0 Binary files /dev/null and b/data/images/entities/enemy/run/1.png differ diff --git a/data/images/entities/enemy/run/2.png b/data/images/entities/enemy/run/2.png new file mode 100644 index 0000000..62369b0 Binary files /dev/null and b/data/images/entities/enemy/run/2.png differ diff --git a/data/images/entities/enemy/run/3.png b/data/images/entities/enemy/run/3.png new file mode 100644 index 0000000..74f84ea Binary files /dev/null and b/data/images/entities/enemy/run/3.png differ diff --git a/data/images/entities/enemy/run/4.png b/data/images/entities/enemy/run/4.png new file mode 100644 index 0000000..8786a01 Binary files /dev/null and b/data/images/entities/enemy/run/4.png differ diff --git a/data/images/entities/enemy/run/5.png b/data/images/entities/enemy/run/5.png new file mode 100644 index 0000000..c47d31d Binary files /dev/null and b/data/images/entities/enemy/run/5.png differ diff --git a/data/images/entities/enemy/run/6.png b/data/images/entities/enemy/run/6.png new file mode 100644 index 0000000..ce4f1ad Binary files /dev/null and b/data/images/entities/enemy/run/6.png differ diff --git a/data/images/entities/enemy/run/7.png b/data/images/entities/enemy/run/7.png new file mode 100644 index 0000000..49249de Binary files /dev/null and b/data/images/entities/enemy/run/7.png differ diff --git a/data/images/entities/player.png b/data/images/entities/player.png new file mode 100644 index 0000000..c1cde8f Binary files /dev/null and b/data/images/entities/player.png differ diff --git a/data/images/entities/player/idle/00.png b/data/images/entities/player/idle/00.png new file mode 100644 index 0000000..f18fb1d Binary files /dev/null and b/data/images/entities/player/idle/00.png differ diff --git a/data/images/entities/player/idle/01.png b/data/images/entities/player/idle/01.png new file mode 100644 index 0000000..e90432a Binary files /dev/null and b/data/images/entities/player/idle/01.png differ diff --git a/data/images/entities/player/idle/02.png b/data/images/entities/player/idle/02.png new file mode 100644 index 0000000..e4348bc Binary files /dev/null and b/data/images/entities/player/idle/02.png differ diff --git a/data/images/entities/player/idle/03.png b/data/images/entities/player/idle/03.png new file mode 100644 index 0000000..f18fb1d Binary files /dev/null and b/data/images/entities/player/idle/03.png differ diff --git a/data/images/entities/player/idle/04.png b/data/images/entities/player/idle/04.png new file mode 100644 index 0000000..ebb6fcf Binary files /dev/null and b/data/images/entities/player/idle/04.png differ diff --git a/data/images/entities/player/idle/05.png b/data/images/entities/player/idle/05.png new file mode 100644 index 0000000..f18fb1d Binary files /dev/null and b/data/images/entities/player/idle/05.png differ diff --git a/data/images/entities/player/idle/06.png b/data/images/entities/player/idle/06.png new file mode 100644 index 0000000..5e3a006 Binary files /dev/null and b/data/images/entities/player/idle/06.png differ diff --git a/data/images/entities/player/idle/07.png b/data/images/entities/player/idle/07.png new file mode 100644 index 0000000..e90432a Binary files /dev/null and b/data/images/entities/player/idle/07.png differ diff --git a/data/images/entities/player/idle/08.png b/data/images/entities/player/idle/08.png new file mode 100644 index 0000000..6d4b75a Binary files /dev/null and b/data/images/entities/player/idle/08.png differ diff --git a/data/images/entities/player/idle/09.png b/data/images/entities/player/idle/09.png new file mode 100644 index 0000000..9a15060 Binary files /dev/null and b/data/images/entities/player/idle/09.png differ diff --git a/data/images/entities/player/idle/10.png b/data/images/entities/player/idle/10.png new file mode 100644 index 0000000..ebb6fcf Binary files /dev/null and b/data/images/entities/player/idle/10.png differ diff --git a/data/images/entities/player/idle/11.png b/data/images/entities/player/idle/11.png new file mode 100644 index 0000000..f18fb1d Binary files /dev/null and b/data/images/entities/player/idle/11.png differ diff --git a/data/images/entities/player/idle/12.png b/data/images/entities/player/idle/12.png new file mode 100644 index 0000000..e90432a Binary files /dev/null and b/data/images/entities/player/idle/12.png differ diff --git a/data/images/entities/player/idle/13.png b/data/images/entities/player/idle/13.png new file mode 100644 index 0000000..5e3a006 Binary files /dev/null and b/data/images/entities/player/idle/13.png differ diff --git a/data/images/entities/player/idle/14.png b/data/images/entities/player/idle/14.png new file mode 100644 index 0000000..f18fb1d Binary files /dev/null and b/data/images/entities/player/idle/14.png differ diff --git a/data/images/entities/player/idle/15.png b/data/images/entities/player/idle/15.png new file mode 100644 index 0000000..ebb6fcf Binary files /dev/null and b/data/images/entities/player/idle/15.png differ diff --git a/data/images/entities/player/idle/16.png b/data/images/entities/player/idle/16.png new file mode 100644 index 0000000..f18fb1d Binary files /dev/null and b/data/images/entities/player/idle/16.png differ diff --git a/data/images/entities/player/idle/17.png b/data/images/entities/player/idle/17.png new file mode 100644 index 0000000..5e3a006 Binary files /dev/null and b/data/images/entities/player/idle/17.png differ diff --git a/data/images/entities/player/idle/18.png b/data/images/entities/player/idle/18.png new file mode 100644 index 0000000..e90432a Binary files /dev/null and b/data/images/entities/player/idle/18.png differ diff --git a/data/images/entities/player/idle/19.png b/data/images/entities/player/idle/19.png new file mode 100644 index 0000000..6d4b75a Binary files /dev/null and b/data/images/entities/player/idle/19.png differ diff --git a/data/images/entities/player/idle/20.png b/data/images/entities/player/idle/20.png new file mode 100644 index 0000000..9a15060 Binary files /dev/null and b/data/images/entities/player/idle/20.png differ diff --git a/data/images/entities/player/idle/21.png b/data/images/entities/player/idle/21.png new file mode 100644 index 0000000..ebb6fcf Binary files /dev/null and b/data/images/entities/player/idle/21.png differ diff --git a/data/images/entities/player/jump/0.png b/data/images/entities/player/jump/0.png new file mode 100644 index 0000000..5013f9b Binary files /dev/null and b/data/images/entities/player/jump/0.png differ diff --git a/data/images/entities/player/run/0.png b/data/images/entities/player/run/0.png new file mode 100644 index 0000000..a47a3ff Binary files /dev/null and b/data/images/entities/player/run/0.png differ diff --git a/data/images/entities/player/run/1.png b/data/images/entities/player/run/1.png new file mode 100644 index 0000000..08e443b Binary files /dev/null and b/data/images/entities/player/run/1.png differ diff --git a/data/images/entities/player/run/2.png b/data/images/entities/player/run/2.png new file mode 100644 index 0000000..ed931bb Binary files /dev/null and b/data/images/entities/player/run/2.png differ diff --git a/data/images/entities/player/run/3.png b/data/images/entities/player/run/3.png new file mode 100644 index 0000000..30b1a7c Binary files /dev/null and b/data/images/entities/player/run/3.png differ diff --git a/data/images/entities/player/run/4.png b/data/images/entities/player/run/4.png new file mode 100644 index 0000000..d27232d Binary files /dev/null and b/data/images/entities/player/run/4.png differ diff --git a/data/images/entities/player/run/5.png b/data/images/entities/player/run/5.png new file mode 100644 index 0000000..ac85b81 Binary files /dev/null and b/data/images/entities/player/run/5.png differ diff --git a/data/images/entities/player/run/6.png b/data/images/entities/player/run/6.png new file mode 100644 index 0000000..1a97f30 Binary files /dev/null and b/data/images/entities/player/run/6.png differ diff --git a/data/images/entities/player/run/7.png b/data/images/entities/player/run/7.png new file mode 100644 index 0000000..92fde47 Binary files /dev/null and b/data/images/entities/player/run/7.png differ diff --git a/data/images/entities/player/slide/0.png b/data/images/entities/player/slide/0.png new file mode 100644 index 0000000..20f4287 Binary files /dev/null and b/data/images/entities/player/slide/0.png differ diff --git a/data/images/entities/player/wall_slide/0.png b/data/images/entities/player/wall_slide/0.png new file mode 100644 index 0000000..a9ec0c5 Binary files /dev/null and b/data/images/entities/player/wall_slide/0.png differ diff --git a/data/images/gun.png b/data/images/gun.png new file mode 100644 index 0000000..5365bbc Binary files /dev/null and b/data/images/gun.png differ diff --git a/data/images/particles/leaf/00.png b/data/images/particles/leaf/00.png new file mode 100644 index 0000000..3f83440 Binary files /dev/null and b/data/images/particles/leaf/00.png differ diff --git a/data/images/particles/leaf/01.png b/data/images/particles/leaf/01.png new file mode 100644 index 0000000..91c4064 Binary files /dev/null and b/data/images/particles/leaf/01.png differ diff --git a/data/images/particles/leaf/02.png b/data/images/particles/leaf/02.png new file mode 100644 index 0000000..2d75af4 Binary files /dev/null and b/data/images/particles/leaf/02.png differ diff --git a/data/images/particles/leaf/03.png b/data/images/particles/leaf/03.png new file mode 100644 index 0000000..f8ac4e8 Binary files /dev/null and b/data/images/particles/leaf/03.png differ diff --git a/data/images/particles/leaf/04.png b/data/images/particles/leaf/04.png new file mode 100644 index 0000000..0de7076 Binary files /dev/null and b/data/images/particles/leaf/04.png differ diff --git a/data/images/particles/leaf/05.png b/data/images/particles/leaf/05.png new file mode 100644 index 0000000..16bf760 Binary files /dev/null and b/data/images/particles/leaf/05.png differ diff --git a/data/images/particles/leaf/06.png b/data/images/particles/leaf/06.png new file mode 100644 index 0000000..9087337 Binary files /dev/null and b/data/images/particles/leaf/06.png differ diff --git a/data/images/particles/leaf/07.png b/data/images/particles/leaf/07.png new file mode 100644 index 0000000..62d726c Binary files /dev/null and b/data/images/particles/leaf/07.png differ diff --git a/data/images/particles/leaf/08.png b/data/images/particles/leaf/08.png new file mode 100644 index 0000000..36b4f20 Binary files /dev/null and b/data/images/particles/leaf/08.png differ diff --git a/data/images/particles/leaf/09.png b/data/images/particles/leaf/09.png new file mode 100644 index 0000000..20ba32b Binary files /dev/null and b/data/images/particles/leaf/09.png differ diff --git a/data/images/particles/leaf/10.png b/data/images/particles/leaf/10.png new file mode 100644 index 0000000..edb3e91 Binary files /dev/null and b/data/images/particles/leaf/10.png differ diff --git a/data/images/particles/leaf/11.png b/data/images/particles/leaf/11.png new file mode 100644 index 0000000..fa48b28 Binary files /dev/null and b/data/images/particles/leaf/11.png differ diff --git a/data/images/particles/leaf/12.png b/data/images/particles/leaf/12.png new file mode 100644 index 0000000..a7168cc Binary files /dev/null and b/data/images/particles/leaf/12.png differ diff --git a/data/images/particles/leaf/13.png b/data/images/particles/leaf/13.png new file mode 100644 index 0000000..f6a3fb4 Binary files /dev/null and b/data/images/particles/leaf/13.png differ diff --git a/data/images/particles/leaf/14.png b/data/images/particles/leaf/14.png new file mode 100644 index 0000000..f6a3fb4 Binary files /dev/null and b/data/images/particles/leaf/14.png differ diff --git a/data/images/particles/leaf/15.png b/data/images/particles/leaf/15.png new file mode 100644 index 0000000..f6a3fb4 Binary files /dev/null and b/data/images/particles/leaf/15.png differ diff --git a/data/images/particles/leaf/16.png b/data/images/particles/leaf/16.png new file mode 100644 index 0000000..f6a3fb4 Binary files /dev/null and b/data/images/particles/leaf/16.png differ diff --git a/data/images/particles/leaf/17.png b/data/images/particles/leaf/17.png new file mode 100644 index 0000000..f6a3fb4 Binary files /dev/null and b/data/images/particles/leaf/17.png differ diff --git a/data/images/particles/particle/0.png b/data/images/particles/particle/0.png new file mode 100644 index 0000000..f07f9e0 Binary files /dev/null and b/data/images/particles/particle/0.png differ diff --git a/data/images/particles/particle/1.png b/data/images/particles/particle/1.png new file mode 100644 index 0000000..4dee623 Binary files /dev/null and b/data/images/particles/particle/1.png differ diff --git a/data/images/particles/particle/2.png b/data/images/particles/particle/2.png new file mode 100644 index 0000000..20b6a00 Binary files /dev/null and b/data/images/particles/particle/2.png differ diff --git a/data/images/particles/particle/3.png b/data/images/particles/particle/3.png new file mode 100644 index 0000000..b14a0f7 Binary files /dev/null and b/data/images/particles/particle/3.png differ diff --git a/data/images/projectile.png b/data/images/projectile.png new file mode 100644 index 0000000..b49149a Binary files /dev/null and b/data/images/projectile.png differ diff --git a/data/images/tiles/decor/0.png b/data/images/tiles/decor/0.png new file mode 100644 index 0000000..d42df5a Binary files /dev/null and b/data/images/tiles/decor/0.png differ diff --git a/data/images/tiles/decor/1.png b/data/images/tiles/decor/1.png new file mode 100644 index 0000000..9adb0d8 Binary files /dev/null and b/data/images/tiles/decor/1.png differ diff --git a/data/images/tiles/decor/2.png b/data/images/tiles/decor/2.png new file mode 100644 index 0000000..d325cf4 Binary files /dev/null and b/data/images/tiles/decor/2.png differ diff --git a/data/images/tiles/decor/3.png b/data/images/tiles/decor/3.png new file mode 100644 index 0000000..da11059 Binary files /dev/null and b/data/images/tiles/decor/3.png differ diff --git a/data/images/tiles/grass/0.png b/data/images/tiles/grass/0.png new file mode 100644 index 0000000..3713f0b Binary files /dev/null and b/data/images/tiles/grass/0.png differ diff --git a/data/images/tiles/grass/1.png b/data/images/tiles/grass/1.png new file mode 100644 index 0000000..b19b5ca Binary files /dev/null and b/data/images/tiles/grass/1.png differ diff --git a/data/images/tiles/grass/2.png b/data/images/tiles/grass/2.png new file mode 100644 index 0000000..78cdab8 Binary files /dev/null and b/data/images/tiles/grass/2.png differ diff --git a/data/images/tiles/grass/3.png b/data/images/tiles/grass/3.png new file mode 100644 index 0000000..f145bb5 Binary files /dev/null and b/data/images/tiles/grass/3.png differ diff --git a/data/images/tiles/grass/4.png b/data/images/tiles/grass/4.png new file mode 100644 index 0000000..bd45f41 Binary files /dev/null and b/data/images/tiles/grass/4.png differ diff --git a/data/images/tiles/grass/5.png b/data/images/tiles/grass/5.png new file mode 100644 index 0000000..586d9c0 Binary files /dev/null and b/data/images/tiles/grass/5.png differ diff --git a/data/images/tiles/grass/6.png b/data/images/tiles/grass/6.png new file mode 100644 index 0000000..43ba3ee Binary files /dev/null and b/data/images/tiles/grass/6.png differ diff --git a/data/images/tiles/grass/7.png b/data/images/tiles/grass/7.png new file mode 100644 index 0000000..c648b30 Binary files /dev/null and b/data/images/tiles/grass/7.png differ diff --git a/data/images/tiles/grass/8.png b/data/images/tiles/grass/8.png new file mode 100644 index 0000000..586d9c0 Binary files /dev/null and b/data/images/tiles/grass/8.png differ diff --git a/data/images/tiles/large_decor/0.png b/data/images/tiles/large_decor/0.png new file mode 100644 index 0000000..e3aa1f4 Binary files /dev/null and b/data/images/tiles/large_decor/0.png differ diff --git a/data/images/tiles/large_decor/1.png b/data/images/tiles/large_decor/1.png new file mode 100644 index 0000000..9c1b19c Binary files /dev/null and b/data/images/tiles/large_decor/1.png differ diff --git a/data/images/tiles/large_decor/2.png b/data/images/tiles/large_decor/2.png new file mode 100644 index 0000000..9516535 Binary files /dev/null and b/data/images/tiles/large_decor/2.png differ diff --git a/data/images/tiles/spawners/0.png b/data/images/tiles/spawners/0.png new file mode 100644 index 0000000..9d4b9e2 Binary files /dev/null and b/data/images/tiles/spawners/0.png differ diff --git a/data/images/tiles/spawners/1.png b/data/images/tiles/spawners/1.png new file mode 100644 index 0000000..bcda7a8 Binary files /dev/null and b/data/images/tiles/spawners/1.png differ diff --git a/data/images/tiles/stone/0.png b/data/images/tiles/stone/0.png new file mode 100644 index 0000000..10b426f Binary files /dev/null and b/data/images/tiles/stone/0.png differ diff --git a/data/images/tiles/stone/1.png b/data/images/tiles/stone/1.png new file mode 100644 index 0000000..ecc86bd Binary files /dev/null and b/data/images/tiles/stone/1.png differ diff --git a/data/images/tiles/stone/2.png b/data/images/tiles/stone/2.png new file mode 100644 index 0000000..78ec73b Binary files /dev/null and b/data/images/tiles/stone/2.png differ diff --git a/data/images/tiles/stone/3.png b/data/images/tiles/stone/3.png new file mode 100644 index 0000000..78239cb Binary files /dev/null and b/data/images/tiles/stone/3.png differ diff --git a/data/images/tiles/stone/4.png b/data/images/tiles/stone/4.png new file mode 100644 index 0000000..9068b2e Binary files /dev/null and b/data/images/tiles/stone/4.png differ diff --git a/data/images/tiles/stone/5.png b/data/images/tiles/stone/5.png new file mode 100644 index 0000000..736d6ce Binary files /dev/null and b/data/images/tiles/stone/5.png differ diff --git a/data/images/tiles/stone/6.png b/data/images/tiles/stone/6.png new file mode 100644 index 0000000..e4ec6b9 Binary files /dev/null and b/data/images/tiles/stone/6.png differ diff --git a/data/images/tiles/stone/7.png b/data/images/tiles/stone/7.png new file mode 100644 index 0000000..7380583 Binary files /dev/null and b/data/images/tiles/stone/7.png differ diff --git a/data/images/tiles/stone/8.png b/data/images/tiles/stone/8.png new file mode 100644 index 0000000..736d6ce Binary files /dev/null and b/data/images/tiles/stone/8.png differ diff --git a/data/maps/0.json b/data/maps/0.json new file mode 100644 index 0000000..457a22d --- /dev/null +++ b/data/maps/0.json @@ -0,0 +1 @@ +{"tilemap": {"9;12": {"type": "grass", "variant": 2, "pos": [9, 12]}, "9;13": {"type": "grass", "variant": 8, "pos": [9, 13]}, "10;13": {"type": "grass", "variant": 1, "pos": [10, 13]}, "11;13": {"type": "grass", "variant": 1, "pos": [11, 13]}, "12;13": {"type": "grass", "variant": 1, "pos": [12, 13]}, "13;13": {"type": "grass", "variant": 1, "pos": [13, 13]}, "14;13": {"type": "grass", "variant": 1, "pos": [14, 13]}, "15;13": {"type": "grass", "variant": 1, "pos": [15, 13]}, "15;14": {"type": "grass", "variant": 8, "pos": [15, 14]}, "14;14": {"type": "grass", "variant": 8, "pos": [14, 14]}, "13;14": {"type": "grass", "variant": 8, "pos": [13, 14]}, "12;14": {"type": "grass", "variant": 8, "pos": [12, 14]}, "11;14": {"type": "grass", "variant": 8, "pos": [11, 14]}, "10;14": {"type": "grass", "variant": 8, "pos": [10, 14]}, "9;14": {"type": "grass", "variant": 8, "pos": [9, 14]}, "8;14": {"type": "grass", "variant": 8, "pos": [8, 14]}, "7;14": {"type": "grass", "variant": 8, "pos": [7, 14]}, "8;15": {"type": "grass", "variant": 5, "pos": [8, 15]}, "9;15": {"type": "grass", "variant": 5, "pos": [9, 15]}, "10;15": {"type": "grass", "variant": 5, "pos": [10, 15]}, "11;15": {"type": "grass", "variant": 5, "pos": [11, 15]}, "12;15": {"type": "grass", "variant": 5, "pos": [12, 15]}, "13;15": {"type": "grass", "variant": 5, "pos": [13, 15]}, "14;15": {"type": "grass", "variant": 5, "pos": [14, 15]}, "15;15": {"type": "grass", "variant": 5, "pos": [15, 15]}, "7;15": {"type": "grass", "variant": 6, "pos": [7, 15]}, "8;13": {"type": "grass", "variant": 8, "pos": [8, 13]}, "7;13": {"type": "grass", "variant": 8, "pos": [7, 13]}, "7;12": {"type": "grass", "variant": 8, "pos": [7, 12]}, "8;12": {"type": "grass", "variant": 8, "pos": [8, 12]}, "7;11": {"type": "grass", "variant": 1, "pos": [7, 11]}, "8;11": {"type": "grass", "variant": 2, "pos": [8, 11]}, "6;11": {"type": "grass", "variant": 1, "pos": [6, 11]}, "5;11": {"type": "grass", "variant": 1, "pos": [5, 11]}, "4;11": {"type": "grass", "variant": 1, "pos": [4, 11]}, "3;11": {"type": "grass", "variant": 1, "pos": [3, 11]}, "2;11": {"type": "grass", "variant": 1, "pos": [2, 11]}, "1;11": {"type": "grass", "variant": 1, "pos": [1, 11]}, "1;12": {"type": "grass", "variant": 8, "pos": [1, 12]}, "2;12": {"type": "grass", "variant": 8, "pos": [2, 12]}, "2;13": {"type": "grass", "variant": 8, "pos": [2, 13]}, "3;13": {"type": "grass", "variant": 8, "pos": [3, 13]}, "4;13": {"type": "grass", "variant": 8, "pos": [4, 13]}, "4;14": {"type": "grass", "variant": 5, "pos": [4, 14]}, "5;14": {"type": "grass", "variant": 5, "pos": [5, 14]}, "6;14": {"type": "grass", "variant": 5, "pos": [6, 14]}, "3;14": {"type": "grass", "variant": 5, "pos": [3, 14]}, "2;14": {"type": "grass", "variant": 5, "pos": [2, 14]}, "1;14": {"type": "grass", "variant": 6, "pos": [1, 14]}, "1;13": {"type": "grass", "variant": 8, "pos": [1, 13]}, "3;12": {"type": "grass", "variant": 8, "pos": [3, 12]}, "4;12": {"type": "grass", "variant": 8, "pos": [4, 12]}, "5;12": {"type": "grass", "variant": 8, "pos": [5, 12]}, "6;12": {"type": "grass", "variant": 8, "pos": [6, 12]}, "6;13": {"type": "grass", "variant": 8, "pos": [6, 13]}, "5;13": {"type": "grass", "variant": 8, "pos": [5, 13]}, "0;13": {"type": "grass", "variant": 6, "pos": [0, 13]}, "0;12": {"type": "grass", "variant": 7, "pos": [0, 12]}, "0;11": {"type": "grass", "variant": 0, "pos": [0, 11]}, "16;13": {"type": "grass", "variant": 8, "pos": [16, 13]}, "16;12": {"type": "grass", "variant": 0, "pos": [16, 12]}, "17;12": {"type": "grass", "variant": 8, "pos": [17, 12]}, "17;11": {"type": "grass", "variant": 0, "pos": [17, 11]}, "18;11": {"type": "grass", "variant": 8, "pos": [18, 11]}, "18;10": {"type": "grass", "variant": 0, "pos": [18, 10]}, "19;10": {"type": "grass", "variant": 1, "pos": [19, 10]}, "20;10": {"type": "grass", "variant": 1, "pos": [20, 10]}, "16;15": {"type": "grass", "variant": 5, "pos": [16, 15]}, "17;15": {"type": "grass", "variant": 4, "pos": [17, 15]}, "18;14": {"type": "grass", "variant": 5, "pos": [18, 14]}, "19;14": {"type": "grass", "variant": 5, "pos": [19, 14]}, "20;14": {"type": "grass", "variant": 5, "pos": [20, 14]}, "21;14": {"type": "grass", "variant": 5, "pos": [21, 14]}, "22;14": {"type": "grass", "variant": 4, "pos": [22, 14]}, "22;13": {"type": "grass", "variant": 8, "pos": [22, 13]}, "23;13": {"type": "grass", "variant": 5, "pos": [23, 13]}, "24;13": {"type": "grass", "variant": 4, "pos": [24, 13]}, "24;12": {"type": "grass", "variant": 3, "pos": [24, 12]}, "24;11": {"type": "grass", "variant": 3, "pos": [24, 11]}, "24;10": {"type": "grass", "variant": 2, "pos": [24, 10]}, "23;10": {"type": "grass", "variant": 1, "pos": [23, 10]}, "22;10": {"type": "grass", "variant": 1, "pos": [22, 10]}, "21;10": {"type": "grass", "variant": 1, "pos": [21, 10]}, "23;11": {"type": "grass", "variant": 8, "pos": [23, 11]}, "23;12": {"type": "grass", "variant": 8, "pos": [23, 12]}, "22;12": {"type": "grass", "variant": 8, "pos": [22, 12]}, "21;12": {"type": "grass", "variant": 8, "pos": [21, 12]}, "21;11": {"type": "grass", "variant": 8, "pos": [21, 11]}, "20;11": {"type": "grass", "variant": 8, "pos": [20, 11]}, "19;11": {"type": "grass", "variant": 8, "pos": [19, 11]}, "18;12": {"type": "grass", "variant": 8, "pos": [18, 12]}, "17;13": {"type": "grass", "variant": 8, "pos": [17, 13]}, "16;14": {"type": "grass", "variant": 8, "pos": [16, 14]}, "18;13": {"type": "grass", "variant": 8, "pos": [18, 13]}, "19;13": {"type": "grass", "variant": 8, "pos": [19, 13]}, "19;12": {"type": "grass", "variant": 8, "pos": [19, 12]}, "20;12": {"type": "grass", "variant": 8, "pos": [20, 12]}, "22;11": {"type": "grass", "variant": 8, "pos": [22, 11]}, "21;13": {"type": "grass", "variant": 8, "pos": [21, 13]}, "20;13": {"type": "grass", "variant": 8, "pos": [20, 13]}, "17;14": {"type": "grass", "variant": 8, "pos": [17, 14]}, "19;4": {"type": "grass", "variant": 1, "pos": [19, 4]}, "18;4": {"type": "grass", "variant": 1, "pos": [18, 4]}, "17;4": {"type": "grass", "variant": 0, "pos": [17, 4]}, "17;5": {"type": "grass", "variant": 8, "pos": [17, 5]}, "16;5": {"type": "grass", "variant": 0, "pos": [16, 5]}, "16;6": {"type": "grass", "variant": 6, "pos": [16, 6]}, "17;6": {"type": "grass", "variant": 5, "pos": [17, 6]}, "18;6": {"type": "grass", "variant": 5, "pos": [18, 6]}, "19;6": {"type": "grass", "variant": 4, "pos": [19, 6]}, "19;5": {"type": "grass", "variant": 8, "pos": [19, 5]}, "20;5": {"type": "grass", "variant": 4, "pos": [20, 5]}, "20;4": {"type": "grass", "variant": 2, "pos": [20, 4]}, "18;5": {"type": "grass", "variant": 8, "pos": [18, 5]}, "8;5": {"type": "grass", "variant": 2, "pos": [8, 5]}, "7;5": {"type": "grass", "variant": 1, "pos": [7, 5]}, "6;5": {"type": "grass", "variant": 0, "pos": [6, 5]}, "6;6": {"type": "grass", "variant": 6, "pos": [6, 6]}, "7;6": {"type": "grass", "variant": 8, "pos": [7, 6]}, "7;7": {"type": "grass", "variant": 6, "pos": [7, 7]}, "8;7": {"type": "grass", "variant": 5, "pos": [8, 7]}, "9;7": {"type": "grass", "variant": 4, "pos": [9, 7]}, "9;6": {"type": "grass", "variant": 2, "pos": [9, 6]}, "8;6": {"type": "grass", "variant": 8, "pos": [8, 6]}, "26;8": {"type": "stone", "variant": 0, "pos": [26, 8]}, "26;9": {"type": "stone", "variant": 7, "pos": [26, 9]}, "26;10": {"type": "stone", "variant": 7, "pos": [26, 10]}, "26;11": {"type": "stone", "variant": 6, "pos": [26, 11]}, "27;12": {"type": "stone", "variant": 7, "pos": [27, 12]}, "27;13": {"type": "stone", "variant": 6, "pos": [27, 13]}, "28;13": {"type": "stone", "variant": 5, "pos": [28, 13]}, "29;13": {"type": "stone", "variant": 4, "pos": [29, 13]}, "29;12": {"type": "stone", "variant": 8, "pos": [29, 12]}, "30;12": {"type": "stone", "variant": 4, "pos": [30, 12]}, "30;11": {"type": "stone", "variant": 3, "pos": [30, 11]}, "30;10": {"type": "stone", "variant": 3, "pos": [30, 10]}, "30;9": {"type": "stone", "variant": 3, "pos": [30, 9]}, "30;8": {"type": "stone", "variant": 2, "pos": [30, 8]}, "27;8": {"type": "stone", "variant": 1, "pos": [27, 8]}, "28;9": {"type": "stone", "variant": 8, "pos": [28, 9]}, "28;10": {"type": "stone", "variant": 8, "pos": [28, 10]}, "28;11": {"type": "stone", "variant": 8, "pos": [28, 11]}, "28;8": {"type": "stone", "variant": 1, "pos": [28, 8]}, "29;9": {"type": "stone", "variant": 8, "pos": [29, 9]}, "29;8": {"type": "stone", "variant": 1, "pos": [29, 8]}, "29;10": {"type": "stone", "variant": 8, "pos": [29, 10]}, "29;11": {"type": "stone", "variant": 8, "pos": [29, 11]}, "28;12": {"type": "stone", "variant": 8, "pos": [28, 12]}, "27;11": {"type": "stone", "variant": 8, "pos": [27, 11]}, "27;10": {"type": "stone", "variant": 8, "pos": [27, 10]}, "27;9": {"type": "stone", "variant": 8, "pos": [27, 9]}, "23;9": {"type": "decor", "variant": 0, "pos": [23, 9]}, "20;9": {"type": "decor", "variant": 0, "pos": [20, 9]}, "13;12": {"type": "decor", "variant": 0, "pos": [13, 12]}, "7;10": {"type": "decor", "variant": 0, "pos": [7, 10]}, "5;10": {"type": "decor", "variant": 0, "pos": [5, 10]}, "2;10": {"type": "decor", "variant": 0, "pos": [2, 10]}, "7;4": {"type": "decor", "variant": 0, "pos": [7, 4]}, "18;3": {"type": "decor", "variant": 0, "pos": [18, 3]}, "8;4": {"type": "decor", "variant": 1, "pos": [8, 4]}, "17;3": {"type": "decor", "variant": 1, "pos": [17, 3]}, "22;9": {"type": "decor", "variant": 1, "pos": [22, 9]}, "15;12": {"type": "decor", "variant": 1, "pos": [15, 12]}, "10;12": {"type": "decor", "variant": 1, "pos": [10, 12]}, "8;10": {"type": "decor", "variant": 1, "pos": [8, 10]}, "3;10": {"type": "decor", "variant": 1, "pos": [3, 10]}, "1;10": {"type": "decor", "variant": 2, "pos": [1, 10]}, "6;10": {"type": "decor", "variant": 2, "pos": [6, 10]}, "12;12": {"type": "decor", "variant": 2, "pos": [12, 12]}, "9;5": {"type": "decor", "variant": 2, "pos": [9, 5]}, "19;3": {"type": "decor", "variant": 2, "pos": [19, 3]}, "21;9": {"type": "decor", "variant": 2, "pos": [21, 9]}, "19;9": {"type": "decor", "variant": 3, "pos": [19, 9]}, "6;4": {"type": "decor", "variant": 3, "pos": [6, 4]}, "27;7": {"type": "decor", "variant": 3, "pos": [27, 7]}}, "tile_size": 16, "offgrid": [{"type": "large_decor", "variant": 0, "pos": [457.0, 119.0]}, {"type": "large_decor", "variant": 0, "pos": [361.5, 151.0]}, {"type": "large_decor", "variant": 0, "pos": [70.0, 167.5]}, {"type": "large_decor", "variant": 0, "pos": [301.5, 55.0]}, {"type": "large_decor", "variant": 1, "pos": [278.5, 165.5]}, {"type": "large_decor", "variant": 1, "pos": [293.5, 149.0]}, {"type": "large_decor", "variant": 1, "pos": [133.0, 180.0]}, {"type": "large_decor", "variant": 1, "pos": [4.0, 165.5]}, {"type": "large_decor", "variant": 2, "pos": [25.0, 133.0]}, {"type": "large_decor", "variant": 2, "pos": [170.5, 166.0]}, {"type": "large_decor", "variant": 2, "pos": [239.0, 188.5]}, {"type": "large_decor", "variant": 2, "pos": [252.5, 37.0]}, {"type": "large_decor", "variant": 2, "pos": [118.0, 37.5]}, {"type": "large_decor", "variant": 2, "pos": [340.0, 117.0]}, {"type": "spawners", "variant": 0, "pos": [228.5, 192.5]}, {"type": "spawners", "variant": 1, "pos": [59.5, 159.5]}, {"type": "spawners", "variant": 1, "pos": [321.5, 142.0]}, {"type": "spawners", "variant": 1, "pos": [472.0, 111.0]}]} \ No newline at end of file diff --git a/data/maps/1.json b/data/maps/1.json new file mode 100644 index 0000000..4754cec --- /dev/null +++ b/data/maps/1.json @@ -0,0 +1 @@ +{"tilemap": {"8;8": {"type": "grass", "variant": 0, "pos": [8, 8]}, "8;9": {"type": "grass", "variant": 7, "pos": [8, 9]}, "8;10": {"type": "grass", "variant": 7, "pos": [8, 10]}, "8;11": {"type": "grass", "variant": 7, "pos": [8, 11]}, "8;12": {"type": "grass", "variant": 7, "pos": [8, 12]}, "8;13": {"type": "grass", "variant": 7, "pos": [8, 13]}, "8;14": {"type": "grass", "variant": 7, "pos": [8, 14]}, "8;15": {"type": "grass", "variant": 6, "pos": [8, 15]}, "9;15": {"type": "grass", "variant": 8, "pos": [9, 15]}, "9;16": {"type": "grass", "variant": 6, "pos": [9, 16]}, "10;16": {"type": "grass", "variant": 5, "pos": [10, 16]}, "11;16": {"type": "grass", "variant": 5, "pos": [11, 16]}, "12;16": {"type": "grass", "variant": 4, "pos": [12, 16]}, "12;15": {"type": "grass", "variant": 8, "pos": [12, 15]}, "13;15": {"type": "grass", "variant": 4, "pos": [13, 15]}, "13;14": {"type": "grass", "variant": 3, "pos": [13, 14]}, "13;13": {"type": "grass", "variant": 3, "pos": [13, 13]}, "13;12": {"type": "grass", "variant": 3, "pos": [13, 12]}, "13;11": {"type": "grass", "variant": 3, "pos": [13, 11]}, "13;10": {"type": "grass", "variant": 3, "pos": [13, 10]}, "13;9": {"type": "grass", "variant": 3, "pos": [13, 9]}, "13;8": {"type": "grass", "variant": 3, "pos": [13, 8]}, "13;7": {"type": "grass", "variant": 2, "pos": [13, 7]}, "12;7": {"type": "grass", "variant": 1, "pos": [12, 7]}, "11;7": {"type": "grass", "variant": 1, "pos": [11, 7]}, "10;7": {"type": "grass", "variant": 1, "pos": [10, 7]}, "10;8": {"type": "grass", "variant": 8, "pos": [10, 8]}, "9;8": {"type": "grass", "variant": 8, "pos": [9, 8]}, "9;7": {"type": "grass", "variant": 0, "pos": [9, 7]}, "11;8": {"type": "grass", "variant": 8, "pos": [11, 8]}, "12;8": {"type": "grass", "variant": 8, "pos": [12, 8]}, "12;9": {"type": "grass", "variant": 8, "pos": [12, 9]}, "12;10": {"type": "grass", "variant": 8, "pos": [12, 10]}, "12;11": {"type": "grass", "variant": 8, "pos": [12, 11]}, "12;12": {"type": "grass", "variant": 8, "pos": [12, 12]}, "12;13": {"type": "grass", "variant": 8, "pos": [12, 13]}, "12;14": {"type": "grass", "variant": 8, "pos": [12, 14]}, "11;14": {"type": "grass", "variant": 8, "pos": [11, 14]}, "11;15": {"type": "grass", "variant": 8, "pos": [11, 15]}, "10;15": {"type": "grass", "variant": 8, "pos": [10, 15]}, "10;14": {"type": "grass", "variant": 8, "pos": [10, 14]}, "10;13": {"type": "grass", "variant": 8, "pos": [10, 13]}, "9;14": {"type": "grass", "variant": 8, "pos": [9, 14]}, "9;13": {"type": "grass", "variant": 8, "pos": [9, 13]}, "9;12": {"type": "grass", "variant": 8, "pos": [9, 12]}, "9;11": {"type": "grass", "variant": 8, "pos": [9, 11]}, "9;10": {"type": "grass", "variant": 8, "pos": [9, 10]}, "9;9": {"type": "grass", "variant": 8, "pos": [9, 9]}, "10;9": {"type": "grass", "variant": 8, "pos": [10, 9]}, "10;10": {"type": "grass", "variant": 8, "pos": [10, 10]}, "11;10": {"type": "grass", "variant": 8, "pos": [11, 10]}, "11;11": {"type": "grass", "variant": 8, "pos": [11, 11]}, "11;12": {"type": "grass", "variant": 8, "pos": [11, 12]}, "10;12": {"type": "grass", "variant": 8, "pos": [10, 12]}, "10;11": {"type": "grass", "variant": 8, "pos": [10, 11]}, "11;13": {"type": "grass", "variant": 8, "pos": [11, 13]}, "11;9": {"type": "grass", "variant": 8, "pos": [11, 9]}, "16;10": {"type": "grass", "variant": 0, "pos": [16, 10]}, "17;10": {"type": "grass", "variant": 1, "pos": [17, 10]}, "18;10": {"type": "grass", "variant": 1, "pos": [18, 10]}, "19;10": {"type": "grass", "variant": 1, "pos": [19, 10]}, "20;10": {"type": "grass", "variant": 1, "pos": [20, 10]}, "21;10": {"type": "grass", "variant": 1, "pos": [21, 10]}, "22;10": {"type": "grass", "variant": 1, "pos": [22, 10]}, "23;10": {"type": "grass", "variant": 1, "pos": [23, 10]}, "24;10": {"type": "grass", "variant": 1, "pos": [24, 10]}, "25;10": {"type": "grass", "variant": 1, "pos": [25, 10]}, "26;10": {"type": "grass", "variant": 2, "pos": [26, 10]}, "26;11": {"type": "grass", "variant": 8, "pos": [26, 11]}, "27;11": {"type": "grass", "variant": 2, "pos": [27, 11]}, "26;12": {"type": "grass", "variant": 8, "pos": [26, 12]}, "26;13": {"type": "grass", "variant": 8, "pos": [26, 13]}, "26;14": {"type": "grass", "variant": 4, "pos": [26, 14]}, "25;14": {"type": "grass", "variant": 6, "pos": [25, 14]}, "24;13": {"type": "grass", "variant": 5, "pos": [24, 13]}, "23;13": {"type": "grass", "variant": 5, "pos": [23, 13]}, "22;13": {"type": "grass", "variant": 5, "pos": [22, 13]}, "21;13": {"type": "grass", "variant": 5, "pos": [21, 13]}, "20;13": {"type": "grass", "variant": 5, "pos": [20, 13]}, "19;13": {"type": "grass", "variant": 5, "pos": [19, 13]}, "18;13": {"type": "grass", "variant": 5, "pos": [18, 13]}, "17;13": {"type": "grass", "variant": 6, "pos": [17, 13]}, "17;12": {"type": "grass", "variant": 8, "pos": [17, 12]}, "16;12": {"type": "grass", "variant": 6, "pos": [16, 12]}, "16;11": {"type": "grass", "variant": 7, "pos": [16, 11]}, "27;12": {"type": "grass", "variant": 3, "pos": [27, 12]}, "27;13": {"type": "grass", "variant": 4, "pos": [27, 13]}, "17;11": {"type": "grass", "variant": 8, "pos": [17, 11]}, "18;11": {"type": "grass", "variant": 8, "pos": [18, 11]}, "19;11": {"type": "grass", "variant": 8, "pos": [19, 11]}, "20;11": {"type": "grass", "variant": 8, "pos": [20, 11]}, "21;11": {"type": "grass", "variant": 8, "pos": [21, 11]}, "22;11": {"type": "grass", "variant": 8, "pos": [22, 11]}, "23;11": {"type": "grass", "variant": 8, "pos": [23, 11]}, "24;11": {"type": "grass", "variant": 8, "pos": [24, 11]}, "25;11": {"type": "grass", "variant": 8, "pos": [25, 11]}, "25;12": {"type": "grass", "variant": 8, "pos": [25, 12]}, "25;13": {"type": "grass", "variant": 8, "pos": [25, 13]}, "24;12": {"type": "grass", "variant": 8, "pos": [24, 12]}, "23;12": {"type": "grass", "variant": 8, "pos": [23, 12]}, "22;12": {"type": "grass", "variant": 8, "pos": [22, 12]}, "21;12": {"type": "grass", "variant": 8, "pos": [21, 12]}, "20;12": {"type": "grass", "variant": 8, "pos": [20, 12]}, "19;12": {"type": "grass", "variant": 8, "pos": [19, 12]}, "18;12": {"type": "grass", "variant": 8, "pos": [18, 12]}, "32;8": {"type": "stone", "variant": 2, "pos": [32, 8]}, "31;8": {"type": "stone", "variant": 1, "pos": [31, 8]}, "30;8": {"type": "stone", "variant": 0, "pos": [30, 8]}, "30;9": {"type": "stone", "variant": 7, "pos": [30, 9]}, "30;10": {"type": "stone", "variant": 7, "pos": [30, 10]}, "30;11": {"type": "stone", "variant": 7, "pos": [30, 11]}, "31;11": {"type": "stone", "variant": 8, "pos": [31, 11]}, "32;11": {"type": "stone", "variant": 4, "pos": [32, 11]}, "32;10": {"type": "stone", "variant": 3, "pos": [32, 10]}, "32;9": {"type": "stone", "variant": 3, "pos": [32, 9]}, "31;9": {"type": "stone", "variant": 8, "pos": [31, 9]}, "31;10": {"type": "stone", "variant": 8, "pos": [31, 10]}, "31;12": {"type": "stone", "variant": 4, "pos": [31, 12]}, "30;12": {"type": "stone", "variant": 6, "pos": [30, 12]}, "34;5": {"type": "stone", "variant": 7, "pos": [34, 5]}, "34;6": {"type": "stone", "variant": 7, "pos": [34, 6]}, "35;6": {"type": "stone", "variant": 3, "pos": [35, 6]}, "35;5": {"type": "stone", "variant": 3, "pos": [35, 5]}, "35;7": {"type": "stone", "variant": 4, "pos": [35, 7]}, "34;7": {"type": "stone", "variant": 6, "pos": [34, 7]}, "31;4": {"type": "stone", "variant": 4, "pos": [31, 4]}, "31;3": {"type": "stone", "variant": 3, "pos": [31, 3]}, "31;2": {"type": "stone", "variant": 2, "pos": [31, 2]}, "30;2": {"type": "stone", "variant": 0, "pos": [30, 2]}, "30;3": {"type": "stone", "variant": 7, "pos": [30, 3]}, "30;4": {"type": "stone", "variant": 6, "pos": [30, 4]}, "34;4": {"type": "stone", "variant": 7, "pos": [34, 4]}, "34;3": {"type": "stone", "variant": 7, "pos": [34, 3]}, "34;2": {"type": "stone", "variant": 7, "pos": [34, 2]}, "34;1": {"type": "stone", "variant": 7, "pos": [34, 1]}, "34;0": {"type": "stone", "variant": 0, "pos": [34, 0]}, "35;0": {"type": "stone", "variant": 2, "pos": [35, 0]}, "35;1": {"type": "stone", "variant": 3, "pos": [35, 1]}, "35;2": {"type": "stone", "variant": 3, "pos": [35, 2]}, "35;3": {"type": "stone", "variant": 3, "pos": [35, 3]}, "35;4": {"type": "stone", "variant": 3, "pos": [35, 4]}, "27;0": {"type": "stone", "variant": 2, "pos": [27, 0]}, "26;0": {"type": "stone", "variant": 1, "pos": [26, 0]}, "25;0": {"type": "stone", "variant": 1, "pos": [25, 0]}, "24;0": {"type": "stone", "variant": 1, "pos": [24, 0]}, "23;0": {"type": "stone", "variant": 1, "pos": [23, 0]}, "22;0": {"type": "stone", "variant": 1, "pos": [22, 0]}, "21;0": {"type": "stone", "variant": 1, "pos": [21, 0]}, "20;0": {"type": "stone", "variant": 8, "pos": [20, 0]}, "20;1": {"type": "stone", "variant": 8, "pos": [20, 1]}, "20;2": {"type": "stone", "variant": 6, "pos": [20, 2]}, "21;2": {"type": "stone", "variant": 5, "pos": [21, 2]}, "21;1": {"type": "stone", "variant": 8, "pos": [21, 1]}, "22;1": {"type": "stone", "variant": 8, "pos": [22, 1]}, "23;1": {"type": "stone", "variant": 8, "pos": [23, 1]}, "24;1": {"type": "stone", "variant": 8, "pos": [24, 1]}, "25;1": {"type": "stone", "variant": 8, "pos": [25, 1]}, "26;1": {"type": "stone", "variant": 8, "pos": [26, 1]}, "26;2": {"type": "stone", "variant": 4, "pos": [26, 2]}, "25;2": {"type": "stone", "variant": 5, "pos": [25, 2]}, "24;2": {"type": "stone", "variant": 5, "pos": [24, 2]}, "23;2": {"type": "stone", "variant": 5, "pos": [23, 2]}, "22;2": {"type": "stone", "variant": 5, "pos": [22, 2]}, "27;1": {"type": "stone", "variant": 4, "pos": [27, 1]}, "19;0": {"type": "stone", "variant": 7, "pos": [19, 0]}, "19;-1": {"type": "stone", "variant": 0, "pos": [19, -1]}, "19;1": {"type": "stone", "variant": 6, "pos": [19, 1]}, "20;-1": {"type": "stone", "variant": 2, "pos": [20, -1]}, "15;-3": {"type": "grass", "variant": 2, "pos": [15, -3]}, "14;-3": {"type": "grass", "variant": 1, "pos": [14, -3]}, "13;-3": {"type": "grass", "variant": 1, "pos": [13, -3]}, "12;-3": {"type": "grass", "variant": 1, "pos": [12, -3]}, "11;-3": {"type": "grass", "variant": 1, "pos": [11, -3]}, "10;-3": {"type": "grass", "variant": 1, "pos": [10, -3]}, "10;-2": {"type": "grass", "variant": 8, "pos": [10, -2]}, "10;-1": {"type": "grass", "variant": 6, "pos": [10, -1]}, "11;-1": {"type": "grass", "variant": 8, "pos": [11, -1]}, "12;-1": {"type": "grass", "variant": 8, "pos": [12, -1]}, "13;-1": {"type": "grass", "variant": 8, "pos": [13, -1]}, "14;-1": {"type": "grass", "variant": 8, "pos": [14, -1]}, "15;-1": {"type": "grass", "variant": 4, "pos": [15, -1]}, "15;-2": {"type": "grass", "variant": 3, "pos": [15, -2]}, "14;-2": {"type": "grass", "variant": 8, "pos": [14, -2]}, "13;-2": {"type": "grass", "variant": 8, "pos": [13, -2]}, "12;-2": {"type": "grass", "variant": 8, "pos": [12, -2]}, "11;-2": {"type": "grass", "variant": 8, "pos": [11, -2]}, "11;0": {"type": "grass", "variant": 6, "pos": [11, 0]}, "12;0": {"type": "grass", "variant": 5, "pos": [12, 0]}, "13;0": {"type": "grass", "variant": 5, "pos": [13, 0]}, "14;0": {"type": "grass", "variant": 4, "pos": [14, 0]}, "9;-2": {"type": "grass", "variant": 6, "pos": [9, -2]}, "9;-3": {"type": "grass", "variant": 0, "pos": [9, -3]}, "4;0": {"type": "grass", "variant": 1, "pos": [4, 0]}, "3;0": {"type": "grass", "variant": 0, "pos": [3, 0]}, "3;1": {"type": "grass", "variant": 6, "pos": [3, 1]}, "4;1": {"type": "grass", "variant": 8, "pos": [4, 1]}, "5;1": {"type": "grass", "variant": 8, "pos": [5, 1]}, "5;0": {"type": "grass", "variant": 1, "pos": [5, 0]}, "6;0": {"type": "grass", "variant": 2, "pos": [6, 0]}, "6;1": {"type": "grass", "variant": 4, "pos": [6, 1]}, "5;2": {"type": "grass", "variant": 4, "pos": [5, 2]}, "-2;4": {"type": "grass", "variant": 1, "pos": [-2, 4]}, "-3;4": {"type": "grass", "variant": 1, "pos": [-3, 4]}, "-4;4": {"type": "grass", "variant": 1, "pos": [-4, 4]}, "-5;4": {"type": "grass", "variant": 1, "pos": [-5, 4]}, "-6;4": {"type": "grass", "variant": 1, "pos": [-6, 4]}, "-7;4": {"type": "grass", "variant": 1, "pos": [-7, 4]}, "-8;4": {"type": "grass", "variant": 0, "pos": [-8, 4]}, "-8;5": {"type": "grass", "variant": 7, "pos": [-8, 5]}, "-8;6": {"type": "grass", "variant": 6, "pos": [-8, 6]}, "-7;6": {"type": "grass", "variant": 8, "pos": [-7, 6]}, "-6;6": {"type": "grass", "variant": 8, "pos": [-6, 6]}, "-5;6": {"type": "grass", "variant": 8, "pos": [-5, 6]}, "-4;6": {"type": "grass", "variant": 8, "pos": [-4, 6]}, "-3;6": {"type": "grass", "variant": 8, "pos": [-3, 6]}, "-2;6": {"type": "grass", "variant": 8, "pos": [-2, 6]}, "-1;6": {"type": "grass", "variant": 5, "pos": [-1, 6]}, "0;6": {"type": "grass", "variant": 4, "pos": [0, 6]}, "0;5": {"type": "grass", "variant": 3, "pos": [0, 5]}, "-1;4": {"type": "grass", "variant": 8, "pos": [-1, 4]}, "-2;5": {"type": "grass", "variant": 8, "pos": [-2, 5]}, "-3;5": {"type": "grass", "variant": 8, "pos": [-3, 5]}, "-4;5": {"type": "grass", "variant": 8, "pos": [-4, 5]}, "-5;5": {"type": "grass", "variant": 8, "pos": [-5, 5]}, "-7;5": {"type": "grass", "variant": 8, "pos": [-7, 5]}, "-6;5": {"type": "grass", "variant": 8, "pos": [-6, 5]}, "-1;5": {"type": "grass", "variant": 8, "pos": [-1, 5]}, "-2;7": {"type": "grass", "variant": 4, "pos": [-2, 7]}, "-3;7": {"type": "grass", "variant": 5, "pos": [-3, 7]}, "-4;7": {"type": "grass", "variant": 5, "pos": [-4, 7]}, "-5;7": {"type": "grass", "variant": 5, "pos": [-5, 7]}, "-6;7": {"type": "grass", "variant": 5, "pos": [-6, 7]}, "-7;7": {"type": "grass", "variant": 6, "pos": [-7, 7]}, "0;4": {"type": "grass", "variant": 8, "pos": [0, 4]}, "0;3": {"type": "grass", "variant": 1, "pos": [0, 3]}, "-1;3": {"type": "grass", "variant": 0, "pos": [-1, 3]}, "1;3": {"type": "grass", "variant": 2, "pos": [1, 3]}, "1;4": {"type": "grass", "variant": 4, "pos": [1, 4]}, "10;6": {"type": "decor", "variant": 0, "pos": [10, 6]}, "17;9": {"type": "decor", "variant": 0, "pos": [17, 9]}, "21;9": {"type": "decor", "variant": 0, "pos": [21, 9]}, "24;9": {"type": "decor", "variant": 0, "pos": [24, 9]}, "14;-4": {"type": "decor", "variant": 0, "pos": [14, -4]}, "5;-1": {"type": "decor", "variant": 0, "pos": [5, -1]}, "4;-1": {"type": "decor", "variant": 0, "pos": [4, -1]}, "0;2": {"type": "decor", "variant": 0, "pos": [0, 2]}, "-6;3": {"type": "decor", "variant": 0, "pos": [-6, 3]}, "-5;3": {"type": "decor", "variant": 1, "pos": [-5, 3]}, "-3;3": {"type": "decor", "variant": 1, "pos": [-3, 3]}, "6;-1": {"type": "decor", "variant": 1, "pos": [6, -1]}, "11;6": {"type": "decor", "variant": 1, "pos": [11, 6]}, "15;-4": {"type": "decor", "variant": 1, "pos": [15, -4]}, "13;6": {"type": "decor", "variant": 1, "pos": [13, 6]}, "18;9": {"type": "decor", "variant": 1, "pos": [18, 9]}, "25;9": {"type": "decor", "variant": 1, "pos": [25, 9]}, "23;9": {"type": "decor", "variant": 2, "pos": [23, 9]}, "20;9": {"type": "decor", "variant": 2, "pos": [20, 9]}, "9;6": {"type": "decor", "variant": 2, "pos": [9, 6]}, "13;-4": {"type": "decor", "variant": 2, "pos": [13, -4]}, "10;-4": {"type": "decor", "variant": 2, "pos": [10, -4]}, "1;2": {"type": "decor", "variant": 2, "pos": [1, 2]}, "-4;3": {"type": "decor", "variant": 2, "pos": [-4, 3]}, "-8;3": {"type": "decor", "variant": 2, "pos": [-8, 3]}, "12;6": {"type": "decor", "variant": 3, "pos": [12, 6]}, "9;-4": {"type": "decor", "variant": 3, "pos": [9, -4]}, "22;-1": {"type": "decor", "variant": 3, "pos": [22, -1]}, "26;-1": {"type": "decor", "variant": 3, "pos": [26, -1]}, "32;7": {"type": "decor", "variant": 3, "pos": [32, 7]}, "4;2": {"type": "grass", "variant": 6, "pos": [4, 2]}}, "tile_size": 16, "offgrid": [{"type": "large_decor", "variant": 0, "pos": [488.0, 119.0]}, {"type": "large_decor", "variant": 0, "pos": [381.0, -9.0]}, {"type": "large_decor", "variant": 0, "pos": [261.5, 151.5]}, {"type": "large_decor", "variant": 0, "pos": [51.5, -9.0]}, {"type": "large_decor", "variant": 0, "pos": [-111.5, 55.5]}, {"type": "large_decor", "variant": 1, "pos": [406.5, 150.0]}, {"type": "large_decor", "variant": 1, "pos": [424.5, 165.0]}, {"type": "large_decor", "variant": 1, "pos": [131.0, 117.0]}, {"type": "large_decor", "variant": 1, "pos": [-10.5, 36.5]}, {"type": "large_decor", "variant": 2, "pos": [-45.5, 20.5]}, {"type": "large_decor", "variant": 2, "pos": [10.5, 29.5]}, {"type": "large_decor", "variant": 2, "pos": [88.0, -42.5]}, {"type": "large_decor", "variant": 2, "pos": [224.5, -89.5]}, {"type": "large_decor", "variant": 2, "pos": [179.5, -60.5]}, {"type": "large_decor", "variant": 2, "pos": [200.0, 68.5]}, {"type": "large_decor", "variant": 2, "pos": [291.0, 117.0]}, {"type": "large_decor", "variant": 2, "pos": [348.0, 136.5]}, {"type": "spawners", "variant": 0, "pos": [332.5, 142.5]}, {"type": "spawners", "variant": 1, "pos": [490.0, 111.5]}, {"type": "spawners", "variant": 1, "pos": [343.0, -16.5]}, {"type": "spawners", "variant": 1, "pos": [379.5, -17.0]}, {"type": "spawners", "variant": 1, "pos": [409.5, -15.5]}, {"type": "spawners", "variant": 1, "pos": [218.5, -64.0]}, {"type": "spawners", "variant": 1, "pos": [164.0, -64.0]}, {"type": "spawners", "variant": 1, "pos": [85.0, -16.5]}, {"type": "spawners", "variant": 1, "pos": [4.0, 31.0]}, {"type": "spawners", "variant": 1, "pos": [-114.0, 48.0]}, {"type": "spawners", "variant": 1, "pos": [-74.0, 46.5]}, {"type": "spawners", "variant": 1, "pos": [-44.0, 47.0]}, {"type": "spawners", "variant": 1, "pos": [156.5, 93.5]}]} \ No newline at end of file diff --git a/data/maps/2.json b/data/maps/2.json new file mode 100644 index 0000000..10f5ef4 --- /dev/null +++ b/data/maps/2.json @@ -0,0 +1 @@ +{"tilemap": {"9;9": {"type": "grass", "variant": 0, "pos": [9, 9]}, "9;10": {"type": "grass", "variant": 8, "pos": [9, 10]}, "9;11": {"type": "grass", "variant": 8, "pos": [9, 11]}, "9;12": {"type": "grass", "variant": 8, "pos": [9, 12]}, "10;12": {"type": "grass", "variant": 8, "pos": [10, 12]}, "11;12": {"type": "grass", "variant": 3, "pos": [11, 12]}, "11;11": {"type": "grass", "variant": 8, "pos": [11, 11]}, "12;11": {"type": "grass", "variant": 4, "pos": [12, 11]}, "12;10": {"type": "grass", "variant": 2, "pos": [12, 10]}, "11;10": {"type": "grass", "variant": 8, "pos": [11, 10]}, "11;9": {"type": "grass", "variant": 2, "pos": [11, 9]}, "10;9": {"type": "grass", "variant": 1, "pos": [10, 9]}, "10;10": {"type": "grass", "variant": 8, "pos": [10, 10]}, "10;11": {"type": "grass", "variant": 8, "pos": [10, 11]}, "8;10": {"type": "grass", "variant": 0, "pos": [8, 10]}, "8;11": {"type": "grass", "variant": 7, "pos": [8, 11]}, "8;12": {"type": "grass", "variant": 7, "pos": [8, 12]}, "8;13": {"type": "grass", "variant": 7, "pos": [8, 13]}, "8;14": {"type": "grass", "variant": 7, "pos": [8, 14]}, "8;15": {"type": "grass", "variant": 6, "pos": [8, 15]}, "9;15": {"type": "grass", "variant": 5, "pos": [9, 15]}, "10;15": {"type": "grass", "variant": 4, "pos": [10, 15]}, "10;14": {"type": "grass", "variant": 3, "pos": [10, 14]}, "10;13": {"type": "grass", "variant": 8, "pos": [10, 13]}, "11;13": {"type": "grass", "variant": 4, "pos": [11, 13]}, "9;13": {"type": "grass", "variant": 8, "pos": [9, 13]}, "9;14": {"type": "grass", "variant": 8, "pos": [9, 14]}, "12;5": {"type": "grass", "variant": 6, "pos": [12, 5]}, "12;4": {"type": "grass", "variant": 7, "pos": [12, 4]}, "12;3": {"type": "grass", "variant": 7, "pos": [12, 3]}, "12;2": {"type": "grass", "variant": 7, "pos": [12, 2]}, "12;1": {"type": "grass", "variant": 7, "pos": [12, 1]}, "13;1": {"type": "grass", "variant": 8, "pos": [13, 1]}, "13;0": {"type": "grass", "variant": 8, "pos": [13, 0]}, "14;0": {"type": "grass", "variant": 8, "pos": [14, 0]}, "14;1": {"type": "grass", "variant": 8, "pos": [14, 1]}, "15;1": {"type": "grass", "variant": 8, "pos": [15, 1]}, "16;2": {"type": "grass", "variant": 8, "pos": [16, 2]}, "16;3": {"type": "grass", "variant": 8, "pos": [16, 3]}, "15;4": {"type": "grass", "variant": 8, "pos": [15, 4]}, "15;5": {"type": "grass", "variant": 8, "pos": [15, 5]}, "14;6": {"type": "grass", "variant": 5, "pos": [14, 6]}, "13;6": {"type": "grass", "variant": 6, "pos": [13, 6]}, "13;5": {"type": "grass", "variant": 8, "pos": [13, 5]}, "13;4": {"type": "grass", "variant": 8, "pos": [13, 4]}, "13;3": {"type": "grass", "variant": 8, "pos": [13, 3]}, "13;2": {"type": "grass", "variant": 8, "pos": [13, 2]}, "14;2": {"type": "grass", "variant": 8, "pos": [14, 2]}, "14;3": {"type": "grass", "variant": 8, "pos": [14, 3]}, "14;4": {"type": "grass", "variant": 8, "pos": [14, 4]}, "14;5": {"type": "grass", "variant": 8, "pos": [14, 5]}, "15;3": {"type": "grass", "variant": 8, "pos": [15, 3]}, "15;2": {"type": "grass", "variant": 8, "pos": [15, 2]}, "9;4": {"type": "stone", "variant": 3, "pos": [9, 4]}, "9;3": {"type": "stone", "variant": 3, "pos": [9, 3]}, "9;2": {"type": "stone", "variant": 3, "pos": [9, 2]}, "9;1": {"type": "stone", "variant": 3, "pos": [9, 1]}, "8;1": {"type": "stone", "variant": 8, "pos": [8, 1]}, "8;0": {"type": "stone", "variant": 8, "pos": [8, 0]}, "7;0": {"type": "stone", "variant": 8, "pos": [7, 0]}, "7;-1": {"type": "stone", "variant": 1, "pos": [7, -1]}, "6;-1": {"type": "stone", "variant": 1, "pos": [6, -1]}, "5;-1": {"type": "stone", "variant": 1, "pos": [5, -1]}, "4;-1": {"type": "stone", "variant": 1, "pos": [4, -1]}, "3;-1": {"type": "stone", "variant": 0, "pos": [3, -1]}, "3;0": {"type": "stone", "variant": 7, "pos": [3, 0]}, "3;1": {"type": "stone", "variant": 6, "pos": [3, 1]}, "4;2": {"type": "stone", "variant": 7, "pos": [4, 2]}, "4;3": {"type": "stone", "variant": 7, "pos": [4, 3]}, "4;4": {"type": "stone", "variant": 6, "pos": [4, 4]}, "5;4": {"type": "stone", "variant": 8, "pos": [5, 4]}, "5;5": {"type": "stone", "variant": 6, "pos": [5, 5]}, "8;5": {"type": "stone", "variant": 5, "pos": [8, 5]}, "9;5": {"type": "stone", "variant": 4, "pos": [9, 5]}, "7;5": {"type": "stone", "variant": 5, "pos": [7, 5]}, "6;5": {"type": "stone", "variant": 5, "pos": [6, 5]}, "9;0": {"type": "stone", "variant": 3, "pos": [9, 0]}, "8;-1": {"type": "stone", "variant": 1, "pos": [8, -1]}, "4;0": {"type": "stone", "variant": 8, "pos": [4, 0]}, "4;1": {"type": "stone", "variant": 8, "pos": [4, 1]}, "5;1": {"type": "stone", "variant": 8, "pos": [5, 1]}, "6;2": {"type": "stone", "variant": 8, "pos": [6, 2]}, "7;2": {"type": "stone", "variant": 8, "pos": [7, 2]}, "8;2": {"type": "stone", "variant": 8, "pos": [8, 2]}, "8;3": {"type": "stone", "variant": 8, "pos": [8, 3]}, "8;4": {"type": "stone", "variant": 8, "pos": [8, 4]}, "7;4": {"type": "stone", "variant": 8, "pos": [7, 4]}, "6;4": {"type": "stone", "variant": 8, "pos": [6, 4]}, "6;3": {"type": "stone", "variant": 8, "pos": [6, 3]}, "5;3": {"type": "stone", "variant": 8, "pos": [5, 3]}, "5;2": {"type": "stone", "variant": 8, "pos": [5, 2]}, "7;3": {"type": "stone", "variant": 8, "pos": [7, 3]}, "7;1": {"type": "stone", "variant": 8, "pos": [7, 1]}, "6;1": {"type": "stone", "variant": 8, "pos": [6, 1]}, "6;0": {"type": "stone", "variant": 8, "pos": [6, 0]}, "5;0": {"type": "stone", "variant": 8, "pos": [5, 0]}, "12;0": {"type": "grass", "variant": 7, "pos": [12, 0]}, "13;-1": {"type": "grass", "variant": 1, "pos": [13, -1]}, "14;-1": {"type": "grass", "variant": 1, "pos": [14, -1]}, "15;0": {"type": "grass", "variant": 8, "pos": [15, 0]}, "15;-1": {"type": "grass", "variant": 1, "pos": [15, -1]}, "12;-1": {"type": "grass", "variant": 0, "pos": [12, -1]}, "9;-1": {"type": "stone", "variant": 2, "pos": [9, -1]}, "16;1": {"type": "grass", "variant": 8, "pos": [16, 1]}, "16;0": {"type": "grass", "variant": 8, "pos": [16, 0]}, "16;-1": {"type": "grass", "variant": 8, "pos": [16, -1]}, "17;-1": {"type": "grass", "variant": 3, "pos": [17, -1]}, "17;-2": {"type": "grass", "variant": 3, "pos": [17, -2]}, "17;-3": {"type": "grass", "variant": 2, "pos": [17, -3]}, "16;-3": {"type": "grass", "variant": 0, "pos": [16, -3]}, "16;-2": {"type": "grass", "variant": 7, "pos": [16, -2]}, "17;0": {"type": "grass", "variant": 8, "pos": [17, 0]}, "17;1": {"type": "grass", "variant": 8, "pos": [17, 1]}, "17;2": {"type": "grass", "variant": 8, "pos": [17, 2]}, "17;3": {"type": "grass", "variant": 8, "pos": [17, 3]}, "17;4": {"type": "grass", "variant": 3, "pos": [17, 4]}, "17;5": {"type": "grass", "variant": 4, "pos": [17, 5]}, "16;5": {"type": "grass", "variant": 5, "pos": [16, 5]}, "15;6": {"type": "grass", "variant": 4, "pos": [15, 6]}, "16;4": {"type": "grass", "variant": 8, "pos": [16, 4]}, "18;0": {"type": "grass", "variant": 1, "pos": [18, 0]}, "19;0": {"type": "grass", "variant": 1, "pos": [19, 0]}, "20;0": {"type": "grass", "variant": 1, "pos": [20, 0]}, "21;0": {"type": "grass", "variant": 1, "pos": [21, 0]}, "22;0": {"type": "grass", "variant": 1, "pos": [22, 0]}, "23;0": {"type": "grass", "variant": 1, "pos": [23, 0]}, "24;0": {"type": "grass", "variant": 1, "pos": [24, 0]}, "25;0": {"type": "grass", "variant": 1, "pos": [25, 0]}, "26;0": {"type": "grass", "variant": 2, "pos": [26, 0]}, "26;1": {"type": "grass", "variant": 4, "pos": [26, 1]}, "25;2": {"type": "grass", "variant": 3, "pos": [25, 2]}, "25;3": {"type": "grass", "variant": 4, "pos": [25, 3]}, "24;3": {"type": "grass", "variant": 5, "pos": [24, 3]}, "23;3": {"type": "grass", "variant": 8, "pos": [23, 3]}, "23;4": {"type": "grass", "variant": 4, "pos": [23, 4]}, "22;4": {"type": "grass", "variant": 5, "pos": [22, 4]}, "21;4": {"type": "grass", "variant": 6, "pos": [21, 4]}, "20;3": {"type": "grass", "variant": 5, "pos": [20, 3]}, "19;3": {"type": "grass", "variant": 5, "pos": [19, 3]}, "18;3": {"type": "grass", "variant": 5, "pos": [18, 3]}, "18;2": {"type": "grass", "variant": 8, "pos": [18, 2]}, "18;1": {"type": "grass", "variant": 8, "pos": [18, 1]}, "19;1": {"type": "grass", "variant": 8, "pos": [19, 1]}, "20;1": {"type": "grass", "variant": 8, "pos": [20, 1]}, "21;1": {"type": "grass", "variant": 8, "pos": [21, 1]}, "22;1": {"type": "grass", "variant": 8, "pos": [22, 1]}, "23;1": {"type": "grass", "variant": 8, "pos": [23, 1]}, "24;1": {"type": "grass", "variant": 8, "pos": [24, 1]}, "25;1": {"type": "grass", "variant": 8, "pos": [25, 1]}, "23;2": {"type": "grass", "variant": 8, "pos": [23, 2]}, "22;2": {"type": "grass", "variant": 8, "pos": [22, 2]}, "24;2": {"type": "grass", "variant": 8, "pos": [24, 2]}, "22;3": {"type": "grass", "variant": 8, "pos": [22, 3]}, "21;3": {"type": "grass", "variant": 8, "pos": [21, 3]}, "20;2": {"type": "grass", "variant": 8, "pos": [20, 2]}, "21;2": {"type": "grass", "variant": 8, "pos": [21, 2]}, "19;2": {"type": "grass", "variant": 8, "pos": [19, 2]}, "33;0": {"type": "grass", "variant": 0, "pos": [33, 0]}, "34;0": {"type": "grass", "variant": 1, "pos": [34, 0]}, "35;0": {"type": "grass", "variant": 1, "pos": [35, 0]}, "36;0": {"type": "grass", "variant": 1, "pos": [36, 0]}, "36;1": {"type": "grass", "variant": 8, "pos": [36, 1]}, "37;1": {"type": "grass", "variant": 8, "pos": [37, 1]}, "37;2": {"type": "grass", "variant": 8, "pos": [37, 2]}, "38;2": {"type": "grass", "variant": 4, "pos": [38, 2]}, "36;2": {"type": "grass", "variant": 8, "pos": [36, 2]}, "35;2": {"type": "grass", "variant": 8, "pos": [35, 2]}, "34;2": {"type": "grass", "variant": 8, "pos": [34, 2]}, "33;2": {"type": "grass", "variant": 8, "pos": [33, 2]}, "33;1": {"type": "grass", "variant": 8, "pos": [33, 1]}, "34;1": {"type": "grass", "variant": 8, "pos": [34, 1]}, "32;1": {"type": "grass", "variant": 0, "pos": [32, 1]}, "35;1": {"type": "grass", "variant": 8, "pos": [35, 1]}, "32;2": {"type": "grass", "variant": 6, "pos": [32, 2]}, "33;3": {"type": "grass", "variant": 6, "pos": [33, 3]}, "34;3": {"type": "grass", "variant": 5, "pos": [34, 3]}, "35;3": {"type": "grass", "variant": 5, "pos": [35, 3]}, "36;3": {"type": "grass", "variant": 5, "pos": [36, 3]}, "37;3": {"type": "grass", "variant": 4, "pos": [37, 3]}, "38;1": {"type": "grass", "variant": 3, "pos": [38, 1]}, "37;0": {"type": "grass", "variant": 1, "pos": [37, 0]}, "38;0": {"type": "grass", "variant": 2, "pos": [38, 0]}, "-1;-1": {"type": "stone", "variant": 2, "pos": [-1, -1]}, "-2;-1": {"type": "stone", "variant": 1, "pos": [-2, -1]}, "-3;-1": {"type": "stone", "variant": 1, "pos": [-3, -1]}, "-4;-1": {"type": "stone", "variant": 1, "pos": [-4, -1]}, "-5;-1": {"type": "stone", "variant": 1, "pos": [-5, -1]}, "-6;-1": {"type": "stone", "variant": 1, "pos": [-6, -1]}, "-7;-1": {"type": "stone", "variant": 1, "pos": [-7, -1]}, "-1;0": {"type": "stone", "variant": 4, "pos": [-1, 0]}, "-2;0": {"type": "stone", "variant": 8, "pos": [-2, 0]}, "-2;1": {"type": "stone", "variant": 4, "pos": [-2, 1]}, "-3;1": {"type": "stone", "variant": 8, "pos": [-3, 1]}, "-3;2": {"type": "stone", "variant": 4, "pos": [-3, 2]}, "-4;2": {"type": "stone", "variant": 5, "pos": [-4, 2]}, "-5;2": {"type": "stone", "variant": 5, "pos": [-5, 2]}, "-6;2": {"type": "stone", "variant": 5, "pos": [-6, 2]}, "-7;2": {"type": "stone", "variant": 6, "pos": [-7, 2]}, "-7;1": {"type": "stone", "variant": 8, "pos": [-7, 1]}, "-8;1": {"type": "stone", "variant": 6, "pos": [-8, 1]}, "-8;0": {"type": "stone", "variant": 7, "pos": [-8, 0]}, "-8;-1": {"type": "stone", "variant": 0, "pos": [-8, -1]}, "-6;0": {"type": "stone", "variant": 8, "pos": [-6, 0]}, "-7;0": {"type": "stone", "variant": 8, "pos": [-7, 0]}, "-5;0": {"type": "stone", "variant": 8, "pos": [-5, 0]}, "-4;0": {"type": "stone", "variant": 8, "pos": [-4, 0]}, "-3;0": {"type": "stone", "variant": 8, "pos": [-3, 0]}, "-6;1": {"type": "stone", "variant": 8, "pos": [-6, 1]}, "-5;1": {"type": "stone", "variant": 8, "pos": [-5, 1]}, "-4;1": {"type": "stone", "variant": 8, "pos": [-4, 1]}, "14;-8": {"type": "stone", "variant": 1, "pos": [14, -8]}, "13;-8": {"type": "stone", "variant": 0, "pos": [13, -8]}, "13;-7": {"type": "stone", "variant": 7, "pos": [13, -7]}, "13;-6": {"type": "stone", "variant": 6, "pos": [13, -6]}, "14;-6": {"type": "stone", "variant": 5, "pos": [14, -6]}, "15;-6": {"type": "stone", "variant": 4, "pos": [15, -6]}, "15;-7": {"type": "stone", "variant": 3, "pos": [15, -7]}, "15;-8": {"type": "stone", "variant": 2, "pos": [15, -8]}, "14;-7": {"type": "stone", "variant": 8, "pos": [14, -7]}, "27;-5": {"type": "stone", "variant": 2, "pos": [27, -5]}, "26;-5": {"type": "stone", "variant": 1, "pos": [26, -5]}, "25;-5": {"type": "stone", "variant": 1, "pos": [25, -5]}, "24;-5": {"type": "stone", "variant": 0, "pos": [24, -5]}, "25;-4": {"type": "stone", "variant": 5, "pos": [25, -4]}, "26;-4": {"type": "stone", "variant": 5, "pos": [26, -4]}, "27;-4": {"type": "stone", "variant": 4, "pos": [27, -4]}, "24;-4": {"type": "stone", "variant": 6, "pos": [24, -4]}, "18;-7": {"type": "stone", "variant": 6, "pos": [18, -7]}, "18;-8": {"type": "stone", "variant": 7, "pos": [18, -8]}, "19;-8": {"type": "stone", "variant": 8, "pos": [19, -8]}, "19;-9": {"type": "stone", "variant": 8, "pos": [19, -9]}, "20;-9": {"type": "stone", "variant": 8, "pos": [20, -9]}, "21;-8": {"type": "stone", "variant": 8, "pos": [21, -8]}, "20;-8": {"type": "stone", "variant": 8, "pos": [20, -8]}, "20;-7": {"type": "stone", "variant": 5, "pos": [20, -7]}, "19;-7": {"type": "stone", "variant": 5, "pos": [19, -7]}, "21;-7": {"type": "stone", "variant": 4, "pos": [21, -7]}, "18;-9": {"type": "stone", "variant": 0, "pos": [18, -9]}, "19;-10": {"type": "stone", "variant": 0, "pos": [19, -10]}, "20;-10": {"type": "stone", "variant": 1, "pos": [20, -10]}, "21;-9": {"type": "stone", "variant": 8, "pos": [21, -9]}, "21;-10": {"type": "stone", "variant": 1, "pos": [21, -10]}, "22;-8": {"type": "stone", "variant": 4, "pos": [22, -8]}, "22;-9": {"type": "stone", "variant": 3, "pos": [22, -9]}, "22;-10": {"type": "stone", "variant": 2, "pos": [22, -10]}, "29;-12": {"type": "grass", "variant": 1, "pos": [29, -12]}, "28;-12": {"type": "grass", "variant": 1, "pos": [28, -12]}, "27;-12": {"type": "grass", "variant": 1, "pos": [27, -12]}, "26;-12": {"type": "grass", "variant": 0, "pos": [26, -12]}, "26;-11": {"type": "grass", "variant": 7, "pos": [26, -11]}, "26;-10": {"type": "grass", "variant": 6, "pos": [26, -10]}, "27;-10": {"type": "grass", "variant": 8, "pos": [27, -10]}, "28;-10": {"type": "grass", "variant": 8, "pos": [28, -10]}, "29;-10": {"type": "grass", "variant": 8, "pos": [29, -10]}, "30;-10": {"type": "grass", "variant": 8, "pos": [30, -10]}, "31;-10": {"type": "grass", "variant": 8, "pos": [31, -10]}, "32;-10": {"type": "grass", "variant": 4, "pos": [32, -10]}, "32;-11": {"type": "grass", "variant": 8, "pos": [32, -11]}, "32;-12": {"type": "grass", "variant": 8, "pos": [32, -12]}, "31;-12": {"type": "grass", "variant": 8, "pos": [31, -12]}, "30;-12": {"type": "grass", "variant": 1, "pos": [30, -12]}, "29;-11": {"type": "grass", "variant": 8, "pos": [29, -11]}, "28;-11": {"type": "grass", "variant": 8, "pos": [28, -11]}, "27;-11": {"type": "grass", "variant": 8, "pos": [27, -11]}, "30;-11": {"type": "grass", "variant": 8, "pos": [30, -11]}, "31;-11": {"type": "grass", "variant": 8, "pos": [31, -11]}, "31;-9": {"type": "grass", "variant": 4, "pos": [31, -9]}, "30;-9": {"type": "grass", "variant": 5, "pos": [30, -9]}, "29;-9": {"type": "grass", "variant": 5, "pos": [29, -9]}, "28;-9": {"type": "grass", "variant": 5, "pos": [28, -9]}, "27;-9": {"type": "grass", "variant": 6, "pos": [27, -9]}, "33;-12": {"type": "grass", "variant": 3, "pos": [33, -12]}, "33;-13": {"type": "grass", "variant": 2, "pos": [33, -13]}, "32;-13": {"type": "grass", "variant": 1, "pos": [32, -13]}, "31;-13": {"type": "grass", "variant": 0, "pos": [31, -13]}, "33;-11": {"type": "grass", "variant": 4, "pos": [33, -11]}, "12;-2": {"type": "decor", "variant": 0, "pos": [12, -2]}, "19;-1": {"type": "decor", "variant": 0, "pos": [19, -1]}, "23;-1": {"type": "decor", "variant": 0, "pos": [23, -1]}, "10;8": {"type": "decor", "variant": 0, "pos": [10, 8]}, "34;-1": {"type": "decor", "variant": 0, "pos": [34, -1]}, "37;-1": {"type": "decor", "variant": 0, "pos": [37, -1]}, "22;-1": {"type": "decor", "variant": 1, "pos": [22, -1]}, "26;-1": {"type": "decor", "variant": 1, "pos": [26, -1]}, "33;-1": {"type": "decor", "variant": 1, "pos": [33, -1]}, "17;-4": {"type": "decor", "variant": 1, "pos": [17, -4]}, "13;-2": {"type": "decor", "variant": 1, "pos": [13, -2]}, "9;8": {"type": "decor", "variant": 1, "pos": [9, 8]}, "14;-2": {"type": "decor", "variant": 2, "pos": [14, -2]}, "20;-1": {"type": "decor", "variant": 2, "pos": [20, -1]}, "12;9": {"type": "decor", "variant": 2, "pos": [12, 9]}, "24;-1": {"type": "decor", "variant": 2, "pos": [24, -1]}, "32;0": {"type": "decor", "variant": 2, "pos": [32, 0]}, "36;-1": {"type": "decor", "variant": 2, "pos": [36, -1]}, "30;-13": {"type": "decor", "variant": 2, "pos": [30, -13]}, "29;-13": {"type": "decor", "variant": 1, "pos": [29, -13]}, "27;-13": {"type": "decor", "variant": 1, "pos": [27, -13]}, "32;-14": {"type": "decor", "variant": 0, "pos": [32, -14]}, "26;-13": {"type": "decor", "variant": 0, "pos": [26, -13]}, "26;-6": {"type": "decor", "variant": 3, "pos": [26, -6]}, "21;-11": {"type": "decor", "variant": 3, "pos": [21, -11]}, "8;-2": {"type": "decor", "variant": 3, "pos": [8, -2]}, "4;-2": {"type": "decor", "variant": 3, "pos": [4, -2]}, "38;-1": {"type": "decor", "variant": 3, "pos": [38, -1]}, "11;8": {"type": "decor", "variant": 3, "pos": [11, 8]}}, "tile_size": 16, "offgrid": [{"type": "large_decor", "variant": 0, "pos": [224.5, -23.0]}, {"type": "large_decor", "variant": 0, "pos": [222.5, -134.5]}, {"type": "large_decor", "variant": 0, "pos": [549.5, -8.5]}, {"type": "large_decor", "variant": 0, "pos": [497.5, -215.0]}, {"type": "large_decor", "variant": 0, "pos": [50.5, -23.5]}, {"type": "large_decor", "variant": 0, "pos": [-121.0, -23.0]}, {"type": "large_decor", "variant": 0, "pos": [-79.0, -23.0]}, {"type": "large_decor", "variant": 0, "pos": [-96.5, -21.5]}, {"type": "large_decor", "variant": 0, "pos": [-95.5, -26.5]}, {"type": "large_decor", "variant": 0, "pos": [-113.0, -28.0]}, {"type": "large_decor", "variant": 2, "pos": [338.5, -38.5]}, {"type": "large_decor", "variant": 2, "pos": [414.0, -18.5]}, {"type": "large_decor", "variant": 2, "pos": [526.5, -42.5]}, {"type": "large_decor", "variant": 2, "pos": [587.5, -35.5]}, {"type": "large_decor", "variant": 2, "pos": [466.0, -233.5]}, {"type": "large_decor", "variant": 2, "pos": [520.0, -252.0]}, {"type": "large_decor", "variant": 2, "pos": [184.0, -46.5]}, {"type": "large_decor", "variant": 1, "pos": [258.5, -58.0]}, {"type": "large_decor", "variant": 1, "pos": [327.0, -11.5]}, {"type": "large_decor", "variant": 1, "pos": [399.0, -9.5]}, {"type": "large_decor", "variant": 1, "pos": [516.5, 6.5]}, {"type": "large_decor", "variant": 1, "pos": [132.0, 149.0]}, {"type": "large_decor", "variant": 1, "pos": [486.0, -201.5]}, {"type": "large_decor", "variant": 1, "pos": [433.5, -203.0]}, {"type": "large_decor", "variant": 1, "pos": [279.5, -11.0]}, {"type": "spawners", "variant": 0, "pos": [166.5, 126.0]}, {"type": "spawners", "variant": 1, "pos": [85.5, -33.0]}, {"type": "spawners", "variant": 1, "pos": [104.5, -32.5]}, {"type": "spawners", "variant": 1, "pos": [120.0, -32.0]}, {"type": "spawners", "variant": 1, "pos": [-116.0, -31.5]}, {"type": "spawners", "variant": 1, "pos": [-93.5, -32.5]}, {"type": "spawners", "variant": 1, "pos": [-78.0, -32.5]}, {"type": "spawners", "variant": 1, "pos": [-53.5, -31.5]}, {"type": "spawners", "variant": 1, "pos": [206.5, -32.5]}, {"type": "spawners", "variant": 1, "pos": [234.5, -32.5]}, {"type": "spawners", "variant": 1, "pos": [307.0, -16.5]}, {"type": "spawners", "variant": 1, "pos": [349.5, -15.0]}, {"type": "spawners", "variant": 1, "pos": [380.5, -17.5]}, {"type": "spawners", "variant": 1, "pos": [404.0, -16.0]}, {"type": "spawners", "variant": 1, "pos": [393.5, -97.0]}, {"type": "spawners", "variant": 1, "pos": [408.5, -99.0]}, {"type": "spawners", "variant": 1, "pos": [428.5, -96.0]}, {"type": "spawners", "variant": 1, "pos": [217.0, -147.0]}, {"type": "spawners", "variant": 1, "pos": [317.5, -176.0]}, {"type": "spawners", "variant": 1, "pos": [354.5, -177.0]}, {"type": "spawners", "variant": 1, "pos": [440.5, -210.5]}, {"type": "spawners", "variant": 1, "pos": [458.0, -211.5]}, {"type": "spawners", "variant": 1, "pos": [474.5, -209.5]}, {"type": "spawners", "variant": 1, "pos": [515.0, -227.0]}, {"type": "spawners", "variant": 1, "pos": [551.5, -16.5]}, {"type": "spawners", "variant": 1, "pos": [586.0, -16.0]}, {"type": "spawners", "variant": 1, "pos": [567.5, -18.0]}, {"type": "spawners", "variant": 1, "pos": [538.0, -17.0]}]} \ No newline at end of file diff --git a/data/music.wav b/data/music.wav new file mode 100644 index 0000000..a75693b Binary files /dev/null and b/data/music.wav differ diff --git a/data/sfx/ambience.wav b/data/sfx/ambience.wav new file mode 100644 index 0000000..5324170 Binary files /dev/null and b/data/sfx/ambience.wav differ diff --git a/data/sfx/dash.wav b/data/sfx/dash.wav new file mode 100644 index 0000000..cdb1bf2 Binary files /dev/null and b/data/sfx/dash.wav differ diff --git a/data/sfx/hit.wav b/data/sfx/hit.wav new file mode 100644 index 0000000..f8e056a Binary files /dev/null and b/data/sfx/hit.wav differ diff --git a/data/sfx/jump.wav b/data/sfx/jump.wav new file mode 100644 index 0000000..6dfcfd2 Binary files /dev/null and b/data/sfx/jump.wav differ diff --git a/data/sfx/shoot.wav b/data/sfx/shoot.wav new file mode 100644 index 0000000..7870d61 Binary files /dev/null and b/data/sfx/shoot.wav differ diff --git a/scripts/__pycache__/clouds.cpython-312.pyc b/scripts/__pycache__/clouds.cpython-312.pyc new file mode 100644 index 0000000..dd70b5d Binary files /dev/null and b/scripts/__pycache__/clouds.cpython-312.pyc differ diff --git a/scripts/__pycache__/entities.cpython-312.pyc b/scripts/__pycache__/entities.cpython-312.pyc new file mode 100644 index 0000000..86839fd Binary files /dev/null and b/scripts/__pycache__/entities.cpython-312.pyc differ diff --git a/scripts/__pycache__/tilemap.cpython-312.pyc b/scripts/__pycache__/tilemap.cpython-312.pyc new file mode 100644 index 0000000..39161fa Binary files /dev/null and b/scripts/__pycache__/tilemap.cpython-312.pyc differ diff --git a/scripts/__pycache__/utils.cpython-312.pyc b/scripts/__pycache__/utils.cpython-312.pyc new file mode 100644 index 0000000..d97e23d Binary files /dev/null and b/scripts/__pycache__/utils.cpython-312.pyc differ diff --git a/scripts/clouds.py b/scripts/clouds.py new file mode 100644 index 0000000..eb16596 --- /dev/null +++ b/scripts/clouds.py @@ -0,0 +1,45 @@ +import pygame +import random +class Cloud: + def __init__(self, pos:tuple, img, speed:float, depth): + self.pos = list(pos) + self.image = img + self.speed = speed + self.depth = depth + + + def update(self): + self.pos[0] += self.speed + def render(self, surface:pygame.Surface,offset:tuple=(0,0)): + render_pos = (self.pos[0] - offset[0] * self.depth, self.pos[1] - offset[1] * self.depth) + + surface.blit(self.image, + (render_pos[0] % (surface.get_width() + self.image.get_width()) - self.image.get_width(), + render_pos[1] % (surface.get_height() + self.image.get_height()) - self.image.get_height()) + ) +class Clouds: + def __init__(self, cloud_images, count=16): + self.clouds = [] + for _ in range(count): + self.clouds.append(Cloud((random.random() * 99999, random.random() * 99999), + random.choice(cloud_images), + (random.random() * 0.05 + 0.05) * 1, + random.random() * 0.6 + 0.2)) + self.clouds.sort(key=lambda x: x.depth) + """ + self.clouds = [] + + # Erstelle die Wolken mit zufälligen Eigenschaften + for i in range(count): + self.clouds.append(Cloud((random.random() * 99999, random.random() * 99999), + random.choice(cloud_images), + random.random() * 0.05 + 0.05, + random.random() * 0.6 + 0.2) + ) + self.clouds.sort(key=lambda x: x.depth)""" + def update(self): + for cloud in self.clouds: + cloud.update() + def render(self, surface:pygame.Surface, offset:tuple=(0,0)): + for cloud in self.clouds: + cloud.render(surface, offset) \ No newline at end of file diff --git a/scripts/entities.py b/scripts/entities.py new file mode 100644 index 0000000..037e262 --- /dev/null +++ b/scripts/entities.py @@ -0,0 +1,61 @@ +import pygame +class PhysicsEntity: + def __init__(self, game, e_type, pos:tuple, size): + self.game = game + self.e_type = e_type + self.pos = list(pos) + self.size = size + self.velocity = [0,0] + self.collisions = {"top":False, "bottom":False, "left":False, "right":False} + self.speed = 3 + + def update(self, tilemap, movement:tuple=(0,0)): + self.collisions = {"top":False, "bottom":False, "left":False, "right":False} + frame_movement = ((movement[0] + self.velocity[0])*self.speed, movement[1] + self.velocity[1]) + self.pos[0] += frame_movement[0] + + entity_rect = self.rect() + for recto in tilemap.physics_rects_around(self.pos): + if entity_rect.colliderect(recto): + if frame_movement[0] > 0: + entity_rect.right = recto.left + self.collisions["right"] = True + self.game.isJumping = False + + + if frame_movement[0] < 0: + entity_rect.left = recto.right + self.collisions["left"] = True + self.game.isJumping = False + + + self.pos[0] = entity_rect.x + + self.pos[1] += frame_movement[1] + entity_rect = self.rect() + + for rectolino in tilemap.physics_rects_around(self.pos): + if entity_rect.colliderect(rectolino): + + if frame_movement[1] > 0: + entity_rect.bottom = rectolino.top + self.collisions["bottom"] = True + self.game.isJumping = False + + if frame_movement[1] < 0: + entity_rect.top = rectolino.bottom + self.collisions["top"] = True + + self.pos[1] = entity_rect.y + + if self.collisions['bottom'] or self.collisions['top']: + self.velocity[1] = 0 + + + self.velocity[1] = min(5, self.velocity[1] + 0.1) + + def render(self, surface:pygame.Surface, offset:tuple=(0,0)): + surface.blit(self.game.assets["player"], (self.pos[0]-offset[0], self.pos[1]-offset[1])) + + def rect(self): + return pygame.Rect(self.pos[0], self.pos[1], self.size[0], self.size[1]) \ No newline at end of file diff --git a/scripts/tilemap.py b/scripts/tilemap.py new file mode 100644 index 0000000..2a03c03 --- /dev/null +++ b/scripts/tilemap.py @@ -0,0 +1,59 @@ +import pygame as pg +NEIGHBOR_OFFSETS = [(0, 0), (-1, 0), (-1, -1), (-1, 1), (0, 1), (0, -1), (1, 1), (1, 0), (1, -1)] +PHYSICS_TILES = {"grass", "stone"} +class Tilemap: + def __init__(self, game, tile_size=16): + self.game = game + self.tile_size = tile_size + self.tilemap = {} + self.offgrid_tiles = [] + for i in range(10): + self.tilemap[str(3 + i) + ';10'] = {'type': 'grass', 'variant': 1, 'pos': (3 + i, 10)} + self.tilemap['10;' + str(5 + i)] = {'type': 'stone', 'variant': 1, 'pos': (10, i + 5)} + def render(self, surface:pg.Surface, offset:tuple=(0,0)): + for tile in self.offgrid_tiles: + surface.blit(self.game.assets[tile['type']][tile['variant']], (tile['pos'][0] - offset[0], tile['pos'][1] - offset[1])) + for location in self.tilemap: + tile = self.tilemap[location] + surface.blit(self.game.assets[tile['type']][tile['variant']], (tile['pos'][0] * self.tile_size - offset[0], tile['pos'][1] * self.tile_size - offset[1])) + + def tiles_around(self, pos): + tiles = [] + tile_location = (int(pos[0] // self.tile_size), int(pos[1] // self.tile_size)) + for offset in NEIGHBOR_OFFSETS: + check_location = str(tile_location[0] + offset[0]) + ';' + str(tile_location[1] + offset[1]) + if check_location in self.tilemap: + tiles.append(self.tilemap[check_location]) + return tiles + def physics_rects_around(self, pos): + # Erzeuge eine leere Liste für die Rechtecke + rects = [] + # Durchlaufe alle Tiles aus der Umgebung (tiles_around) + for tile in self.tiles_around(pos): + + # Prüfe, ob der Tile-Typ in PHYSICS_TILES enthalten ist + # (nur diese Tiles sollen kollidieren) + if tile["type"] in PHYSICS_TILES: + # Rechne die Tile-Position in Pixel-Koordinaten um + x_pixel = tile['pos'][0] * self.tile_size + y_pixel = tile['pos'][1] * self.tile_size + + # Erzeuge ein pygame.Rect mit: + # - x_pixel + # - y_pixel + # - Breite = self.tile_size + # - Höhe = self.tile_size + rect = pg.Rect(x_pixel, y_pixel, self.tile_size, self.tile_size) + # Füge das Rechteck der Liste rects hinzu + rects.append(rect) + + # Gib die Liste der Rechtecke zurück + return rects +# def test(self): +# pass +# print("Hallo") +# # if __name__ == "__main__": +# # from ..game import Game +# # tile = Tilemap(Game()) + + diff --git a/scripts/utils.py b/scripts/utils.py new file mode 100644 index 0000000..fe16b4a --- /dev/null +++ b/scripts/utils.py @@ -0,0 +1,15 @@ +import pygame +import os +BASE_IMG_PATH = 'data/images/' +def load_image(path): + image = pygame.image.load(BASE_IMG_PATH + path).convert() + image.set_colorkey((0,0,0)) + return image +def load_images(path): + images = [] + bilder = os.listdir(BASE_IMG_PATH + path) + for image in bilder: + images.append(load_image(path +"/" + image)) + + return images + \ No newline at end of file