Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 12364 for code


Ignore:
Timestamp:
May 9, 2019, 4:22:55 PM (5 years ago)
Author:
jeromela
Message:

orxoblox.oxw: Auskommentiert, orxobloxball.cc: mauskoordinaten auslesen.

Location:
code/branches/OrxoBlox_FS19
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/data/levels/orxoblox.oxw

    r12361 r12364  
    1919?>
    2020
    21 <Template name=OrxoBloxbatcameras defaults=0>
     21<!--Template name=OrxoBloxbatcameras defaults=0>
    2222  <OrxoBloxBat>
    2323    <camerapositions>
     
    2828    </camerapositions>
    2929  </OrxoBloxBat>
    30 </Template>
     30</Template-->
    3131
    3232<Template name=OrxoBloxball>
     
    9797  >
    9898    <!-- <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"/> -->
    99     <Light type=directional position="-100, 10000, -700" lookat="0.2, -1, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
     99    <Light type=directional position="-100, 10000, -700" direction="0.2, -1, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
    100100    <SpawnPoint team=0 position="0,150,0" lookat="0,0,0" spawnclass= Asteroids2DShip />
    101101
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxBall.cc

    r12361 r12364  
    4545#include "sound/WorldSound.h"
    4646#include "core/XMLPort.h"
     47#include "core/input/InputManager.h"
    4748
    4849
     
    165166                //Input new speed here:
    166167                //ChatManager::message("Setting new speed");
    167 
     168               
     169                //%%%%%%%%%%%%
     170                //MAUSPOSITION
     171                //%%%%%%%%%%%%
     172                //Reads current mouse position
     173                //TODO: read Mouse position on click!
     174                //int mousex = InputManager::getInstance().getMousePosition().first;
     175                //int mousey = InputManager::getInstance().getMousePosition().second;
     176                //ChatManager::message("Read mouse position");
     177                //orxout() << "Mouseposition" << endl;
     178                //orxout() << mousex << endl;
     179                //ChatManager::message(mousex);
     180                //ChatManager::message("mousey");
     181                //ChatManager::message(mousey);
    168182                //Set new speed here!!
    169183                velocity.x = rnd(-100,100);
    170                 velocity.z = rnd(-10,-100);
    171                
     184                velocity.z = rnd(-50,-100);
    172185               
    173186
Note: See TracChangeset for help on using the changeset viewer.