Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9122 for code


Ignore:
Timestamp:
Apr 27, 2012, 2:49:43 PM (13 years ago)
Author:
mentzerf
Message:

Updated oxw and added method call to spawnEnemy

Location:
code/branches/newlevel2012
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/newlevel2012/data/levels/towerDefense.oxw

    r9116 r9122  
    3030  <Pawn>
    3131    <camerapositions>
    32       <CameraPosition position="-200,0,250" absolute=true />
     32      <CameraPosition position="-100,0,250" absolute=true />
    3333    </camerapositions>
    3434  </Pawn>
     
    6464    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
    6565    <!--SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /-->
    66     <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=Pawn pawndesign=playfield />
     66    <SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=Pawn pawndesign=playfield />
    6767 
    6868
  • code/branches/newlevel2012/src/modules/towerdefense/TowerDefense.cc

    r9117 r9122  
    5656
    5757#include "TowerDefense.h"
     58#include "worldentities/SpawnPoint.h"
     59#include "worldentities/pawns/Pawn.h"
    5860
    5961namespace orxonox
     
    9395            {
    9496                orxout()<< "First tick." <<endl;
     97                spawnEnemy();
    9598            }
    9699            test = true;
  • code/branches/newlevel2012/src/modules/towerdefense/TowerDefense.h

    r9117 r9122  
    4444            //virtual void end();
    4545            virtual void tick(float dt);
    46          //   virtual void playerEntered(PlayerInfo* player);
     46            //virtual void playerEntered(PlayerInfo* player);
    4747            //virtual bool playerLeft(PlayerInfo* player);
    4848
     
    5050            //virtual void playerScored(PlayerInfo* player);
    5151                private:
    52                                 void TowerDefense::spawnEnemy();
     52                                void spawnEnemy();
    5353    };
    5454}
Note: See TracChangeset for help on using the changeset viewer.