/dports/games/cosmosmash/cosmosmash-1.4.8/src/ |
H A D | AutoController.h | 36 playerPos(), in AutoController() 99 playerPos = pos; in setPlayerPos() 104 flatzebra::Couple delta = playerPos - pos; in addRockPos() 127 flatzebra::Couple delta = playerPos - pos; in addPulsarPos() 147 goLeft = playerPos.x <= closestRockPos.x; in endGameState() 155 goLeft = playerPos.x > lowestSpinnerPos.x; in endGameState() 156 goRight = playerPos.x < lowestSpinnerPos.x; in endGameState() 162 goLeft = closestRockPos.y >= 0 && playerPos.x > closestRockPos.x; in endGameState() 163 goRight = closestRockPos.y >= 0 && playerPos.x < closestRockPos.x; in endGameState() 171 flatzebra::Couple playerPos; variable
|
/dports/games/warzone2100/warzone2100/src/ |
H A D | bucket3d.cpp | 81 position.x = position.x - playerPos.p.x; in bucketCalculateZ() 82 position.z = -(position.z - playerPos.p.z); in bucketCalculateZ() 114 position.x = psSimpObj->pos.x - playerPos.p.x; in bucketCalculateZ() 115 position.z = -(psSimpObj->pos.y - playerPos.p.z); in bucketCalculateZ() 137 position.x = psSimpObj->pos.x - playerPos.p.x; in bucketCalculateZ() 138 position.z = -(psSimpObj->pos.y - playerPos.p.z); in bucketCalculateZ() 170 position.x = psSimpObj->pos.x - playerPos.p.x; in bucketCalculateZ() 171 position.z = -(psSimpObj->pos.y - playerPos.p.z); in bucketCalculateZ() 194 position.x = psSimpObj->pos.x - playerPos.p.x; in bucketCalculateZ() 195 position.z = -(psSimpObj->pos.y - playerPos.p.z); in bucketCalculateZ() [all …]
|
H A D | warcam.cpp | 539 const int angle = 90 - abs((playerPos.r.x / 182) % 90); in updateCameraAcceleration() 843 playerPos.p.x = trackingCamera.position.x; in camTrackCamera() 844 playerPos.p.y = trackingCamera.position.y; in camTrackCamera() 845 playerPos.p.z = trackingCamera.position.z; in camTrackCamera() 848 playerPos.r.x = trackingCamera.rotation.x; in camTrackCamera() 849 playerPos.r.y = trackingCamera.rotation.y; in camTrackCamera() 850 playerPos.r.z = trackingCamera.rotation.z; in camTrackCamera() 853 if (playerPos.r.x > DEG(360 + MAX_PLAYER_X_ANGLE)) in camTrackCamera() 855 playerPos.r.x = DEG(360 + MAX_PLAYER_X_ANGLE); in camTrackCamera() 952 auto initialPosition = Vector3f(playerPos.p); in requestRadarTrack() [all …]
|
H A D | atmos.cpp | 88 if (psPart->position.x < playerPos.p.x - world_coord(visibleTiles.x) / 2) in testParticleWrap() 94 else if (psPart->position.x > (playerPos.p.x + world_coord(visibleTiles.x) / 2)) in testParticleWrap() 100 if (psPart->position.z < playerPos.p.z - world_coord(visibleTiles.y) / 2) in testParticleWrap() 106 else if (psPart->position.z > (playerPos.p.z + world_coord(visibleTiles.y) / 2)) in testParticleWrap() 282 pos.x = playerPos.p.x; in atmosUpdateSystem() 283 pos.z = playerPos.p.z; in atmosUpdateSystem() 339 dv.x = psPart->position.x - playerPos.p.x; in renderParticle() 341 dv.z = -(psPart->position.z - playerPos.p.z); in renderParticle() 345 glm::rotate(UNDEG(-playerPos.r.y), glm::vec3(0.f, 1.f, 0.f)) * in renderParticle() 346 glm::rotate(UNDEG(-playerPos.r.x), glm::vec3(0.f, 1.f, 0.f)) * in renderParticle()
|
H A D | aud.cpp | 60 pos.x = playerPos.p.x; in audio_GetPlayerPos() 61 pos.y = playerPos.p.z; in audio_GetPlayerPos() 62 pos.z = playerPos.p.y; in audio_GetPlayerPos() 76 *angle = ((float) playerPos.r.y / DEG_1) * M_PI / 180.0f; in audio_Get3DPlayerRotAboutVerticalAxis()
|
H A D | display.cpp | 240 playerPos.r.z = 0; in shakeStop() 258 playerPos.r.z = 0; in shakeUpdate() 265 playerPos.r.z = 0; in shakeUpdate() 374 playerPos.r.y = 0; in ProcessRadarInput() 1085 playerPos.p.x += xDif; in handleCameraScrolling() 1086 playerPos.p.z += yDif; in handleCameraScrolling() 1161 playerPos.p.x = xp; in CheckScrollLimits() 1162 playerPos.p.z = zp; in CheckScrollLimits() 1222 pos.x = playerPos.r.x; in displayWorld() 1223 pos.y = playerPos.r.y; in displayWorld() [all …]
|
H A D | keybind.cpp | 316 playerPos.r.y = DEG(180); in kf_FaceSouth() 326 playerPos.r.y = DEG(90); in kf_FaceEast() 336 playerPos.r.y = DEG(270); in kf_FaceWest() 956 playerPos.r.y += rotAmount; in kf_RotateLeft() 965 playerPos.r.y -= rotAmount; in kf_RotateRight() 966 if (playerPos.r.y < 0) in kf_RotateRight() 968 playerPos.r.y += DEG(360); in kf_RotateRight() 992 playerPos.r.x += pitchAmount; in kf_PitchBack() 1272 playerPos.r.y = 0; in kf_SeekNorth() 2451 playerPos.p.x = xJump; in kf_CentreOnBase() [all …]
|
H A D | display3d.cpp | 175 iView playerPos; variable 804 drawTiles(&playerPos); in draw3DScene() 1271 playerPos.r.z = 0; // roll in init3DView() 1305 playerPos = *newView; in disp3d_setView() 1318 *newView = playerPos; in disp3d_getView() 1977 playerPos.r.z = 0; in setViewPos() 1995 return playerPos.p.xz(); in getPlayerPos() 2002 playerPos.p.x = x; in setPlayerPos() 2003 playerPos.p.z = y; in setPlayerPos() 2004 playerPos.r.z = 0; in setPlayerPos() [all …]
|
H A D | radar.cpp | 240 pos = Vector2f_Rotate2f(pos, -playerPos.r.y); in CalcRadarPosition() 273 playerpos = playerPos.p; // cache position in drawRadar() 288 radarMatrix *= glm::rotate(UNDEG(playerPos.r.y), glm::vec3(0.f, 0.f, 1.f)); in drawRadar() 568 const int pitch = 360 - (playerPos.r.x / DEG_1); in getLengthAdjust() 593 int x = playerPos.p.x * pixSizeH / TILE_UNITS; in setViewingWindow() 594 int y = playerPos.p.z * pixSizeV / TILE_UNITS; in setViewingWindow() 616 RotateVector2D(v, tv, ¢re, playerPos.r.y, 4); in setViewingWindow() 660 pos = Vector2f_Rotate2f(pos, -playerPos.r.y); in CoordInRadar()
|
/dports/games/bzflag-server/bzflag-2.4.22/src/bzflag/ |
H A D | ShockWaveStrategy.cxx | 112 const float* playerPos = tank->getPosition(); in checkHit() local 114 const float dx = playerPos[0] - shotPos[0]; in checkHit() 115 const float dy = playerPos[1] - shotPos[1]; in checkHit() 116 const float dz = playerPos[2] - shotPos[2]; in checkHit() 119 position[0] = playerPos[0]; in checkHit() 120 position[1] = playerPos[1]; in checkHit() 121 position[2] = playerPos[2]; in checkHit()
|
/dports/games/bzflag/bzflag-2.4.22/src/bzflag/ |
H A D | ShockWaveStrategy.cxx | 112 const float* playerPos = tank->getPosition(); in checkHit() local 114 const float dx = playerPos[0] - shotPos[0]; in checkHit() 115 const float dy = playerPos[1] - shotPos[1]; in checkHit() 116 const float dz = playerPos[2] - shotPos[2]; in checkHit() 119 position[0] = playerPos[0]; in checkHit() 120 position[1] = playerPos[1]; in checkHit() 121 position[2] = playerPos[2]; in checkHit()
|
/dports/games/arx-libertatis/arx-libertatis-1.1.2/src/gui/ |
H A D | MiniMap.cpp | 315 playerPos.x += startX; in showPlayerMiniMap() 316 playerPos.y += startY; in showPlayerMiniMap() 326 drawPlayer(playerSize, playerPos.x + decalX, playerPos.y + decalY, true); in showPlayerMiniMap() 354 playerPos.x += startX; in showBookMiniMap() 355 playerPos.y += startY; in showBookMiniMap() 363 drawPlayer(6.f, playerPos.x, playerPos.y); in showBookMiniMap() 391 playerPos.x += startX; in showBookEntireMap() 392 playerPos.y += startY; in showBookEntireMap() 400 drawPlayer(3.f, playerPos.x, playerPos.y); in showBookEntireMap() 477 playerPos.x += startX; in revealPlayerPos() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/ultima/ultima1/widgets/ |
H A D | overworld_monster.cpp | 53 Point playerPos = _map->_playerWidget->_position; in attackDistance() local 54 Point diff = playerPos - _position; in attackDistance() 68 Point playerPos = _map->_playerWidget->_position; in attackParty() local 69 Point diff = playerPos - _position; in attackParty()
|
H A D | princess.cpp | 37 Point playerPos = _map->_playerWidget->_position; in movement() local 38 Point delta(SGN(_position.x - playerPos.x), SGN(_position.y - playerPos.y)); in movement()
|
H A D | dungeon_monster.cpp | 74 Point playerPos = _map->_playerWidget->_position; in update() local 75 Point delta = playerPos - _position; in update() 90 Point playerPos = _map->_playerWidget->_position; in movement() local 91 Point diff = playerPos - _position; in movement() 127 Point playerPos = _map->_playerWidget->_position; in attackParty() local 135 _map->getTileAt(playerPos, &playerTile); in attackParty()
|
/dports/games/openmw/openmw-openmw-0.47.0/apps/openmw/mwrender/ |
H A D | viewovershoulder.cpp | 87 osg::Vec3d playerPos = mCamera->getFocalPoint() - mCamera->getFocalPointOffset(); in trySwitchShoulder() local 92 playerPos + sideOffset, orient * osg::Vec3d(1, 0, 0), limitToSwitchBack + 1); in trySwitchShoulder() 94 playerPos - sideOffset, orient * osg::Vec3d(-1, 0, 0), limitToSwitchBack + 1); in trySwitchShoulder() 96 playerPos + sideOffset, orient * osg::Vec3d(1, 3, 0), limitToSwitchBack + 1); in trySwitchShoulder() 98 playerPos - sideOffset, orient * osg::Vec3d(-1, 3, 0), limitToSwitchBack + 1); in trySwitchShoulder()
|
/dports/devel/raylib/raylib-3.7.0/examples/models/ |
H A D | models_first_person_maze.c | 58 Vector2 playerPos = { camera.position.x, camera.position.z }; in main() local 61 int playerCellX = (int)(playerPos.x - mapPosition.x + 0.5f); in main() 62 int playerCellY = (int)(playerPos.y - mapPosition.z + 0.5f); in main() 78 (CheckCollisionCircleRec(playerPos, playerRadius, in main()
|
/dports/games/libretro-shaders-slang/slang-shaders-9850d68939b86262eae9f0da01ff1c11daafcdc3/procedural/ |
H A D | hlorenzi-zelda.slang | 368 vec2 playerPos = lastPlayerPos; 404 playerPos = curPlayerPos; 429 playerPos = curPlayerPos; 515 if (uv.x >= playerPos.x - 8. + spx && uv.x <= playerPos.x + 7. + spx && 516 uv.y >= playerPos.y - 7. + spy && uv.y <= playerPos.y + 8. + spy) { 518 float sx = uv.x - playerPos.x + 8. - spx; 519 float sy = playerPos.y - uv.y + 8. + spy; 524 if (uv.x >= playerPos.x - 8. && uv.x <= playerPos.x + 7. && 525 uv.y >= playerPos.y - 7. && uv.y <= playerPos.y + 8.) { 526 float px = uv.x - playerPos.x + 8.; [all …]
|
/dports/games/libretro-shaders-glsl/glsl-shaders-7052b09dc657d56bea443d5661dccbebcafe32dc/procedural/ |
H A D | hlorenzi-zelda.glsl | 445 vec2 playerPos = lastPlayerPos; 481 playerPos = curPlayerPos; 506 playerPos = curPlayerPos; 592 if (uv.x >= playerPos.x - 8. + spx && uv.x <= playerPos.x + 7. + spx && 593 uv.y >= playerPos.y - 7. + spy && uv.y <= playerPos.y + 8. + spy) { 595 float sx = uv.x - playerPos.x + 8. - spx; 596 float sy = playerPos.y - uv.y + 8. + spy; 601 if (uv.x >= playerPos.x - 8. && uv.x <= playerPos.x + 7. && 602 uv.y >= playerPos.y - 7. && uv.y <= playerPos.y + 8.) { 603 float px = uv.x - playerPos.x + 8.; [all …]
|
/dports/games/keeperrl/keeperrl-alpha23/ |
H A D | campaign.cpp | 12 SERIALIZE_DEF(Campaign, sites, playerPos, worldName, defeated, influencePos, influenceSize, playerR… in SERIALIZE_DEF() argument 32 return (isInInfluence(pos) || playerPos == pos) && !sites[pos].isEmpty(); in canTravelTo() 36 return playerPos; in getPlayerPos() 145 if (!playerPos) in refreshInfluencePos() 149 if ((sites[v].getVillain() || sites[v].getRetired()) && v.distD(*playerPos) <= r) in refreshInfluencePos()
|
/dports/converters/wkhtmltopdf/qt-5db36ec/demos/embedded/raycasting/ |
H A D | raycasting.cpp | 72 , playerPos(1.5, 1.5) in Raycasting() 97 QPointF pos = playerPos + 3 * QPointF(dx, dy); in updatePlayer() 101 playerPos = playerPos + QPointF(dx, dy); in updatePlayer() 155 qreal px = playerPos.x(); in render() 156 qreal py = playerPos.y(); in render() 366 QPointF playerPos; member in Raycasting
|
/dports/misc/qt5-examples/qt-everywhere-src-5.15.2/qtbase/examples/embedded/raycasting/ |
H A D | raycasting.cpp | 76 , playerPos(1.5, 1.5) in Raycasting() 101 QPointF pos = playerPos + 3 * QPointF(dx, dy); in updatePlayer() 105 playerPos = playerPos + QPointF(dx, dy); in updatePlayer() 159 qreal px = playerPos.x(); in render() 160 qreal py = playerPos.y(); in render() 362 QPointF playerPos; member in Raycasting
|
/dports/audio/tiatracker/tiatracker-1.3/ |
H A D | timeline.cpp | 55 playerPos[0] = pos1; in playerPosChanged() 56 playerPos[1] = pos2; in playerPosChanged() 108 …painter.fillRect(0, channelMargin + playerPos[0]*rowHeight + rowHeight/2, width()/2, 2, MainWindow… in paintEvent() 109 …painter.fillRect(width()/2, channelMargin + playerPos[1]*rowHeight + rowHeight/2, width()/2, 2, Ma… in paintEvent()
|
/dports/games/supertux2/SuperTux-v0.6.3-Source/src/badguy/ |
H A D | angrystone.cpp | 92 const Vector& playerPos = player->get_pos(); in active_update() local 94 float dx = (playerPos.x - badguyPos.x); in active_update() 95 float dy = (playerPos.y - badguyPos.y); in active_update()
|
/dports/games/openmw/openmw-openmw-0.47.0/apps/openmw/mwworld/ |
H A D | scene.hpp | 103 …void preloadTeleportDoorDestinations(const osg::Vec3f& playerPos, const osg::Vec3f& predictedPos, … 104 void preloadExteriorGrid(const osg::Vec3f& playerPos, const osg::Vec3f& predictedPos); 105 …void preloadFastTravelDestinations(const osg::Vec3f& playerPos, const osg::Vec3f& predictedPos, st…
|