Commit Graph

6 Commits

Author SHA1 Message Date
Fred Z f1141158d8 Fixes pylint & flake8 warnings [deliverable] 2018-04-10 19:03:59 +02:00
Fred Z eb68f7c04d Updates only changed tiles
Before this, after each move, the whole maze was redrawed to update
display. Now it draws only the changed tiles (current/old player
position). Changed tiles are stocked in a list, for future needs,
others changed tiles can be add here.

TODO keep maze.string updated
2018-04-10 15:44:27 +02:00
Fred Z 69be4c1753 Reviews comments 2018-04-10 15:14:30 +02:00
Fred Z 411668ed8d Creates a new object : GraphUI
Manages graphic display with pygame
Move from `func.py`: set_`header()` & `maze_draw()` (renamed `draw()`)
Deletes `Maze.maze_print()` (integrated in `GraphicUI.draw()`)
Removes the background, using only tiles

TODO: Add a floor tile behind player, guard and items
2018-04-05 18:12:21 +02:00
Fred Z c0a3c1d1f2 Adds requirement.txt
Deletes obsolete file `gui.py`
2018-03-25 00:15:14 +01:00
Fred Z 11347f967d Massive refactoring to use tile in background
Use pygame's display to setup a 15 cells square grid, with a player
moving on it. Do not clean the trail, border collision.
Next step: build an gui object for representing the maze.
2018-03-20 23:40:46 +01:00