Commit Graph

60 Commits

Author SHA1 Message Date
Yohann D'ANELLO
109543a385 Fix broken tests 2020-11-19 01:44:46 +01:00
Yohann D'ANELLO
075c061a14 Don't ignore first line 2020-11-19 01:44:46 +01:00
Yohann D'ANELLO
3126b89bc1 Replace player instance 2020-11-19 01:44:46 +01:00
Yohann D'ANELLO
58fbba8cc9 Save entities 2020-11-19 01:44:46 +01:00
eichhornchen
a4482849ae Fix for loading game in progress, there remains to change all entities __init__ to allow being initialized by a dictionnary (work in progress, breaks the game) 2020-11-19 01:44:46 +01:00
Yohann D'ANELLO
e52e0c833c Replace tiles when loading map from a save file 2020-11-19 01:44:46 +01:00
Yohann D'ANELLO
958dcdfee0 Linting 2020-11-19 01:44:46 +01:00
Yohann D'ANELLO
be6c949b18 Instantiate entity attributes in __init__ rather than in the class definition 2020-11-19 01:44:46 +01:00
Yohann D'ANELLO
0488d8a9e2 Dead is an entity property 2020-11-19 01:44:46 +01:00
eichhornchen
8f932604f6 Added documentation on a lot of classes and functions (and removed some files I commited by mistake) 2020-11-19 01:44:40 +01:00
eichhornchen
41d1696c9b Added functionnal save system and broken load system 2020-11-19 01:43:31 +01:00
Yohann D'ANELLO
c329ec927f Add rabbits, beavers and teddy bears 2020-11-11 17:39:48 +01:00
Yohann D'ANELLO
f11fb31c28 Interact with items 2020-11-11 16:47:19 +01:00
Yohann D'ANELLO
2b5d82db57 Spawn also items 2020-11-11 16:23:27 +01:00
Yohann D'ANELLO
d75f4290ff Store the start position in a map 2020-11-11 16:10:28 +01:00
Yohann D'ANELLO
0f53407b3d Use a larger example map 2020-11-11 16:00:40 +01:00
Yohann D'ANELLO
f9f02b6621 Move to closest player if it is close 2020-11-10 22:59:02 +01:00
Yohann D'ANELLO
12ee436f4d Fix broken game test 2020-11-10 22:44:53 +01:00
Yohann D'ANELLO
d26b66f337 Add possibility to define the background color of entities (black in ASCII, white in Unicode) 2020-11-10 22:34:12 +01:00
Yohann D'ANELLO
ec6b90fba2 All entities can move, not only players 2020-11-10 22:10:28 +01:00
Yohann D'ANELLO
3f4c809db6 Monsters are hedgehogs 🦔 2020-11-10 21:47:36 +01:00
Yohann D'ANELLO
3f374d2558 Spawn a random amount of squirrels on the map 2020-11-10 21:41:54 +01:00
Yohann D'ANELLO
0bd26a1bd0 Linting 2020-11-06 21:15:09 +01:00
Yohann D'ANELLO
b3d789e3e7 Fix texture packs 2020-11-06 20:18:27 +01:00
Yohann D'ANELLO
02d3394439 Merge remote-tracking branch 'origin/master' into display
# Conflicts:
#	dungeonbattle/entities/player.py
#	dungeonbattle/game.py
#	dungeonbattle/interfaces.py
#	dungeonbattle/mapdisplay.py
#	dungeonbattle/settings.py
#	dungeonbattle/tests/settings_test.py
#	dungeonbattle/texturepack.py
2020-11-06 20:04:24 +01:00
eichhornchen
b1282c107d added player carachteristics 2020-11-06 18:08:10 +01:00
Yohann D'ANELLO
54bb2d1416 Collisions are working 2020-11-06 17:59:19 +01:00
Yohann D'ANELLO
f9dcc8f1c1 Texture packs are working 2020-11-06 17:43:30 +01:00
eichhornchen
4115363b74 glargh 2020-11-06 17:17:10 +01:00
eichhornchen
fe77f903d1 put back the ":" where it belongs 2020-11-06 17:10:38 +01:00
eichhornchen
a6b93cacfb Changed Tiles to take into account the texturepack 2020-11-06 17:04:42 +01:00
eichhornchen
85a006e7b6 added coordinates of camera view in map 2020-11-06 16:38:32 +01:00
Yohann D'ANELLO
ff435dc328 More tests and more coverage 2020-11-06 16:13:28 +01:00
eichhornchen
6bfb8c080c added name to entities 2020-11-06 16:05:01 +01:00
Yohann D'ANELLO
8ccb74ea54 Linting 2020-11-06 15:33:26 +01:00
Nicolas Margulies
2ba7330ff5 An example of item 2020-10-23 18:02:57 +02:00
Nicolas Margulies
7c1c427892 Deleted unwanted code in Player
It isn't the player's role to check whether they can move to a tile,
check it beforehands and use the move method from its Entity superclass.
2020-10-23 16:17:48 +02:00
eichhornchen
230a7ec432 Cleaned an error in interfaces.py 2020-10-23 15:55:30 +02:00
Nicolas Margulies
759ddf7685 Merged master 2020-10-23 14:45:03 +02:00
Nicolas Margulies
7a2e1173d9 Made the entities optional when creating maps 2020-10-23 14:42:46 +02:00
Yohann D'ANELLO
3467fb622c Replace # by walls 2020-10-23 14:34:29 +02:00
Yohann D'ANELLO
d8bd500349 Add some comments 2020-10-23 14:34:29 +02:00
Yohann D'ANELLO
d8401d9920 More modularity, add properties in tiles 2020-10-23 14:34:29 +02:00
Yohann D'ANELLO
9c6f22ccf8 Better usage of enumerations 2020-10-23 14:34:29 +02:00
Yohann D'ANELLO
1054d8e57a Get a tile from its representation 2020-10-23 14:34:29 +02:00
Yohann D'ANELLO
eb1e125d4e Draw a map in a string to make the render in the screen easier 2020-10-23 14:34:29 +02:00
Nicolas Margulies
182af96da0 Tiles are now an enumeration 2020-10-23 14:34:24 +02:00
Nicolas Margulies
e65a486b78 A basic fighting mechanic and a few entities 2020-10-16 18:31:49 +02:00
Yohann D'ANELLO
008773c01e Merge remote-tracking branch 'origin/master' into player_move
# Conflicts:
#	dungeonbattle/interfaces.py
#	dungeonbattle/interfaces_test.py
2020-10-16 18:29:55 +02:00
Yohann D'ANELLO
2947ffd0c1 Replace # by walls 2020-10-16 18:20:26 +02:00