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 5a7224aaad Renames 'void' element by 'floor' 2018-04-05 18:29:42 +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 cea1f058e0 Creates a new object : Player
Splits player's related code in a new class
Renames some var, const, attr and methods
Done some cleaning in ELEMENTS
2018-04-05 02:05:30 +02:00