Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2017, 5:39:48 PM (7 years ago)
Author:
fanconic
Message:

Changes in the Cameraorientation aswell as new objects inside the level

Location:
code/branches/CampaignMap_HS17
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • code/branches/CampaignMap_HS17/data/levels/NC_StoryModeLevel.oxw

    r11634 r11663  
    2828  >
    2929
    30   <SpawnPoint position="000.000, 000.000, 1000.000" spawnclass=StoryModePawn orientation="0, 0, 0, 1" pawndesign= StoryModeEscort />
    31    
     30  <SpawnPoint position="000.000, 000.000, 000.000" spawnclass=StoryModePawn orientation="0, 0, 0, 1" pawndesign=StoryModeEscort />
    3231
    33  <StoryModePlanet levelName="plizzanet1" position="0,0,0" direction="0,0,0">
     32 <StoryModePlanet levelName="Level 1" position="0,0,-500" direction="1,0,0">
    3433  <attached>
    35     <Model position="0,0,0" mesh="planets/moon.mesh" scale=100 />
     34    <Model position="0,0,0" mesh="ETH.mesh" scale=80 />
    3635  </attached>
    3736 </StoryModePlanet>
    3837
    39 <StoryModePlanet levelName="plizzanet2" position="600,0,0" direction="0,0,0">
     38<StoryModePlanet levelName="Level 2" position="500,0,-1000" direction="0,0,0">
    4039  <attached>
    41     <Model position="0,0,0" mesh="planets/moon.mesh" scale=100 />
     40    <Model position="0,0,0" mesh="planets/moon.mesh" scale=50 />
    4241  </attached>
    4342 </StoryModePlanet>
    4443   
    45 <StoryModePlanet levelName="plizzanet3" position="1200,0,0" direction="0,0,0">
     44<StoryModePlanet levelName="Level 3" position="-500,0,-1000" direction="0,1,0">
    4645  <attached>
    47     <Model position="0,0,0" mesh="planets/moon.mesh" scale=100 />
     46    <Model position="0,0,0" mesh="can.mesh" scale=50 />
    4847  </attached>
    4948</StoryModePlanet>
     49
     50<StoryModePlanet levelName="Level 4" position="1000,0,-1500" direction="0,0,0">
     51  <attached>
     52    <Model position="0,0,0" mesh="cube.mesh" scale=50 />
     53  </attached>
     54 </StoryModePlanet>
     55
     56 <StoryModePlanet levelName="Level 5" position="-1000,0,-1500" direction="0,0,0">
     57  <attached>
     58    <Model position="0,0,0" mesh="Pilz.mesh" scale=50 />
     59  </attached>
     60 </StoryModePlanet>
     61
    5062 
    5163  </Scene>
  • code/branches/CampaignMap_HS17/data/levels/templates/StoryModeEscort.oxt

    r11634 r11663  
    22  <StoryModePawn
    33   hudtemplate            = StoryModeHUD2
    4    camerapositiontemplate = spaceshipghostcameras
     4   camerapositiontemplate = spaceshipescortcameras
    55   spawnparticlesource    = "Orxonox/fairytwirl"
    66   spawnparticleduration  = 3
     
    7777  <StoryModePawn>
    7878    <camerapositions>
    79       <CameraPosition position="0,0, 1000" drag=true mouselook=true />
    80       <CameraPosition position="0,20, 90" drag=true mouselook=true />
    81       <CameraPosition position="0,30,120" drag=true mouselook=true />
     79      <CameraPosition position="0, 500, 400" drag=true mouselook=false />
     80      <CameraPosition position="0,20, 90" drag=true mouselook=false />
     81      <CameraPosition position="0,30,120" drag=true mouselook=false />
    8282    </camerapositions>
    8383  </StoryModePawn>
  • code/branches/CampaignMap_HS17/src/modules/overlays/hud/StoryModeHUD.cc

    r11605 r11663  
    5454#include "core/config/ConfigValueIncludes.h"
    5555#include "tools/TextureGenerator.h"
     56#include "controllers/NewHumanController.h"
    5657
    5758#include "worldentities/StoryModePlanet.h"
     
    9192        float yScale = this->getActualSize().y;
    9293
    93        
     94        //Sets the Camera angle at 30 degrees above it, so levels can be seen better   
     95        CameraManager::getInstance().getActiveCamera()->setOrientation(Vector3::UNIT_X, Degree(-30));
     96
    9497        int i = 0;
    9598        for(StoryModePlanet* planet : ObjectList<StoryModePlanet>()){
     
    101104            texts.push_back(text);
    102105            texts[i]->setDimensions(xScale, yScale);
    103 
    104             //PROBLEM: function doesn't get called automatically by the xml macro,
    105             //which is why we need to call it manually here. works with storymodeplanet.h...
    106             //this->setFont("Monofur");
    107             //this->setTextSize(0.05f);
    108106
    109107            //font name of the text needs to be set here, not in the xml setter function
  • code/branches/CampaignMap_HS17/src/orxonox/gametypes/StoryMode.cc

    r11507 r11663  
    3131#include "items/Engine.h"
    3232#include "controllers/ArtificialController.h"
     33#include "controllers/NewHumanController.h"
    3334
    3435#include "core/CoreIncludes.h"
     
    4849    {
    4950        RegisterObject(StoryMode);
     51        orxout() << "kill yourself1";
    5052
    5153        this->gtinfo_ = new GametypeInfo(context);
     
    6567    void StoryMode::exit()
    6668    {
    67         orxout() << "s funktioniert"<< endl;
    6869        for (StoryMode* mission : ObjectList<StoryMode>())
    6970        { //TODO: make sure that only the desired mission is ended !! This is a dirty HACK, that would end ALL missions!
     
    7273        //Gametype::end();
    7374    }
     75
    7476/*
    7577    void Mission::setTeams()
  • code/branches/CampaignMap_HS17/src/orxonox/gametypes/StoryMode.h

    r11359 r11663  
    4141            virtual ~StoryMode() {}
    4242            static void exit();
     43//            virtual void playerEntered(PlayerInfo* player);
    4344
    4445           
  • code/branches/CampaignMap_HS17/src/orxonox/worldentities/pawns/StoryModePawn.cc

    r11634 r11663  
    5353    void StoryModePawn::moveFrontBack(const Vector2& value)
    5454        {
     55            //this->getCamera()->setOrientation(Vector3::UNIT_X, Degree(-30));
    5556            Vector3 newPos = this->getCamera()->getPosition();
    56             newPos.y += value.x;
     57            newPos.z -= 5*value.x;
    5758            this->getCamera()->setPosition(newPos);
    5859        }
     
    6162        {   
    6263            Vector3 newPos = this->getCamera()->getPosition();
    63             newPos.x += value.x;
     64            newPos.x += 5*value.x;
    6465            this->getCamera()->setPosition(newPos);
    6566        }
  • code/branches/CampaignMap_HS17/src/orxonox/worldentities/pawns/StoryModePawn.h

    r11634 r11663  
    2121 *
    2222 *   Author:
    23  *      Cyrill Burgener
     23 *      Claudio Fanconi & Nikola Bolt
    2424 *
    2525 */
Note: See TracChangeset for help on using the changeset viewer.