Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10335


Ignore:
Timestamp:
Mar 26, 2015, 3:26:26 PM (10 years ago)
Author:
erbj
Message:

tower don't shoot at the centerpoint anymore(because we shifted it by 2000,hack) and the tower and model are two different things now

Location:
code/branches/towerdefenseFS15
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseFS15/data/levels/templates/enemytowerdefense.oxt

    r10262 r10335  
    167167   maxhealth         = 200
    168168   initialhealth     = 100
    169 
     169   
    170170   shieldhealth        = 30
    171171   initialshieldhealth = 30
  • code/branches/towerdefenseFS15/data/levels/templates/towerdefensetower.oxt

    r10325 r10335  
    2020 
    2121     <controller>
    22      <TurretController/>
     22     <TurretController team = 1/>
    2323  </controller>
    2424 
     
    2626  <attached>
    2727       
    28     <Model position="0,0,0" scale=45 mesh="Tower.mesh" />
    29     <Turret
     28    <!--Turret
    3029   
    3130    explosionchunks        = 6
     
    4544               
    4645               
    47         </Turret>
     46        </Turret-->
    4847  </attached>
    4948   
  • code/branches/towerdefenseFS15/data/levels/towerDefense.oxw

    r10325 r10335  
    2929  <Pawn team=1>
    3030    <camerapositions>
    31       <CameraPosition position="0,0,1500"/>
     31      <CameraPosition position="-2000,0,1500"/>
    3232    </camerapositions>
    3333  </Pawn>
     
    5959
    6060    <!-- Spawns the camera, attached to a crate -->
    61     <SpawnPoint team=1 position="0,0,0" spawnclass=Pawn pawndesign=centerpointmark />
     61    <SpawnPoint team=1 position="2000,0,0" pawndesign=centerpointmark />
    6262    <!--TeamSpawnPoint team=1 position="-7,7,4" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
    6363
     
    6969
    7070    <!--invisible entity to attach towers to, since playfield is static and towers are dynamic-->
    71     <StaticEntity team =1 position=0,0,0>
     71    <StaticEntity position=0,0,0>
    7272
    7373        <attached>
     
    105105    collisionType=dynamic
    106106    mass=100000
    107     team=1
    108107    />
    109108
  • code/branches/towerdefenseFS15/src/modules/towerdefense/TowerDefense.cc

    r10325 r10335  
    154154        //set initial credits, lifes and WaveNumber
    155155        this->setCredit(1000);
    156         this->setLifes(25);
     156        this->setLifes(100);
    157157        this->setWaveNumber(0);
    158158        time=0.0;
     
    194194        }
    195195
     196        en1->setTeam(2);
    196197        en1->getController();
    197198        en1->setPosition(path.at(0)->get3dcoordinate());
     
    276277        towermatrix [x][y]=true;
    277278
     279        //Create Model
     280        Model* newtowermodel = new Model(this->center_->getContext());
     281        newtowermodel->setMeshSource("Tower.mesh");
     282        newtowermodel->setScale(45);
     283        newtowermodel->setPosition(static_cast<float>((x-8) * tileScale), static_cast<float>((y-8) * tileScale), 50);
     284
     285
     286
    278287        //Creates tower
    279288        TowerDefenseTower* towernew = new TowerDefenseTower(this->center_->getContext());
    280         towernew->setPosition(static_cast<float>((x-8) * tileScale), static_cast<float>((y-8) * tileScale), 75);
     289        towernew->setPosition(static_cast<float>((x-8) * tileScale), static_cast<float>((y-8) * tileScale), 275);
    281290        towernew->setGame(this);
     291        towernew->setTeam(1);
    282292    }
    283293
  • code/branches/towerdefenseFS15/src/modules/towerdefense/TowerDefenseTower.cc

    r10325 r10335  
    4141    }
    4242
     43    /*
    4344    void TowerDefenseTower::setOrientation(const Quaternion& orientation)
    4445    {
     
    5657    {
    5758    }
     59    */
    5860
    5961    bool TowerDefenseTower::upgradeTower()
  • code/branches/towerdefenseFS15/src/modules/towerdefense/TowerDefenseTower.h

    r10319 r10335  
    3838
    3939        // Overriding these to stop TowerDefenseTowers from spasing out
     40        /*
    4041        void setOrientation(const Quaternion& orientation);
    4142        virtual void rotateYaw(const Vector2& value);
    4243        virtual void rotatePitch(const Vector2& value);
    4344        virtual void rotateRoll(const Vector2& value);
     45        */
    4446        virtual bool upgradeTower();
    4547
  • code/branches/towerdefenseFS15/src/orxonox/controllers/FormationController.cc

    r9800 r10335  
    956956    bool FormationController::sameTeam(ControllableEntity* entity1, ControllableEntity* entity2, Gametype* gametype)
    957957    {
     958
     959
    958960        if (entity1 == entity2)
    959961            return true;
Note: See TracChangeset for help on using the changeset viewer.