-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
55 lines (48 loc) · 1.77 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
TODO:
first map should be premade with doors, stairs and water (and a few rats)
Nontrivial C++ patterns, to be mentioned explicitly
std::unique_ptr and std::move
default/deleted constructors
.emplace
brace initialization
lambdas and predicates
Structure:
==============
* Setting up
How to display an openGL window
* Drawing player and map, and basic player input
Tilemap, SparseBuffer, Spritemap, Input
camera offset?
show some non-tilemap visualization with UV colours
* Creature entities and movement
game area is the entire screen
db, config, and per-creature data. movement blocking. destroy entities when bumping onto each other
* User interface
start using the UI segments (header, char area)
character info / coords
* Field of view
fov/los.
* Object entities
Add doors, dynamic blockage of movement/vision
* Delving into the dungeon
add stairs up/down. changing-level code etc
* Game states (menu)
how to move between states
* Item entities and inventory
add item piles
add the new inventory state
have the different item categories, but don't do anything special with them yet
* Equipment, consumables & effects
add the equip/use mode
also pools
this introduces the different stats, hitpoints and "combat system"
add stats in char gui
* GUI-driven actions (ranged attack) and turn system
add bows & attackRange parameter
turn taking code (EndTurn & TurnSystem)
* Saving/loading
* Finishing touches: more screens/states (death, create char)
State of the project:
Architecture is occasionally iffy, which makes backwards simplification hard at times
Needs another pass from last to first, using cppcheck or other for FAST dead code removal, as I need to remove dead code, re-run it, check again, etc.
e.g. astar code, targetting variables in main game state, etc