ScratchData LogoScratchData
Back to b9e's profile

100 Block Race 3D

B9b9e•Created February 25, 2025
100 Block Race 3D
1218
1040
43552 views
View on Scratch

Instructions

>>> THE 100 BLOCK GAME CHALLENGE <<< Steer with the arrow keys or click / tap the edges. No gas - but no brake either - the speed increases. Mobile friendly! Slow? Triple-click and drag to a new tab: https://turbowarp.org/1138696965 (...or in Draw sprite write step to 60 and repeat 100...) Full version: https://scratch.mit.edu/projects/1144899836 (2962 block) Full-full version: https://scratch.mit.edu/projects/1150357503 (5842 block) MONZA: Can you do 3 laps of the Monza circuit at increasing speed? The 3rd lap is almost impossible! VULCAN: Can you reach the finish line by passing through 9 increasingly difficult, numbered sectors? The last turns are almost impossible! Avoid obstacles! CASTLE: Can you reach the finish line driving along closely alongside the castle wall? The last turns are almost impossible! Only 100 blocks: - 3 selectable race track - Breathtaking 3D visualization - No gas, no brake, easy control - Increasing speed - Fine steering - Perfect collision detection - Animated looking lava flow (bug => feature) - Music and sound effects 100 blocks was not enough for: - Steer with A-D (+4 blocks) (modify Position 2D sprite) - Brakes (minimum +11 blocks to control) - Gas (minimum +11 blocks to control) - Crash animation (+4 blocks) - Sounds - HD (clones no pen) (+1 block and powerful pc) etc. Line version: https://scratch.mit.edu/projects/1138473417/ Blocks: Base 3D displaying engine = 52 blocks Control and 2D position = 25 blocks Collision detection, music, ending sounds = 9 blocks Menu, game handling and hide effect = 14 blocks Data lists: 140 000 items: x, y, costume and speed 481 items: mouse x to change dir / start point 300 items: ghost by size (close to the horizon) 200 items: display skip (for greater visual range) Project: json: 5.02 MB (luckily Scratch didn't say it was too big) wav: 8.53 MB ("well" under the limit) svg: 0.9 MB 93 files sb3: 9.23 MB 3D engine: Very simple, no trigonometry, no sin cos! Position 2D sprite represents the position of the car (in negative). Draw 3D sprite draws the pieces of the road: It jumps to the Position 2D. It changes the x and y position by the position of the road piece. Then it points toward the center (0; 0) position. It measures the distance to that point. It jumps to the (0; 75) point (75 means the distance of the camera behind the car). Then it turns left the direction of the Position 2D sprite (which direction is the car going), it steps the stored distance. Now it is in the good position in 2D, rotated to relative the car. The 3D is very easy: 300 / y This 300 / y is the display unit value at the distance of the road piece. x * (300 / y) is the center of the road piece. 80 * (300 / y) is the size of the costume. Stamp. Ready. For better game experience, see: https://scratch.mit.edu/projects/800698458/ https://scratch.mit.edu/projects/789490462/ Best practices: Place heart and star symbols on the game graphic... 10 000 views in a single day! +20 000 views on the next day! 40 000 views in one week! 1060 loved 908 favorited 111 remixed! #all #games #race #car #game #track #monza #vulcan #castle

Project Details

Project ID1138696965
CreatedFebruary 25, 2025
Last ModifiedApril 7, 2025
SharedFebruary 25, 2025
Visibilityvisible
CommentsAllowed