Commit Graph

41 Commits

Author SHA1 Message Date
Charles Peyrat f3bc3101f0 Code refactoring in game.Game 2020-10-23 18:01:39 +02:00
Charles Peyrat 9c8a352ecd Removed unwanted code from mapdisplay.MapDisplay; the player should be drawn as a map entity, not on its own 2020-10-23 17:46:44 +02:00
Yohann D'ANELLO c85166ff89 Remove proof of concept, <3 eichornchen 2020-10-23 15:41:17 +02:00
Yohann D'ANELLO 8437482139 Clear screen before redrawing 2020-10-23 15:40:32 +02:00
Yohann D'ANELLO d264bb45cf Handle player position in game display 2020-10-23 15:14:19 +02:00
Yohann D'ANELLO eea9b45f6c Use map display 2020-10-23 15:00:59 +02:00
Yohann D'ANELLO 7d97befee4 Load game externally 2020-10-23 14:53:08 +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 a0027ece64 Test got broken 2020-10-16 18:22:20 +02:00
Yohann D'ANELLO 2947ffd0c1 Replace # by walls 2020-10-16 18:20:26 +02:00
Charles Peyrat 5bf4857d99 Merge branch 'map_display' of gitlab.crans.org:ynerant/dungeon-battle into map_display 2020-10-16 18:15:18 +02:00
Charles Peyrat 14f93fd596 Corrected equations in mapdisplay.MapDisplay.display. Closes #1 2020-10-16 18:14:47 +02:00
Yohann D'ANELLO 8818073fc0 Add some comments 2020-10-16 18:05:49 +02:00
Yohann D'ANELLO e84a5efee2 More modularity, add properties in tiles 2020-10-16 17:47:52 +02:00
Yohann D'ANELLO c9d136929b Better usage of enumerations 2020-10-16 17:41:37 +02:00
Yohann D'ANELLO 795623e1c9 :squirrel: Main character is a squirrel 2020-10-16 17:15:17 +02:00
Yohann D'ANELLO cae7ab3beb Use Map interface in proof of concept 2020-10-16 16:46:40 +02:00
Yohann D'ANELLO c0e5fe4400 Get a tile from its representation 2020-10-16 16:41:38 +02:00
Nicolas Margulies cfbe612192 Merge branch 'map_display' of gitlab.crans.org:ynerant/dungeon-battle into map_display 2020-10-16 16:02:47 +02:00
Nicolas Margulies 16121b55f6 Merge branch 'map_display' of gitlab.crans.org:ynerant/dungeon-battle into map_display 2020-10-16 16:02:38 +02:00
Charles Peyrat 722ff07952 Fixed method display from mapdisplay.MapDisplay 2020-10-16 16:00:57 +02:00
Charles Peyrat 7d13a78235 New class MapDisplay implements displaying maps to terminal. See #1 2020-10-16 15:57:13 +02:00
Charles Peyrat 42c9957ceb Added entities management to class Map 2020-10-16 15:57:13 +02:00
Charles Peyrat 2e82849395 Sanitizing data structure 2020-10-16 15:57:13 +02:00
Charles Peyrat 1b635502c4 New class MapDisplay implements displaying maps to terminal. See #1 2020-10-16 15:54:33 +02:00
Charles Peyrat ba4bb78166 Added entities management to class Map 2020-10-16 15:52:47 +02:00
Yohann D'ANELLO a0530b67fb Draw a map in a string to make the render in the screen easier 2020-10-16 15:47:49 +02:00
Nicolas Margulies 1e7ca6026f Tiles are now an enumeration 2020-10-16 15:44:11 +02:00
Yohann D'ANELLO c8de541eee Also use arrow keys in example 2020-10-16 15:32:15 +02:00
Yohann D'ANELLO ef6e5d66ca Cleaner proof of concept 2020-10-16 15:23:58 +02:00
eichhornchen 4b0554a913 Now uses TermManager 2020-10-16 15:00:33 +02:00
Yohann D'ANELLO 57dd733c54 Replace the dot cursor after the player moved, not before 2020-10-16 14:23:11 +02:00
eichhornchen 3daf58f51c Added a map example 2020-10-16 14:18:33 +02:00
eichhornchen 03560f4407 Added a first try for player movement 2020-10-16 14:12:39 +02:00
Yohann D'ANELLO b12764b355 Draw a map in a string to make the render in the screen easier 2020-10-16 14:00:38 +02:00
Charles Peyrat 5728abc02c Sanitizing data structure 2020-10-11 15:24:51 +02:00
Yohann D'ANELLO 2cea53f519 💚 Fix pipeline 2020-10-09 18:24:13 +02:00
Yohann D'ANELLO c2eb3c054c Create basic interfaces, see #3, #4, #6 2020-10-09 18:17:41 +02:00
Yohann D'ANELLO bec53dbf1e Linting... 2020-10-09 17:04:50 +02:00
Charles Peyrat c161f924e9 Context manager for wrapping the use of a curses terminal 2020-10-09 16:14:23 +02:00
Yohann D'ANELLO 95bb99d42c 🎉 Init repo 2020-10-02 15:48:39 +02:00