Commit Graph

127205 Commits

Author SHA1 Message Date
Paul Gilbert
c38a71dd1e CHEWY: Janitorial cleanup of array square bracket usage 2022-03-03 18:35:24 -08:00
Paul Gilbert
6fb3f94bd0 CHEWY: Implement loading of savegame list in in-game file menu 2022-03-03 18:35:24 -08:00
Paul Gilbert
5497f41b0c CHEWY: Implement getch to allow quitting via File Menu 2022-03-03 18:35:24 -08:00
Paul Gilbert
ed2fb0e96f CHEWY: Added event handling to stop File Menu from freezing 2022-03-03 18:35:23 -08:00
Paul Gilbert
af6d8fcc32 CHEWY: Add further credits 2022-03-03 18:35:23 -08:00
Paul Gilbert
2bba407db0 CHEWY: Merge roomdefs into room 2022-03-03 18:35:23 -08:00
Paul Gilbert
f3797cb558 CHEWY: Remove deprecated episode files 2022-03-03 18:35:23 -08:00
Paul Gilbert
d151497b53 CHEWY: Split episode5.cpp into separate room classes 2022-03-03 18:35:23 -08:00
Paul Gilbert
19f2d98f6f CHEWY: Split episode4.cpp into separate room classes 2022-03-03 18:35:22 -08:00
Paul Gilbert
367e8ae795 CHEWY: Split episode3.cpp into separate room classes 2022-03-03 18:35:22 -08:00
Paul Gilbert
4046eefed4 CHEWY: Split episode2.cpp into separate room classes 2022-03-03 18:35:22 -08:00
Paul Gilbert
dbc8459a85 CHEWY: Make various room data arrays static const 2022-03-03 18:35:22 -08:00
Paul Gilbert
81b502ff7e CHEWY: Move room 1 specific code to a new Room1 class 2022-03-03 18:35:22 -08:00
Paul Gilbert
2564539e71 CHEWY: Move room 2 cutscene into Room2 class 2022-03-03 18:35:22 -08:00
Paul Gilbert
116c098430 CHEWY: Update some static arrays for release 2022-03-03 18:35:22 -08:00
Paul Gilbert
5d41b24636 CHEWY: Split up episode1.cpp methods into Room classes 2022-03-03 18:35:21 -08:00
Paul Gilbert
05e4f0f527 CHEWY: Added Room3 and Room4 classes 2022-03-03 18:35:21 -08:00
Paul Gilbert
1dc023c837 CHEWY: Added Room2 class 2022-03-03 18:35:21 -08:00
Paul Gilbert
10faec434f CHEWY: Move ANI defines to room.h 2022-03-03 18:35:21 -08:00
Paul Gilbert
a0c4642788 CHEWY: Added extra should quit checks 2022-03-03 18:35:21 -08:00
Paul Gilbert
465f9fb731 CHEWY: Add debugger item command 2022-03-03 18:35:21 -08:00
Paul Gilbert
a6b1b4ef97 CHEWY: Fix palette updates in cutscenes 2022-03-03 18:35:20 -08:00
Paul Gilbert
cc3969d7a8 CHEWY: Fix cursor freezing as feeder tube appears 2022-03-03 18:35:20 -08:00
Paul Gilbert
32f2bbaa9f CHEWY: Adding quit checks to room 0 loops 2022-03-03 18:35:20 -08:00
Paul Gilbert
533a97f4af CHEWY: Room 0 method renamings 2022-03-03 18:35:20 -08:00
Paul Gilbert
834c15c351 CHEWY: Re-enable room 0 start sequence 2022-03-03 18:35:20 -08:00
Paul Gilbert
c3a90f6672 CHEWY: Fix loading of animation frame offset corrections 2022-03-03 18:35:20 -08:00
Paul Gilbert
9ae2ed3119 CHEWY: More room 0 cleanups 2022-03-03 18:35:20 -08:00
Paul Gilbert
633d1af934 CHEWY: Change ende from int16 to bool in Room0 2022-03-03 18:35:19 -08:00
Paul Gilbert
30ff675e46 CHEWY: Clear mouse click when starting game from main menu 2022-03-03 18:35:19 -08:00
Paul Gilbert
80f3a2670b CHEWY: Moved room 0 timer actions into Room0 class 2022-03-03 18:35:19 -08:00
Paul Gilbert
2de8ff17f6 CHEWY: Update credits.pl 2022-03-03 18:35:19 -08:00
Paul Gilbert
81b17afa4d CHEWY: Update headers to GPL3 2022-03-03 18:35:19 -08:00
Paul Gilbert
4b4487c7c6 CHEWY: Starting to cleanup eye animations 2022-03-03 18:35:19 -08:00
Paul Gilbert
78144eeae4 CHEWY: Split up Room0 class into it's own file 2022-03-03 18:35:19 -08:00
Paul Gilbert
2d4bab1be0 CHEWY: Fix using monacle on book within inventory 2022-03-03 18:35:18 -08:00
Paul Gilbert
7447e9f360 CHEWY: Fix the array index formula for checking walkable areas
Damn this took a long time to figure out. The method wasn't
in the sources we were provided, so I manually reversed it.
Unfortunately, interleaving of operations in the method
resulting in me producing an incorrect formula that took
way too long to finally figure out.
2022-03-03 18:35:18 -08:00
Paul Gilbert
647932d865 CHEWY: Move vec_tbl to a field of movclass 2022-03-03 18:35:18 -08:00
Paul Gilbert
d7eda3abfe CHEWY: Janitorial 2022-03-03 18:35:18 -08:00
Paul Gilbert
90df5000e6 CHEWY: Fix updating palette for shadows handling 2022-03-03 18:35:18 -08:00
Paul Gilbert
00f202c456 CHEWY: Constifying source arrays in palette calls 2022-03-03 18:35:18 -08:00
Paul Gilbert
aff7ddf3e7 CHEWY: Fix memory leak 2022-03-03 18:35:17 -08:00
Paul Gilbert
b772628e9c CHEWY: Further startup initialization 2022-03-03 18:35:17 -08:00
Paul Gilbert
e2400e81fb CHEWY: Change structures from using variable length arrays
The original used a variable length array at the end of
structures. But since that trips up memory overrun checks,
I've changed them to being a raw pointer that points to
just after the structure instead.

Also changed some hardcoded values of 4 bytes for pointers
to be a proper sizeof(pointer)
2022-03-03 18:35:17 -08:00
Paul Gilbert
81991ab9e3 CHEWY: Fix dereferencing null pointer 2022-03-03 18:35:17 -08:00
Paul Gilbert
ddd0c298f4 CHEWY: Change mallocs to a wrapper that initializes the memory 2022-03-03 18:35:17 -08:00
Paul Gilbert
f25d952802 CHEWY: Further gcc warning fix 2022-03-03 18:35:17 -08:00
Paul Gilbert
e9867bbfde CHEWY: Fix gcc warnings 2022-03-03 18:35:17 -08:00
Paul Gilbert
3deb7e2396 CHEWY: Changing calloc calls to malloc 2022-03-03 18:35:16 -08:00
Paul Gilbert
65cd7c1da9 CHEWY: gcc compilation fixes 2022-03-03 18:35:16 -08:00