Commit graph

1257 commits

Author SHA1 Message Date
Martin Gerhardy
baadba59a8 TWINE: use Vec3 copy 2021-02-25 17:38:27 +01:00
Martin Gerhardy
290b5de7e4 TWINE: converted hero position to Vec3 struct 2021-02-25 17:34:10 +01:00
Martin Gerhardy
87893749b5 TWINE: new color constant 2021-02-25 17:30:47 +01:00
Martin Gerhardy
ec34077906 TWINE: converted more positions to Vec3 2021-02-25 17:27:37 +01:00
Martin Gerhardy
fda3ccc4df TWINE: converted more positions to Vec3 2021-02-25 17:23:03 +01:00
Martin Gerhardy
eaf9de0bf0 TWINE: converted shadow coordinates to Vec3 struct 2021-02-25 17:17:57 +01:00
Martin Gerhardy
91e34e1307 TWINE: convertged collision position to Vec3 struct 2021-02-25 17:15:44 +01:00
Martin Gerhardy
63a27de46f TWINE: converted lastPos to Vec3 struct 2021-02-25 17:12:52 +01:00
Martin Gerhardy
a819f61e8c TWINE: moved actor position into Vec3 struct 2021-02-25 17:06:23 +01:00
Martin Gerhardy
1b14ab2919 TWINE: moved centerScreenOnActor into Grid class 2021-02-25 16:43:28 +01:00
Martin Gerhardy
e79b109a61 TWINE: converted to Vec3 2021-02-25 15:45:25 +01:00
Martin Gerhardy
ee7ac5572a TWINE: added centerOnActor method 2021-02-25 15:04:40 +01:00
Martin Gerhardy
d53f163e67 TWINE: extract to local variables 2021-02-25 13:51:55 +01:00
Martin Gerhardy
86131a3fb6 TWINE: center the on-screen keyboard for high resolution mode 2021-02-25 12:50:35 +01:00
Martin Gerhardy
89f81a020d TWINE: reduced magic numbers in inventory menu 2021-02-25 12:50:35 +01:00
Martin Gerhardy
e342415d31 TWINE: reduced itemAngle array size 2021-02-25 12:50:34 +01:00
Martin Gerhardy
c5df2813e6 TWINE: moved defines 2021-02-25 12:50:34 +01:00
Martin Gerhardy
55e0f3afea TWINE: introduced new angle constant 2021-02-25 12:50:34 +01:00
Martin Gerhardy
99783c08a9 TWINE: render the inventory menu centered on the screen in high-res mode 2021-02-25 12:50:34 +01:00
Martin Gerhardy
8a34640538 TWINE: use color constants 2021-02-25 12:50:34 +01:00
Martin Gerhardy
8eae73031c TWINE: doxygen 2021-02-25 12:50:34 +01:00
Martin Gerhardy
7779b3e6e1 TWINE: center the info and behaviour menu 2021-02-25 12:50:34 +01:00
Martin Gerhardy
b34d716baf TWINE: reduced code duplication for drawBox 2021-02-25 12:50:34 +01:00
Martin Gerhardy
f4f82c2b35 TWINE: extracted drawInfoMenu into single methods
should make implementing the hud ui easier
2021-02-25 12:50:34 +01:00
Martin Gerhardy
ba92c33d81 TWINE: the scummvm rect is exclusive the right and bottom position
the original game treats this as inclusive. This should fix missing last lines
in the ui
2021-02-25 12:50:34 +01:00
Martin Gerhardy
c8108fbff1 TWINE: use the clipped rect in drawTransparentBox 2021-02-25 12:50:34 +01:00
Martin Gerhardy
323ca6e8e4 TWINE: check for invalid clip rect in drawBrickSprite 2021-02-25 12:50:34 +01:00
Martin Gerhardy
1b4bffe1ad TWINE: drawBubble only updates the screen if the sprite wasn't culled 2021-02-25 12:50:34 +01:00
Martin Gerhardy
b2efa1f884 TWINE: renamed variables 2021-02-25 08:24:46 +01:00
Martin Gerhardy
9ee2fdc19c TWINE: fixed compiler warning in release mode 2021-02-24 19:00:00 +01:00
Martin Gerhardy
e6f0a51cdc TWINE: handle invalid trajectory indices 2021-02-24 19:00:00 +01:00
Martin Gerhardy
6751410b91 TWINE: missing holomap partial palette update 2021-02-21 11:30:15 +01:00
Martin Gerhardy
97c163d351 TWINE: rewrite loop 2021-02-20 18:22:46 +01:00
Martin Gerhardy
51932eec27 TWINE: extract to local variable 2021-02-20 18:22:46 +01:00
Martin Gerhardy
33e983651a TWINE: optimized renderPolygonTrame 2021-02-20 18:22:46 +01:00
Martin Gerhardy
c05b3a8ac9 TWINE: optimized renderPolygonsFlat 2021-02-20 18:22:46 +01:00
Martin Gerhardy
2c94ef1f0a TWINE: optimized renderPolygonsBopper 2021-02-20 18:22:46 +01:00
Martin Gerhardy
6bf6c93cc4 TWINE: optimized renderPolygonsCopper 2021-02-20 18:22:46 +01:00
Martin Gerhardy
7b4ca38336 TWINE: optimizations by reducing calls to AnimData::loadFromBuffer 2021-02-20 18:22:46 +01:00
Martin Gerhardy
2faca6fac1 TWINE: less casting in computeBoundingBox 2021-02-20 18:22:45 +01:00
Martin Gerhardy
d3b5ee1d08 TWINE: render loop optimization for renderPolygonsGouraud 2021-02-20 18:22:45 +01:00
Martin Gerhardy
b8dc840cc7 TWINE: render loop optimization for renderPolygonsDither 2021-02-20 18:22:45 +01:00
Martin Gerhardy
e609ac4930 TWINE: minor optimization in renderer code 2021-02-20 18:22:45 +01:00
Martin Gerhardy
da2b660f6c TWINE: minor optimizations in computeBoundingBox 2021-02-20 18:22:45 +01:00
Martin Gerhardy
41067b2f04 TWINE: minor optimzations in the renderer code 2021-02-20 18:22:45 +01:00
Martin Gerhardy
02254235a0 TWINE: optimized verifyAnimAtKeyframe
... by not parsing the AnimData each time
2021-02-20 17:14:30 +01:00
Martin Gerhardy
74220cc04d TWINE: fixed warnings 2021-02-18 23:57:22 +01:00
Martin Gerhardy
cab620551e TWINE: added steam achievement support
Not all achievements are implemented yet
2021-02-18 23:52:24 +01:00
Martin Gerhardy
5670e59e3d TWINE: support dotemu enhanced edition save games 2021-02-18 23:52:24 +01:00
Martin Gerhardy
295f7e3859 TWINE: assert to check for buffer overflows 2021-02-17 22:02:38 +01:00