Skip to content
Snippets Groups Projects
Commit 9ce7fc33 authored by Robert Seimetz's avatar Robert Seimetz
Browse files

Remove obsolete param

parent fe5ccc5b
No related branches found
No related tags found
No related merge requests found
...@@ -22,5 +22,9 @@ ...@@ -22,5 +22,9 @@
- Author: Puddin - Author: Puddin
- link: https://opengameart.org/content/rotating-coin - link: https://opengameart.org/content/rotating-coin
- CC0: https://creativecommons.org/publicdomain/zero/1.0/ - CC0: https://creativecommons.org/publicdomain/zero/1.0/
- [BasicTilesets](tilesets/BasicTileset_Tiles.png)
All other files (but just files in `img` and `sound`) are CC0: https://creativecommons.org/publicdomain/zero/1.0/ - Author: marceles
\ No newline at end of file - Link: https://opengameart.org/content/basic-tiles-for-gbstudiogame-boy
- CC-BY 4.0: https://creativecommons.org/licenses/by/4.0/
All other files (but just files in `img` and `sound`) are CC0: https://creativecommons.org/publicdomain/zero/1.0/
...@@ -7,10 +7,9 @@ from gameparts.basics import _Physics, _Character, rotate_image ...@@ -7,10 +7,9 @@ from gameparts.basics import _Physics, _Character, rotate_image
class LinearEnemy(_Character, _Physics): class LinearEnemy(_Character, _Physics):
def __init__(self, location, size, image, tilemap, walls, speed, direction): def __init__(self, location, size, image, tilemap, walls, direction):
_Character.__init__(self, location, size, image, tilemap) _Character.__init__(self, location, size, image, tilemap)
_Physics.__init__(self, walls) _Physics.__init__(self, walls)
self.speed = speed
self.bouncetype = "invert" self.bouncetype = "invert"
self.move = direction self.move = direction
......
...@@ -55,7 +55,7 @@ for objects in tilemap.data.objects: ...@@ -55,7 +55,7 @@ for objects in tilemap.data.objects:
print("Coin") print("Coin")
# Für alle gewünschten Charactergruppen # Für alle gewünschten Charactergruppen
if objects.name == "bat": if objects.name == "bat":
enemies.add(FollowingEnemy((objects.x, objects.y), (49, 22), "bat.png", tilemap, platforms, 10, player )) enemies.add(LinearEnemy((objects.x, objects.y), (49, 22), "bat.png", tilemap, platforms, 10, [3,0]))
print("Bat") print("Bat")
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<map version="1.4" tiledversion="1.4.3" orientation="orthogonal" renderorder="right-down" width="90" height="45" tilewidth="16" tileheight="16" infinite="0" nextlayerid="8" nextobjectid="35"> <map version="1.8" tiledversion="1.8.2" orientation="orthogonal" renderorder="right-down" width="90" height="45" tilewidth="16" tileheight="16" infinite="0" nextlayerid="8" nextobjectid="35">
<tileset firstgid="1" source="./tilesets/tilemap.tsx"/> <tileset firstgid="1" source="tilesets/tilemap.tsx"/>
<layer id="1" name="Tile Layer 1" width="90" height="45"> <layer id="1" name="Tile Layer 1" width="90" height="45">
<data encoding="csv"> <data encoding="csv">
69,66,66,66,66,66,66,28,29,29,29,29,29,30,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69, 69,66,66,66,66,66,66,28,29,29,29,29,29,30,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
</data> </data>
</layer> </layer>
<objectgroup id="7" name="characters"> <objectgroup id="7" name="characters">
<object id="34" name="bat" x="1072.25" y="495.5" width="31.75" height="32"/> <object id="34" name="bat" x="234.565" y="10.2035" width="31.75" height="32"/>
</objectgroup> </objectgroup>
<objectgroup id="6" name="coins"> <objectgroup id="6" name="coins">
<object id="27" name="coin" x="320.727" y="623.818" width="15.8182" height="15.2727"/> <object id="27" name="coin" x="320.727" y="623.818" width="15.8182" height="15.2727"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment