Martin Gerhardy
a515864167
TWINE: fixed default key mappings
2020-11-21 15:55:44 +01:00
Martin Gerhardy
49be0a49a6
TWINE: changed behaviour of ScopedKeyMap
...
it's dangerous to disable a keymap because you could lose the action state.
Now we just enable another keymap - and disable it after we are done. So
we don't lose the action state. This fixes a problem with the hero walking
along a sign and hit the action button. We are starting the text sequence.
Once this is over and you have released the cursor keys during read, the actor
would still move.
2020-11-21 15:38:36 +01:00
Martin Gerhardy
f46cd54294
TWINE: allow to use the cutscene abort keys to interrupt fullscreen texts
2020-11-21 15:34:05 +01:00
Martin Gerhardy
9acc282047
TWINE: minor refactoring in drawTextFullscreen
2020-11-21 15:27:01 +01:00
Martin Gerhardy
689909012a
TWINE: fixed invalid action states after reading text from signs
2020-11-21 15:24:46 +01:00
Martin Gerhardy
d21bfbe914
TWINE: moved cursor key mask handling into movement class
2020-11-21 15:24:46 +01:00
Martin Gerhardy
a5295d0fa6
TWINE: hide member of Movements class
2020-11-21 15:24:46 +01:00
Martin Gerhardy
e10aecad31
TWINE: extracted into single methods and cleanup in input code handling
2020-11-21 15:24:46 +01:00
Martin Gerhardy
3a3dc880a5
TWINE: simplified input code
2020-11-21 15:24:46 +01:00
Martin Gerhardy
95a331f78d
TWINE: further cleanup on the input code
2020-11-21 15:24:46 +01:00
Martin Gerhardy
976e139d27
TWINE: simplified input code
2020-11-21 15:24:46 +01:00
Martin Gerhardy
025866af83
TWINE: removed unused member from input class
2020-11-21 15:24:46 +01:00
Martin Gerhardy
b0a7b477a0
TWINE: comment about the animation type
2020-11-21 15:24:46 +01:00
Martin Gerhardy
28b5e2fb01
TWINE: ensure that we are ending with an invalid keymap state
2020-11-21 15:24:46 +01:00
Martin Gerhardy
cc653184c3
TWINE: restore saving hero respawn position to the scene start position
...
this is due to the fact that the lba save game doesn't save the whole scene state.
By not letting the hero restart the scene, you might end up in an unbeatable state.
Non of the already solved puzzles are still active after load, nor are any of the
other already destroyed actors still destroyed - they are just respawned with all
their lifes.
2020-11-21 15:24:46 +01:00
Martin Gerhardy
0f940c4f72
TWINE: comments and added missing termination byte to savegame
...
according to http://lbafileinfo.kazekr.net/index.php\?title\=LBA1:Savegame
2020-11-21 15:24:46 +01:00
Martin Gerhardy
0381111827
TWINE: replaced magic numbers
2020-11-21 15:24:46 +01:00
Martin Gerhardy
db5a8551e2
TWINE: reduced cyclic complexity
2020-11-21 15:24:46 +01:00
Martin Gerhardy
65b3828cdc
TWINE: fixed losing the active actor control if you activate the behaviour menu
2020-11-21 15:24:46 +01:00
Martin Gerhardy
631864146f
TWINE: extended input class
2020-11-21 15:24:46 +01:00
Martin Gerhardy
6fefa0d9b5
TWINE: give_all_items enables the inventory
2020-11-20 18:34:50 +01:00
Martin Gerhardy
699c8225c6
TWINE: replaced magic numbers with constants
...
and started to mark the angles - to be able to refacto them easier later on
2020-11-20 18:34:50 +01:00
Martin Gerhardy
b30a195e97
TWINE: introduced ClampAngle
2020-11-20 18:26:35 +01:00
Martin Gerhardy
d6c879cbe7
TWINE: doxygen for scripts
...
http://moonbase.kazekr.net/index.php\?page\=d_dok
2020-11-20 18:26:35 +01:00
Martin Gerhardy
3e8247a6b7
TWINE: use IS_HERO macro
2020-11-19 23:12:06 +01:00
Martin Gerhardy
6411e5d07e
TWINE: fixed warning
2020-11-19 22:58:24 +01:00
Martin Gerhardy
7977f649b3
TWINE: renamed variables + const
2020-11-19 22:54:50 +01:00
Martin Gerhardy
e761fe9118
TWINE: fixed off-by-one error in mANGLE_RND
2020-11-19 19:09:18 +01:00
Martin Gerhardy
b3a1882eb2
TWINE: added new animation id constants
2020-11-19 18:35:28 +01:00
Martin Gerhardy
89c02f349a
TWINE: implemented mPLAY_FLA move script
2020-11-19 18:35:27 +01:00
Martin Gerhardy
47405a5e61
TWINE: fixed missing read of kFollow2 actor idx
2020-11-19 18:35:27 +01:00
Martin Gerhardy
f6d9a81d7f
TWINE: move script fix
2020-11-19 18:35:27 +01:00
Martin Gerhardy
d19ad32bb7
TWINE: brk file comments
2020-11-19 18:35:27 +01:00
Martin Gerhardy
b2d14d50cf
TWINE: move script comments
2020-11-19 18:35:27 +01:00
Martin Gerhardy
ff86acbd03
TWINE: renamed method parameter
2020-11-19 18:35:27 +01:00
Martin Gerhardy
8eb377226d
TWINE: endless loops for samples is -1 - but we are expecting 0
2020-11-19 18:35:27 +01:00
Martin Gerhardy
3f41556117
TWINE: allow to disable all actors in a scene but one
...
this allows easier debugging of actor behaviours
2020-11-18 20:29:43 +01:00
Martin Gerhardy
b46ab6d686
TWINE: fixed segfault
2020-11-18 20:29:43 +01:00
Martin Gerhardy
dbe7f30f93
TWINE: reduced scope
2020-11-18 20:29:43 +01:00
Martin Gerhardy
c9dfcf2474
TWINE: inlined constant
2020-11-18 20:29:43 +01:00
Martin Gerhardy
d2277d0c22
TWINE: prepare for mouse ui support
2020-11-18 20:29:43 +01:00
Martin Gerhardy
bf407a06d9
TWINE: added mouse cursor hovering helper function to input code
2020-11-18 20:29:43 +01:00
Martin Gerhardy
becdd25646
TWINE: allow to leave a menu with esc
2020-11-18 20:29:43 +01:00
Martin Gerhardy
853be98846
TWINE: fixed saving the hero position
2020-11-17 21:58:57 +01:00
Martin Gerhardy
fe21416bd6
TWINE: replaced magic numbers
2020-11-17 21:44:16 +01:00
Martin Gerhardy
a0f39a8c81
TWINE: load holomap resources
2020-11-17 21:40:23 +01:00
Martin Gerhardy
c45caf3b08
TWINE: fixed selecting slot for saving
2020-11-17 21:09:50 +01:00
Martin Gerhardy
f7552d1cd1
TWINE: fixed more memory leaks
2020-11-17 20:59:28 +01:00
Martin Gerhardy
d88dd72705
TWINE: make looping sound
2020-11-17 20:59:28 +01:00
Martin Gerhardy
178bfb577d
TWINE: removed unused return value
2020-11-17 20:59:28 +01:00