Commit Graph

209 Commits

Author SHA1 Message Date
alxpnv
cbbe4a05a4
ASYLUM: fix a bug in Scene::hitTestPixel() 2021-05-17 15:37:42 +02:00
alxpnv
df473f0927
ASYLUM: check if the denominator is not zero 2021-05-17 15:37:41 +02:00
alxpnv
a29d42231b
ASYLUM: fix a few bugs related to scene motion 2021-05-17 15:37:40 +02:00
alxpnv
46c7750585
ASYLUM: unblock chapter 11 2021-05-17 15:37:40 +02:00
alxpnv
6876b50e4f
ASYLUM: add scene motion logging 2021-05-17 15:37:39 +02:00
alxpnv
361a99035c
ASYLUM: unbreak chapter 8 2021-05-17 15:37:39 +02:00
alxpnv
2c18077472
ASYLUM: handle intersecting action areas the way the original does (this reverts the workaround introduced in 1e933a1) 2021-05-17 15:37:37 +02:00
Alexandre Fontoura
28cbd2b28e
ASYLUM: cleanup some warnings 2021-05-17 15:37:36 +02:00
alxpnv
c08da99266
ASYLUM: add a workaround to handle action areas intersection 2021-05-17 15:37:34 +02:00
alxpnv
49941a57b4
ASYLUM: use max index instead of count 2021-05-17 15:37:33 +02:00
Alexandre Fontoura
b374c59bdf
ASYLUM: Fixed actor visibility entering the scene. Chapter 2 can now be played. 2021-05-17 15:37:30 +02:00
Alexandre Fontoura
1b6120e974
ASYLUM: Fixed Scene Update Coordinates with Motion 2021-05-17 15:37:29 +02:00
Alex Bevilacqua
34214332e9
ASYLUM: more script debug output 2021-05-17 15:37:28 +02:00
Alex Bevilacqua
926443d63f
ASYLUM: fixed smacker video playing and added new debug level 2021-05-17 15:37:28 +02:00
Alex Bevilacqua
baf4fa93cb
ASYLUM: access surface pixels via getPixels() 2021-05-17 15:37:27 +02:00
Alex Bevilacqua
7bf4a85cb2
ASYLUM: fix compilation with latest master 2021-05-17 15:37:26 +02:00
Alex Bevilacqua
0c7b3038fe
ASYLUM: replace isalnum() with Common::isAlNum() 2021-05-17 15:37:26 +02:00
Alex Bevilacqua
bfe8276bc8
ASYLUM: update a comment 2021-05-17 15:37:26 +02:00
xesf
c97fe2a6ca
ASYLUM: Fixed script reset while changing scenes.
This prevents a lot of fault script actions.
2021-05-17 15:37:25 +02:00
Alex Bevilacqua
0ab8d0c858
ASYLUM: add a some debug output and rename ActorDirection
The ActorDirection rename here is to make the enum value for West
use an English value (W) as opposed to a French value (O).
2021-05-17 15:37:25 +02:00
Alex Bevilacqua
68b9df5a4b
ASYLUM: identify a couple ActorStatus values 2021-05-17 15:37:24 +02:00
Littleboy
92181cef22
ASYLUM: Rename encounter flags
- Used to signal if the player should be re-enabled after the encounter finishes
 - Used to signal the dialog should be closed
2021-05-17 15:37:22 +02:00
Littleboy
341bf99614
ASYLUM: Cleanup Screen class 2021-05-17 15:37:21 +02:00
Littleboy
bdec064f12
ASYLUM: More cleanup of Menu class 2021-05-17 15:37:21 +02:00
Littleboy
2f18c1cb36
ASYLUM: Misc. cleanups
- Document some debug calls
 - Remove unused parameters names
 - Add const as needed
 - Change some coordinates values to int16
2021-05-17 15:37:21 +02:00
Littleboy
fa9083c250
ASYLUM: Implement missing priority code in Scene::processUpdateList()
This allows some scenes to progress further
2021-05-17 15:37:20 +02:00
Littleboy
4b7e86f226
ASYLUM: Fix problems with savegames in Menu
- Fix crash when trying to save before a scene is loaded
 - Fix typo preventing the deletion of saved games
2021-05-17 15:37:18 +02:00
Littleboy
f106c50b36
ASYLUM: Move actorIndex to SharedData 2021-05-17 15:37:16 +02:00
Littleboy
8f470f1fcb
ASYLUM: Rename flag set when we are editing a savegame name 2021-05-17 15:37:16 +02:00
Littleboy
072fd08206
ASYLUM: Accept keypad enter to validate a savegame name 2021-05-17 15:37:16 +02:00
Littleboy
d1b6bbabfd
ASYLUM: Move skipScriptProcessing and isEncounterRunning flags to SharedData 2021-05-17 15:37:16 +02:00
Littleboy
c935ba9eae
ASYLUM: Prefix debug output with type 2021-05-17 15:37:16 +02:00
Littleboy
99f2521155
ASYLUM: Cleanup Menu class 2021-05-17 15:37:15 +02:00
Littleboy
78f275d796
ASYLUM: Cleanup Scene and related classes 2021-05-17 15:37:15 +02:00
Littleboy
5b0da5965c
ASYLUM: Cleanup more base classes 2021-05-17 15:37:15 +02:00
Littleboy
44540643e8
ASYLUM: Cleanup base classes
- Made some public members of cursors private and add accessors
 - Add const modifiers as needed
 - Add missing casts
 - Add some null-pointers checks
 - etc.
2021-05-17 15:37:15 +02:00
Littleboy
0f14a09cd4
ASYLUM: Remove useless includes 2021-05-17 15:37:14 +02:00
Littleboy
ff0d80587f
ASYLUM: Change text coordinates parameters to use Common::Point 2021-05-17 15:37:14 +02:00
Littleboy
28363f844d
ASYLUM: Reorganize SharedData
- Add accessors for most variables
 - Add stubs for set/getChapter2Data()
2021-05-17 15:37:13 +02:00
Littleboy
5ba6a0605d
ASYLUM: Correct usage of some shared data
- Add ambientFlags array
 - Update usage of ambientTicks array
 - Remove some now unused gameFlags related methods
2021-05-17 15:37:12 +02:00
Julien Templier
ed60255adf
ASYLUM: Add delay in event loop in the intro 2021-05-17 15:37:11 +02:00
Julien Templier
6201a4cf9e
ASYLUM: Implement more palette related functions
- Use Screen::setupPalette() in Video class instead of setting the palette directly
- Implement Screen::updatePalette()
- Cleanup usage of Screen::setupPalette()
2021-05-17 15:37:10 +02:00
Julien Templier
fb8afdc6d6
ASYLUM: Palette and gamma functions update
- Identify dead code and remove unused parameters
- Rename several gamma and palette-relted functions
- Add stubs for palette fading functions
2021-05-17 15:37:10 +02:00
Julien Templier
6879945591
ASYLUM: Implement the missing part of Special::chapter2() 2021-05-17 15:37:09 +02:00
Julien Templier
7c9a793a64
ASYLUM: Finish implementation of Scene::processUpdateList() 2021-05-17 15:37:09 +02:00
Julien Templier
cb241adfae
ASYLUM: Fix credit text disappearing instead of fading out when at the top of the screen 2021-05-17 15:37:08 +02:00
Julien Templier
64c70dea97
ASYLUM: Implement Actor::updateDirection()
- Rename all fields related to the next actor state (as set by script)
- Rename process_401830() to processNext()
2021-05-17 15:37:06 +02:00
Julien Templier
71ffd5313a
ASYLUM: Move DEBUG_SCENE_TIMES to scene.cpp 2021-05-17 15:37:06 +02:00
Alex Bevilacqua
83194b47c8
ASYLUM: Silence more GCC warnings 2021-05-17 15:37:05 +02:00
Julien Templier
0c223c5875
ASYLUM: Fix flickering of text in the credits
This was due to the transparency index not being reset to 0 after the text fade animation.
2021-05-17 15:37:04 +02:00