Commit Graph

16 Commits

Author SHA1 Message Date
Fred Z f1141158d8 Fixes pylint & flake8 warnings [deliverable] 2018-04-10 19:03:59 +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 80c22b9685 Clean and tidy images stock : ready for delivery 2018-04-05 18:24:39 +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
Fred Z bc024f9a9c Rename every occurences of map by maze
Map is a keyword and I using ma & maze in the script may be confusing
2018-04-04 18:51:23 +02:00
Fred Z ed5380376f Sets up file error (presence or line nb)
Clean exit and handling error when a map file do not exist or have a
wrong number of line (acording to the constant MAZE_SIZE in the conf
TODO if a file error raises, do not warmup pygame
2018-04-04 14:48:22 +02:00
Fred Z 19bf777484 Massive static code cleanup
- Translating comments
- Flake8 & Pylint checking
- Adjust variable name consistency
- Rename tiles filename (and adds files)
2018-03-30 11:19:33 +02:00
Fred Z 8cc28d6120 Adds last loop [deliverable]
… to keep end/quit messages readable
2018-03-28 01:17:47 +02:00
Fred Z 536e3fd0d4 Improves headers text-management
Manages 3 text-zones:
 - Title (top left)
 - Status (bottom left)
 - Items list (top right)

DONE draws items counter and message
2018-03-28 00:33:53 +02:00
Fred Z 4333c3dd86 Creates header for messaging, put welcome message 2018-03-27 02:39:40 +02:00
Fred Z 3e46a938ba Moves maze_draw() to conf.py 2018-03-27 01:23:46 +02:00
Fred Z 1104e34040 Checks if all items are collected (win or loose)
TODO draws items counter and message
2018-03-27 00:11:18 +02:00
Fred Z a937a79719 Collects items in a list
TODO draws items counter and message
TODO checks if all items is collected before exiting
TODO move maze_draw() to func.py
2018-03-24 23:48:28 +01:00
Fred Z f021ab5fa2 Finalise the general use of ELEMENT_LIST
Suppress MAZE_ELEMENTS_TILES & MAZE_ELEMENTS
TODO move maze_draw() to func.py
FIXME walk over collectables items
2018-03-24 23:11:45 +01:00