Skip to content

Commit 222f7d4

Browse files
authored
Merge pull request #11 from nuzcraft/part_8
Part 8
2 parents 7eed6d2 + e86b4fe commit 222f7d4

29 files changed

Lines changed: 1755 additions & 224 deletions

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ I want to use this as an opportunity to:
1212
4. make a roguelike
1313
5. practice with git
1414

15+
## Part 8 Dev Notes
16+
17+
### Items and Inventory
18+
19+
https://rogueliketutorials.com/tutorials/tcod/v2/part-8/
20+
21+
It looks like this is going to start off with a refactor(similar to part 6). Hopefully it doesn't result in quite as extensive of a unit test rewrite as the engine class rewrite.
22+
23+
Refactor complete. It wasn't nearly as broad as the engine refactor, and I like a lot of the ideas here. Make it clearer that certain things have parents to define that relationship (specifically to maps) but still allow entities to easily get the gamemap they're associated with. From a unit test perpsective, this broke ~25% of the tests, but they were easily fixed by swapping out 'gamemap' with 'parent' in almost all cases
24+
25+
This next section will begin soon! We'll be getting a working inventory set up as well as some items that can be picked up and used.
26+
27+
Okay, wow, well, that was a lot. This part in particular felt difficult because there were SO MANY backend pieces to put together before we see anything on the screen. That plus all the moving pieces meant that maintaining the unit tests was somewhat painful. In the end, I think the solutions here are quite flexible.
28+
1529
## Part 7 Dev Notes
1630

1731
### Creating the Interface
@@ -24,6 +38,8 @@ Interestingly (or not I guess) I found it difficult to focus on part 7, and I th
2438

2539
I think the above was compounded by UI work being a bit more cumbersome to unit test. This section did a lot of good work to make things look nice on the screen and in the end, I enjoyed making it happen.
2640

41+
Finally, merging the part 7 pull request was really nice :) the python unit testing code ran on its own, alerted me to a minor issue that kept me from merging until I fixed it. Very cool!
42+
2743
## Part 6.5 Building, Testing, Releasing, etc
2844

2945
I spent an evening futzing around with a couple things here that I want to document. Firstly, I set up a GitHub action that will very specifically build the project and run all my unit test whenever I commit to main! This is really nice as it will let me know if any code makes it to the repo that breaks some functions. This is a really important part of continuous integration even if I'm not really trying to continuously integrate this code anywhere. Secondly, I figured out how to use pyinstaller to build an executable of my python project. This has been difficult for me to do in the past, so it was really nice to get it somewhat figured out. The pyinstaller command I use to build is:

0 commit comments

Comments
 (0)