Changeset 321


Ignore:
Timestamp:
Jan 31, 2011, 5:11:22 PM (11 years ago)
Author:
sam
Message:

Prepare the code architecture for the title screen animations.

Location:
trunk
Files:
16 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/Makefile.am

    r317 r321  
    33
    44monsterz_SOURCES = \
    5     monsterz.cpp monsterz.h \
     5    monsterz.cpp monsterz.h title.cpp title.h \
    66    board.cpp board.h piece.cpp piece.h mash.cpp mash.h
    77monsterz_CXXFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
     
    1212
    1313PNG = gfx/background.png gfx/board.png gfx/logo.png gfx/tiles.png \
    14       gfx/font1.png gfx/font2.png
     14      gfx/font1.png gfx/font2.png gfx/title0.png \
     15      gfx/titleanim0.png gfx/titleanim1.png gfx/titleanim2.png \
     16      gfx/titleanim3.png gfx/titleanim4.png gfx/titleanim5.png \
     17      gfx/titleevent0.png gfx/titleevent1.png gfx/titleevent2.png \
     18      gfx/titleevent3.png gfx/titleevent4.png gfx/titleevent5.png \
     19      gfx/titleevent6.png
    1520WAV = sound/applause.wav sound/boing.wav sound/click.wav sound/ding.wav \
    1621      sound/duh.wav sound/grunt.wav sound/laugh.wav sound/pop.wav \
  • trunk/monsterz/monsterz.cpp

    r315 r321  
    2323#include "core.h"
    2424#include "sdlinput.h"
     25#include "title.h"
    2526#include "board.h"
    2627
     
    6263    /* Register an input driver and some debug stuff */
    6364    new SdlInput();
    64     new Board(int2(8, 8), 9);
     65    //new Board(int2(8, 8), 9);
     66    new Title();
    6567    new DebugFps(460, 20);
    6668
  • trunk/monsterz/monsterz.h

    r320 r321  
    1616static char const * const PNG_TILES = "monsterz/gfx/tiles.png";
    1717static char const * const PNG_ICONS = "monsterz/gfx/icons.png";
     18static char const * const PNG_TITLE = "monsterz/gfx/title0.png";
     19static char const * const PNG_TITLEANIM[] =
     20{
     21    "monsterz/gfx/titleanim0.png",
     22    "monsterz/gfx/titleanim1.png",
     23    "monsterz/gfx/titleanim2.png",
     24    "monsterz/gfx/titleanim3.png",
     25    "monsterz/gfx/titleanim4.png",
     26    "monsterz/gfx/titleanim5.png",
     27};
     28static char const * const PNG_TITLEEVENT[] =
     29{
     30    "monsterz/gfx/titleevent0.png",
     31    "monsterz/gfx/titleevent1.png",
     32    "monsterz/gfx/titleevent2.png",
     33    "monsterz/gfx/titleevent3.png",
     34    "monsterz/gfx/titleevent4.png",
     35    "monsterz/gfx/titleevent5.png",
     36    "monsterz/gfx/titleevent6.png",
     37};
    1838
    1939static char const * const WAV_CLICK = "monsterz/sound/click.wav";
  • trunk/win32/monsterz.vcxproj

    r315 r321  
    1616    <ClInclude Include="..\monsterz\monsterz.h" />
    1717    <ClInclude Include="..\monsterz\piece.h" />
     18    <ClInclude Include="..\monsterz\title.h" />
    1819    <ClInclude Include="..\src\audio.h" />
    1920    <ClInclude Include="..\src\bitfield.h" />
     
    5253    <ClCompile Include="..\monsterz\monsterz.cpp" />
    5354    <ClCompile Include="..\monsterz\piece.cpp" />
     55    <ClCompile Include="..\monsterz\title.cpp" />
    5456    <ClCompile Include="..\src\audio.cpp" />
    5557    <ClCompile Include="..\src\debugfps.cpp" />
  • trunk/win32/monsterz.vcxproj.filters

    r315 r321  
    9090    <ClInclude Include="..\monsterz\board.h" />
    9191    <ClInclude Include="..\monsterz\piece.h" />
     92    <ClInclude Include="..\monsterz\title.h" />
    9293    <ClInclude Include="..\src\sampler.h">
    9394      <Filter>lolengine</Filter>
     
    175176    <ClCompile Include="..\monsterz\monsterz.cpp" />
    176177    <ClCompile Include="..\monsterz\piece.cpp" />
     178    <ClCompile Include="..\monsterz\title.cpp" />
    177179    <ClCompile Include="..\src\sampler.cpp">
    178180      <Filter>lolengine</Filter>
Note: See TracChangeset for help on using the changeset viewer.