Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10708


Ignore:
Timestamp:
Oct 26, 2015, 4:07:58 PM (9 years ago)
Author:
meierman
Message:

HoverWall introduced

Location:
code/branches/hoverHS15
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hoverHS15/data/levels/Hover.oxw

    r10700 r10708  
    3636  <StaticEntity position="200,0,0" collisionType="static">
    3737    <attached>
    38       <Model position="0, 0,0" yaw="90" pitch="-90" roll="0" scale3D="300, 2, 30" mesh="cube_red.mesh" />
    39       <Model position="-300, 0,0" yaw="90" pitch="-90" roll="0" scale3D="300, 2, 30" mesh="cube_red.mesh" />     
    40       <Model position="-150, 0,150" yaw="90" pitch="-90" roll="0" scale3D="2, 300, 30" mesh="cube_green.mesh" />     
    41       <Model position="-150, 0,-150" yaw="90" pitch="-90" roll="0" scale3D="2, 300, 30" mesh="cube_green.mesh" />
     38      <Model position="500, 0, 0" yaw="0" pitch="0" roll="0" scale3D="500, 30, 2" mesh="cube_red.mesh" />
     39      <Model position="500, 0, 1000" yaw="0" pitch="0" roll="0" scale3D="500, 30, 2" mesh="cube_red.mesh" />     
     40      <Model position="0, 0, 500" yaw="0" pitch="0" roll="0" scale3D="2, 30, 500" mesh="cube_green.mesh" />     
     41      <Model position="1000, 0, 500" yaw="0" pitch="0" roll="0" scale3D="2, 30, 500" mesh="cube_green.mesh" />
    4242    </attached>
    4343    <collisionShapes>
    44       <BoxCollisionShape yaw="90" pitch="-90" roll="0" position="0,0,0" halfExtents="300, 2, 30" />
    45       <BoxCollisionShape yaw="90" pitch="-90" roll="0" position="-300,0,0" halfExtents="300, 2, 30" />
     44      <BoxCollisionShape yaw="0" pitch="0" roll="0" position="0,0,0" halfExtents="500, 30, 2" />
     45      <BoxCollisionShape yaw="0" pitch="0" roll="0" position="0,0,1000" halfExtents="500, 30, 2" />
     46      <BoxCollisionShape yaw="0" pitch="0" roll="0" position="0,0,500" halfExtents="2, 30, 500" />
     47      <BoxCollisionShape yaw="0" pitch="0" roll="0" position="1000,500,0" halfExtents="2, 30, 500" />
     48
    4649    </collisionShapes>
    4750  </StaticEntity>
    4851
    49   <StaticEntity position="0,-10,0" collisionType="static">
     52  <StaticEntity position="0,0,0" collisionType="static">
    5053    <attached>
    5154      <Model position="0, 0,0" yaw="0" pitch="0" roll="0" scale3D="10000, 1, 10000" mesh="CubeGround.mesh" />     
    5255    </attached>
    5356    <collisionShapes>
    54       <BoxCollisionShape yaw="0" pitch="0" roll="0" position="0,0,0" halfExtents="10000, 1, 10000" />
     57      <BoxCollisionShape yaw="0" pitch="0" roll="0" position="0,0,0" halfExtents="1, 1, 1" />
    5558    </collisionShapes>
    5659  </StaticEntity>
     
    5962   
    6063    <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"/>
    61     <SpawnPoint team=0 position="0,0,0" lookat="10,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate />
     64    <SpawnPoint team=0 position="0,100,0" lookat="100,100,0" spawnclass=SpaceShip pawndesign=spaceshippirate />
    6265   
    6366  </Scene>
  • code/branches/hoverHS15/src/modules/hover/CMakeLists.txt

    r10658 r10708  
    22Hover.cc
    33HoverShip.cc
     4HoverWall.cc
    45)
    56
     
    89  FIND_HEADER_FILES
    910  LINK_LIBRARIES
     11        objects
    1012    orxonox
    1113    overlays
  • code/branches/hoverHS15/src/modules/hover/Hover.cc

    r10664 r10708  
    3434//#include "orxonox/worldentities/pawns/SpaceShip.h"
    3535#include "Hover.h"
    36 //#include "HoverShip.h" // Necessary for getPlayer function. Do NOT include this in Header!
     36
     37#include "HoverWall.h"
    3738#include "core/CoreIncludes.h"
    3839
     
    4344    Hover::Hover(Context* context) : Gametype(context)
    4445    {
     46       
    4547        RegisterObject(Hover);
    46 
     48        new HoverWall(context);
    4749        //this->setHUDTemplate("HoverHUD");
    4850    }
     
    5254    void Hover::tick(float dt)
    5355    {
    54 
    5556        SUPER(Hover, tick, dt);
    5657    }
     
    6162    {
    6263
    63 
    6464        // Call start for the parent class.
    6565        Gametype::start();
     66
    6667    }
    6768
  • code/branches/hoverHS15/src/modules/hover/HoverPrereqs.h

    r10664 r10708  
    7070    class Hover;
    7171    class HoverShip;
     72    class HoverWall;
    7273}
    7374
Note: See TracChangeset for help on using the changeset viewer.