Changeset 339 for trunk/monsterz


Ignore:
Timestamp:
Feb 3, 2011, 2:28:45 AM (10 years ago)
Author:
sam
Message:

Start working on a new gameplay, codenamed "Fusion".

Location:
trunk/monsterz
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/Makefile.am

    r331 r339  
    44monsterz_SOURCES = \
    55    monsterz.cpp monsterz.h title.cpp title.h interface.cpp interface.h \
    6     board.cpp board.h piece.cpp piece.h mash.cpp mash.h
     6    fusion.cpp fusion.h board.cpp board.h piece.cpp piece.h mash.cpp mash.h
    77monsterz_CXXFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
    88monsterz_LDADD = $(top_builddir)/src/liblol.a
  • trunk/monsterz/interface.cpp

    r332 r339  
    2222#include "title.h"
    2323#include "board.h"
     24#include "fusion.h"
    2425#include "monsterz.h"
    2526
     
    3536    Title *title;
    3637    Board *board;
     38    Fusion *fusion;
    3739    int screen, tiles;
    3840
     
    5557    data->title = NULL;
    5658    data->board = NULL;
     59    data->fusion = NULL;
    5760    data->screen = Tiler::Register(PNG_BACKGROUND, 640, 480, 1.0f);
    5861    data->tiles = Tiler::Register(PNG_TILES, 48, 48, 1.0f);
     
    8083            Ticker::Unref(data->title);
    8184            data->title = NULL;
    82             data->board = new Board(int2(8, 8), 9);
     85            data->fusion = new Fusion(int2(6, 8), 8);
     86            Ticker::Ref(data->fusion);
     87#if 0
     88            data->board = new Board(int2(8, 8), 8);
    8389            Ticker::Ref(data->board);
     90#endif
    8491            data->state = InterfaceData::GAME;
    8592        }
     
    111118    if (data->board)
    112119        Ticker::Unref(data->board);
     120    if (data->fusion)
     121        Ticker::Unref(data->fusion);
    113122    Tiler::Deregister(data->tiles);
    114123    Tiler::Deregister(data->screen);
Note: See TracChangeset for help on using the changeset viewer.