Commit Graph

25 Commits

Author SHA1 Message Date
Torbjörn Andersson
49e96aa188 TOLTECS: Improve the shake screen effects during movies
I don't know how often the original shook the screen (perhaps as
often as it could?), but at least we now have the opportunity to
shake the screen more than once per movie frame.
2012-10-06 00:01:47 +02:00
Johannes Schickel
89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Alex Bevilacqua
b592d73e62 TOLTECS: silence a couple gcc warnings 2011-11-20 22:43:12 +01:00
Filippos Karapetis
e9dc055089 TOLTECS: Reduced header dependencies 2011-11-20 22:43:10 +01:00
Benjamin Haisch
1cb95f36e7 TOLTECS: - More work on the menu system, saving and loading from there is now possible
- Add blastSprite method which draws a sprite directly to the frontScreen without the renderQueue
- Add F10 scancode in sfHandleInput to open the menu
2011-11-20 22:43:10 +01:00
Benjamin Haisch
ce7f9a088c TOLTECS: - Work on the menu system (use strings from resources instead of hardcoded ones)
- ...and load the system strings from the resource on startup
- Only redraw menu screen when required
- Change parameters for some text functions from byte* to const byte*
- Rename some mouse vars
2011-11-20 22:43:10 +01:00
Filippos Karapetis
89a5208a58 TOLTECS: Fixed compilation with the latest trunk changes.
This change also unveiled a serious problem: the same include files are used EVERYWHERE (e.g. code manipulating the screen is using sound includes). Added a FIXME concerning this
2011-11-20 22:43:09 +01:00
Benjamin Haisch
3d0775bd89 TOLTECS: More work on the menu 2011-11-20 22:43:08 +01:00
Benjamin Haisch
4b13982116 TOLTECS: Implemented preliminary sound playback; some stuff is still missing (correct volumes etc.) 2011-11-20 22:43:07 +01:00
Benjamin Haisch
7b97e8cd93 TOLTECS: A lot of changes in the graphics code:
- Optimized drawing code; now only items (sprites, text, screen masks) which have changed from the previous frame are redrawn, this speeds up things a lot
- Implemented dirty rectangles using a microtile array
- The previously committed Microtile Array implementation from SEL seemed buggy so I wrote my own version which works nicely so far (and is less code and GPL), only MicroTileArray::getRectangles uses parts from the old version, this will be changed later
- One known bug related to dirty rectangles remains: Sometimes the background isn't restored correctly and gfx artifacts are visible
2011-11-20 22:43:06 +01:00
Benjamin Haisch
150e555953 TOLTECS: Renamed ybottom to priority 2011-11-20 22:43:06 +01:00
Benjamin Haisch
ade8eec8cf TOLTECS: Moved sprite drawing code to sprite.cpp 2011-11-20 22:43:06 +01:00
Benjamin Haisch
ca49ded9b3 TOLTECS: More changes to wrapGuiText 2011-11-20 22:43:06 +01:00
Benjamin Haisch
3c47914648 TOLTECS: Removed _tempString etc. and replaced it with GuiTextWrapState 2011-11-20 22:43:06 +01:00
Benjamin Haisch
20d60e6286 TOLTECS: Renamed some functions. 2011-11-20 22:43:06 +01:00
Benjamin Haisch
aaded0f546 TOLTECS: Added Screen::getTextWidth 2011-11-20 22:43:06 +01:00
Benjamin Haisch
a94503765d TOLTECS: - Fixed setDeltaPalette (sprites at night now look correct)
- Renamed TalkTextItem.rects/rectCount to lines/lineCount
- Workaround for font glitch in updateTalkText (text sets invalid font number)
2011-11-20 22:43:06 +01:00
Benjamin Haisch
6a83d7d851 TOLTECS: Cancel all talkText items when camera position is changed (fixes some crashes and odd behaviour) 2011-11-20 22:43:06 +01:00
Benjamin Haisch
367be5b345 TOLTECS: Merged text drawing routines into drawString 2011-11-20 22:43:06 +01:00
Benjamin Haisch
59bbad2ac8 TOLTECS: Fixed clipping (the clipping of the right border with flipped sprites was buggy) 2011-11-20 22:43:05 +01:00
Benjamin Haisch
5660ff5148 TOLTECS: Implemented buildColorTransTable (still TODO) and shadow sprite drawing. 2011-11-20 22:43:05 +01:00
Benjamin Haisch
98ac7885ac TOLTECS: Merged drawChar and drawChar2 2011-11-20 22:43:05 +01:00
Benjamin Haisch
dd5567613f TOLTECS: - Renamed stuff and cleanups
- Beginnings of the saveload system (incomplete)
2011-11-20 22:43:05 +01:00
Benjamin Haisch
f4e156b3b3 TOLTECS: Fixed tabs and formatting. 2011-11-20 22:43:05 +01:00
Eugene Sandulenko
7c2835313e TOLTECS: Initial checkin 2011-11-20 22:43:05 +01:00