Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.