Commit Graph

238 Commits

Author SHA1 Message Date
Charles Peyrat
32e6eab943 Added import enum.auto to mapgeneration.randomwalk 2020-12-06 23:55:57 +01:00
Charles Peyrat
3717429549 Added some test default parameters for the random walk generator 2020-12-04 18:04:50 +01:00
Charles Peyrat
bc9c7cd7f7 Finalised implementation of the walker class with method split 2020-12-04 18:03:41 +01:00
Charles Peyrat
a5c53c898e Implemented walker class and methods random_turn, next_pos, move_in_bounds 2020-12-04 18:01:54 +01:00
Charles Peyrat
428bbae736 Added base files for map generation and main loop for random walk generation 2020-12-04 16:02:48 +01:00
Charles Peyrat
18b06c5274 Correcting display bug 2020-11-13 18:17:04 +01:00
Charles Peyrat
ae493337ed Modified main menu to be able to override the current game with a new one 2020-11-13 18:08:48 +01:00
ynerant
eca6b9af1f Merge branch 'entities' into 'master'
Entities

See merge request ynerant/dungeon-battle!10
2020-11-13 14:10:40 +01:00
Yohann D'ANELLO
600819e648 Teddy bears has 50 HP 2020-11-13 14:07:27 +01:00
Yohann D'ANELLO
526a1a1e27 Don't use twice the same setting 2020-11-12 02:03:08 +01:00
Yohann D'ANELLO
1366e6a54d Linting 2020-11-12 01:58:10 +01:00
Yohann D'ANELLO
d241bc8234 One more typo 2020-11-12 01:57:56 +01:00
nicomarg
61d66ac220 Fixed typos 2020-11-12 00:12:30 +01:00
nicomarg
92ab9ae075 Changed the behaviour of DisplayManager to match previous commit and fixed tests and bootstrap accordingly 2020-11-11 23:56:08 +01:00
nicomarg
b0292c05b2 The settings menu refreshes texture pack when exited 2020-11-11 23:48:46 +01:00
Yohann D'ANELLO
21e85078a4 Display inventory content in statdisplay 2020-11-11 23:41:06 +01:00
Yohann D'ANELLO
12c653fe15 Cover change texture pack 2020-11-11 23:13:21 +01:00
Yohann D'ANELLO
ffa1ea01b1 Add "back" button in settings menu 2020-11-11 23:10:49 +01:00
Yohann D'ANELLO
ddf0b21e37 Change texture pack 2020-11-11 23:09:15 +01:00
Yohann D'ANELLO
13ac2ba13a Display comments on settings menu 2020-11-11 23:00:45 +01:00
Yohann D'ANELLO
1eee45a0fd Forgot one unused import 2020-11-11 22:51:02 +01:00
Yohann D'ANELLO
c243176d8f Add Gitlab stage for Python 3.7 because it is Debian default version 2020-11-11 22:50:14 +01:00
Yohann D'ANELLO
cde0b19c72 KeyValues.translate_key returns a KeyValues object 2020-11-11 22:47:51 +01:00
Yohann D'ANELLO
edecb7eb90 I felt frustrated to don't have 100% of coverage 2020-11-11 22:45:57 +01:00
Yohann D'ANELLO
caef8dc9b2 Cover settings 2020-11-11 22:45:15 +01:00
Yohann D'ANELLO
0c17e74d6a Key handler does not depend on curses's screen anymore 2020-11-11 22:36:42 +01:00
Yohann D'ANELLO
748561e87d More separation on menu code 2020-11-11 22:22:33 +01:00
Yohann D'ANELLO
17edb6a645 Don't resize map pad: it has already the good size (the map dimensions) 2020-11-11 22:12:05 +01:00
Yohann D'ANELLO
4b8acc0597 Don't resize pads when resizing window. For an unknown reason, pads don't want to be displayed on small screens. 2020-11-11 21:55:57 +01:00
Yohann D'ANELLO
42d8caefde Pycharm, please don't remove trailing white spaces on maps 2020-11-11 20:51:50 +01:00
Yohann D'ANELLO
53077aacb0 Linting 2020-11-11 20:36:43 +01:00
Yohann D'ANELLO
f33d8b8170 Merge branch 'inventory' into entities 2020-11-11 20:34:30 +01:00
Yohann D'ANELLO
c329ec927f Add rabbits, beavers and teddy bears 2020-11-11 17:39:48 +01:00
Yohann D'ANELLO
a4eaab0db6 Linting 2020-11-11 17:24:57 +01:00
Yohann D'ANELLO
af39a305b1 Test entity movements and fights with players 2020-11-11 17:23:31 +01:00
Yohann D'ANELLO
e88b4ee775 Render game when we are dead 2020-11-11 17:17:28 +01:00
Yohann D'ANELLO
61714a5129 Test heart healing 2020-11-11 17:15:28 +01:00
Yohann D'ANELLO
8db00bcaa6 Fix broken tests 2020-11-11 16:58:20 +01:00
Yohann D'ANELLO
ac22aef860 Items can be put in inventory by default 2020-11-11 16:57:09 +01:00
Yohann D'ANELLO
d35331fdb0 Add items in inventory 2020-11-11 16:49:04 +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
279ef2439d Limit the complexity of the dijkstra to eight 2020-11-11 16:02:32 +01:00
Yohann D'ANELLO
0f53407b3d Use a larger example map 2020-11-11 16:00:40 +01:00
Yohann D'ANELLO
d08ff7061f Use Dijkstra algorithm to describe monster paths 2020-11-11 15:25:50 +01:00
Yohann D'ANELLO
2f3a03dbf7 The camera position should consider the width of a tile 2020-11-11 15:10:46 +01:00
Yohann D'ANELLO
1e66e263bc Use bricks for walls 2020-11-11 15:09:28 +01:00
eichhornchen
e3d28409f5 Repaired tthe display problem for settings menu 2020-11-11 14:56:00 +01:00
eichhornchen
d9b7db742a Added settings diplay and ability to change the keys (there is a refreshing problem though) 2020-11-11 14:46:25 +01:00