aboutsummaryrefslogtreecommitdiff
path: root/engines/draci
diff options
context:
space:
mode:
authorDenis Kasak2009-07-03 16:29:56 +0000
committerDenis Kasak2009-07-03 16:29:56 +0000
commitb232202b3383b44407d24101cb175e4190f851b4 (patch)
tree64f667491b04a9a4d7f8d6171405f9cd92992117 /engines/draci
parent8bba3e6f10ce68dd9615ab7340fb0c54b3f61e1a (diff)
downloadscummvm-rg350-b232202b3383b44407d24101cb175e4190f851b4.tar.gz
scummvm-rg350-b232202b3383b44407d24101cb175e4190f851b4.tar.bz2
scummvm-rg350-b232202b3383b44407d24101cb175e4190f851b4.zip
Removed demo code so I can start working on the real intro.
svn-id: r42063
Diffstat (limited to 'engines/draci')
-rw-r--r--engines/draci/draci.cpp79
1 files changed, 1 insertions, 78 deletions
diff --git a/engines/draci/draci.cpp b/engines/draci/draci.cpp
index ba6d10e816..295314f044 100644
--- a/engines/draci/draci.cpp
+++ b/engines/draci/draci.cpp
@@ -87,6 +87,7 @@ int DraciEngine::init() {
_game = new Game(this);
_script = new Script();
+
// Load default font
_font->setFont(kFontBig);
@@ -132,84 +133,6 @@ int DraciEngine::go() {
debugC(2, kDraciGeneralDebugLevel, "Running graphics/animation test...");
- BAFile *f;
-
- f = _paletteArchive->getFile(0);
-
- _screen->setPalette(f->_data, 0, kNumColours);
-
- // Fill screen with light grey
- _screen->fillScreen(225);
-
- // Draw big string
-
- Surface *surf = _screen->getSurface();
- uint16 xpos;
- uint16 ypos;
-
- Common::String testString = "Testing, testing, read all about it!";
- xpos = (kScreenWidth - _font->getStringWidth(testString, 1)) / 2;
- ypos = 130;
- Text txt(testString, _font, kFontColour1, xpos, ypos, 0, 1);
-
- txt.draw(surf);
-
- // Draw small string
- _font->setFont(kFontSmall);
- testString = "I'm smaller than the font above me.";
- xpos = (kScreenWidth - _font->getStringWidth(testString, 1)) / 2;
- ypos += 20;
- txt.setText(testString);
- txt.setX(xpos);
- txt.setY(ypos);
-
- txt.draw(surf);
-
- // Overflow handling test
- testString = "Checking overflooooooooooooooooooooooooow...";
- xpos = 50;
- ypos += 20;
- txt.setText(testString);
- txt.setX(xpos);
- txt.setY(ypos);
-
- txt.draw(surf);
-
- _screen->copyToScreen();
-
- // Draw and animate the dragon
-
- testString = "I'm transparent";
- xpos = (kScreenWidth - _font->getStringWidth(testString, 1)) / 2;
- ypos = 80;
- txt.setText(testString);
- txt.setColour(kDefaultTransparent);
- txt.setX(xpos);
- txt.setY(ypos);
-
- for (unsigned int t = 0; t < 25; ++t) {
- debugC(5, kDraciGeneralDebugLevel, "Drawing frame %d...", t);
-
- // Load frame to memory
- f = _spritesArchive->getFile(t);
- Sprite sp(f->_data, f->_length, ((kScreenWidth - 50) / 2), 60, 0);
-
- // Delete previous frame
- Common::Rect r(sp.getX(), sp.getY(), sp.getX() + sp.getWidth(), sp.getY() + sp.getHeight());
- _screen->drawRect(r, 225);
-
- // Draw dragon
- sp.draw(surf);
-
- // Draw transparent text over dragon
- txt.draw(surf);
-
- _screen->copyToScreen();
- _system->delayMillis(100);
-
- debugC(5, kDraciGeneralDebugLevel, "Finished frame %d", t);
- }
-
_mouse->setCursorType(kNormalCursor);
_mouse->cursorOn();