Changeset 1366


Ignore:
Timestamp:
May 11, 2012, 6:21:33 PM (7 years ago)
Author:
sam
Message:

orbital: new snake enemy.

Location:
trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/Makefile.am

    r1344 r1366  
    33
    44orbital_SOURCES = \
    5     orbital.cpp orbital.h mesh.h particlesystem.h tank.h player.h
     5    orbital.cpp orbital.h mesh.h particlesystem.h tank.h player.h \
     6    snake.h starfield.h
    67orbital_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
    78orbital_LDADD =
  • trunk/orbital/orbital.cpp

    r1364 r1366  
    113113    }
    114114
     115    m_snake = new Snake();
     116    Ticker::Ref(m_snake);
     117
    115118    /* Add player */
    116119    for (int i = 0; i < 2; i++)
     
    203206    for (int i = 0; i < m_players.Count(); i++)
    204207        Ticker::Unref(m_players[i]);
     208    Ticker::Unref(m_snake);
    205209    //Ticker::Unref(m_particlesystem);
    206210    Ticker::Unref(m_small_stars);
  • trunk/orbital/orbital.h

    r1364 r1366  
    1212#include "starfield.h"
    1313#include "tank.h"
     14#include "snake.h"
    1415#include "player.h"
    1516
     
    3738    Array<Player *> m_players;
    3839    Array<Tank *> m_tanks;
     40    Snake *m_snake;
    3941
    4042    bool m_ready;
  • trunk/win32/orbital.vcxproj

    r1363 r1366  
    3333    <ClInclude Include="..\orbital\particlesystem.h" />
    3434    <ClInclude Include="..\orbital\player.h" />
     35    <ClInclude Include="..\orbital\snake.h" />
    3536    <ClInclude Include="..\orbital\starfield.h" />
    3637    <ClInclude Include="..\orbital\tank.h" />
  • trunk/win32/orbital.vcxproj.filters

    r1363 r1366  
    77    <ClInclude Include="..\orbital\tank.h" />
    88    <ClInclude Include="..\orbital\starfield.h" />
     9    <ClInclude Include="..\orbital\snake.h" />
    910  </ItemGroup>
    1011  <ItemGroup>
Note: See TracChangeset for help on using the changeset viewer.