Home
last modified time | relevance | path

Searched refs:ballSpeed (Results 1 – 18 of 18) sorted by relevance

/dports/graphics/lazpaint/lazpaint-7.1.6/bgrabitmapnew/test/testvirtualscreen/
H A Dunit1.pas37 ballSpeed: TPoint;
97 inc(ballSpeed.Y);
98 inc(ballPos.X, ballSpeed.x);
99 inc(ballPos.Y, ballSpeed.y);
103 ballSpeed.Y := -abs(ballSpeed.Y);
108 ballSpeed.Y := 0;
116 ballSpeed.X := -abs(ballSpeed.x);
121 ballSpeed.X := abs(ballSpeed.x);
147 ballSpeed := Point(random(5)-2, 0);
/dports/editors/cudatext/CudaText-1.151.0/bgrabitmap/test/testvirtualscreen/
H A Dunit1.pas37 ballSpeed: TPoint;
97 inc(ballSpeed.Y);
98 inc(ballPos.X, ballSpeed.x);
99 inc(ballPos.Y, ballSpeed.y);
103 ballSpeed.Y := -abs(ballSpeed.Y);
108 ballSpeed.Y := 0;
116 ballSpeed.X := -abs(ballSpeed.x);
121 ballSpeed.X := abs(ballSpeed.x);
147 ballSpeed := Point(random(5)-2, 0);
/dports/devel/raylib/raylib-3.7.0/examples/shapes/
H A Dshapes_bouncing_ball.c24 Vector2 ballSpeed = { 5.0f, 4.0f }; in main() local
42 ballPosition.x += ballSpeed.x; in main()
43 ballPosition.y += ballSpeed.y; in main()
46 …tion.x >= (GetScreenWidth() - ballRadius)) || (ballPosition.x <= ballRadius)) ballSpeed.x *= -1.0f; in main()
47 …ion.y >= (GetScreenHeight() - ballRadius)) || (ballPosition.y <= ballRadius)) ballSpeed.y *= -1.0f; in main()
/dports/devel/raylib/raylib-3.7.0/examples/core/
H A Dcore_window_flags.c43 Vector2 ballSpeed = { 5.0f, 4.0f }; in main() local
128 ballPosition.x += ballSpeed.x; in main()
129 ballPosition.y += ballSpeed.y; in main()
130 …tion.x >= (GetScreenWidth() - ballRadius)) || (ballPosition.x <= ballRadius)) ballSpeed.x *= -1.0f; in main()
131 …ion.y >= (GetScreenHeight() - ballRadius)) || (ballPosition.y <= ballRadius)) ballSpeed.y *= -1.0f; in main()
/dports/graphics/lazpaint/lazpaint-7.1.6/bgracontrols/test/test_extra/game_maze/
H A Dbgragame.pas39 ballPosition,ballSpeed: TPointF;
108 map.ballSpeed += dir;
111 if gkLeft in map.mapKeysDown then map.ballSpeed.x -= acceleration;
113 if gkUp in map.mapKeysDown then map.ballSpeed.y -= acceleration;
117 speed := sqrt(map.ballSpeed*map.ballSpeed);
118 if speed > maxSpeed then map.ballSpeed *= maxSpeed/speed;
121 map.ballPosition += map.ballSpeed;
129 map.ballSpeed.X := -abs(map.ballSpeed.X);
137 map.ballSpeed.X := abs(map.ballSpeed.X);
145 map.ballSpeed.y := -abs(map.ballSpeed.y);
[all …]
/dports/security/hs-cryptol/cryptol-2.11.0/_cabal_deps/lens-5.0.1/examples/
H A DPong.hs117 (u, v) <- use ballSpeed
136 let optimal = hitPos (p^.ballPos) (p^.ballSpeed)
164 ballSpeed._y %= negate
169 ballSpeed._x %= negate
170 ballSpeed._y += 3*(y - p^.paddle) -- add english
171 ballSpeed.both *= speedIncrease
186 ballSpeed <~ nextSpeed
231 let world = ballSpeed .~ v $ vectors .~ vs $ initial
/dports/www/hs-postgrest/postgrest-8.0.0/_cabal_deps/lens-4.19.2/examples/
H A DPong.hs117 (u, v) <- use ballSpeed
136 let optimal = hitPos (p^.ballPos) (p^.ballSpeed)
164 ballSpeed._y %= negate
169 ballSpeed._x %= negate
170 ballSpeed._y += 3*(y - p^.paddle) -- add english
171 ballSpeed.both *= speedIncrease
186 ballSpeed <~ nextSpeed
231 let world = ballSpeed .~ v $ vectors .~ vs $ initial
/dports/devel/hs-git-annex/git-annex-8.20210903/_cabal_deps/lens-4.19.1/examples/
H A DPong.hs117 (u, v) <- use ballSpeed
136 let optimal = hitPos (p^.ballPos) (p^.ballSpeed)
164 ballSpeed._y %= negate
169 ballSpeed._x %= negate
170 ballSpeed._y += 3*(y - p^.paddle) -- add english
171 ballSpeed.both *= speedIncrease
186 ballSpeed <~ nextSpeed
231 let world = ballSpeed .~ v $ vectors .~ vs $ initial
/dports/devel/hs-haskell-language-server/haskell-language-server-1.4.0/_cabal_deps/lens-5.0.1/examples/
H A DPong.hs117 (u, v) <- use ballSpeed
136 let optimal = hitPos (p^.ballPos) (p^.ballSpeed)
164 ballSpeed._y %= negate
169 ballSpeed._x %= negate
170 ballSpeed._y += 3*(y - p^.paddle) -- add english
171 ballSpeed.both *= speedIncrease
186 ballSpeed <~ nextSpeed
231 let world = ballSpeed .~ v $ vectors .~ vs $ initial
/dports/www/hs-DAV/DAV-1.3.4/_cabal_deps/lens-4.19.2/examples/
H A DPong.hs117 (u, v) <- use ballSpeed
136 let optimal = hitPos (p^.ballPos) (p^.ballSpeed)
164 ballSpeed._y %= negate
169 ballSpeed._x %= negate
170 ballSpeed._y += 3*(y - p^.paddle) -- add english
171 ballSpeed.both *= speedIncrease
186 ballSpeed <~ nextSpeed
231 let world = ballSpeed .~ v $ vectors .~ vs $ initial
/dports/games/dhewm3/dhewm3-1.5.1/neo/ui/
H A DGameBustOutWindow.cpp457 savefile->Write( &ballSpeed, sizeof(ballSpeed) ); in WriteToSaveGame()
534 savefile->Read( &ballSpeed, sizeof(ballSpeed) ); in ReadFromSaveGame()
600 ballSpeed = BALL_SPEED; in ResetGameState()
672 ball->velocity.x = ballSpeed; in HandleEvent()
673 ball->velocity.y = -ballSpeed*2.f; in HandleEvent()
675 ball->velocity *= ballSpeed; in HandleEvent()
1064 ball->velocity *= ballSpeed; in UpdatePowerups()
1141 ballSpeed *= 1.25f; in UpdateBall()
1176 ball->velocity *= ballSpeed; in UpdateBall()
1301 if ( ballSpeed > BALL_MAXSPEED ) { in UpdateGame()
[all …]
H A DGameBustOutWindow.h175 float ballSpeed; variable
/dports/devel/arduino-core/Arduino-b439a77/libraries/TFT/examples/Arduino/TFTPong/
H A DTFTPong.ino41 int ballSpeed = 10; // lower numbers are faster
79 if (millis() % ballSpeed < 2) {
/dports/devel/arduino-core/Arduino-b439a77/libraries/TFT/examples/Esplora/EsploraTFTPong/
H A DEsploraTFTPong.ino71 int ballSpeed = map(Esplora.readSlider(), 0, 1023, 0, 80) + 1;
72 if (millis() % ballSpeed < 2) {
/dports/devel/sfml/SFML-2.5.1/examples/pong/
H A DPong.cpp82 const float ballSpeed = 400.f; in main() local
162 float factor = ballSpeed * deltaTime; in main()
/dports/games/untahris/untahris/
H A Duntahris.cpp98 gc.ballSpeed = 7; in defaultConfig()
228 save("ball speed", gc.ballSpeed); in saveloadConfig()
H A Duntahris.h216 …int32 ballSpeed, bombInitRange, bombBonusRange, castleInitEnergy, castleRotSpeed, castleRegenSpeed… member
H A Dball.cpp109 speed = gc.ballSpeed; in OBall()