Drag Tune - my project for the past few months!
I’ve been programming a drag-racing game on Scratch! It’s not yet finished (it isn’t live on the website yet), but I thought I’d share some screenshots.
There are 10 cars in the game:
- Mazda MX-5
- Subaru WRX STi
- BMW M2
- Audi TT RS
- Dodge Challenger SRT Hellcat
- Windows, erm, Nissan GT-R R35
- Porsche 911 Turbo S
- Lamborghini Huracan
- McLaren P1
- Koenigsegg One:1
I am accepting suggestions for adding cars. I’m hoping to add a couple of older cars (like a Supra, R34, E30, that kind of thing), plus some crazier ones (F12tdf, Regera, Caparo T1 and a V10 Formula One car are on the list). I’ll release the game with the 10 cars, then update it with more as I go.
So, some screenshots (things may change between now and going live):
There are also car sounds - the sound generator produces them based on the pitch (I got that from listening to the cars in real life) and the cylinder count. I will NOT add rotary cars because there is no way to get a BRAAAAP sound into my sound engine.
You can save and import tuning data - each tune is made up of a string of 54 numbers. This bit still needs quite a bit of work - sometimes it glitches.
There are also cheat codes - they can give you ridiculous grip/power/downforce, indestructible components, half weight or no drag. There’s also a code that converts all engine sounds into Formula One sounds (OK, all it does is makes them sound higher and louder).
I hope to release this properly in a few weeks! I’ll provide a link to the finished game!
EDIT: One more thing I’ll add - the game has delta-time. Basically, if the FPS drops, the game will still appear to run at the same speed - more stuff happens per frame. You’d only see lag if it drops below 10FPS. Game speed is capped at 100 FPS - my i5-powered laptop (about 4 years old) does 60 no problem. No idea how quickly a GT-R runs this game…
Comments
this is the most complex scratch game ive seen
make sure to tag me on a post when it is live
I sure will!
I’ve seen even more complex games using multiplayer, but it’s rather pointless trying to figure out how to do multiplayer in a platform that’s designed to make it near-impossible to have multiplayer. This may become a game on Android eventually (ie if I can be bothered) - at the moment this is a testing ground for homemade physics code.
Jesus all of this on scratch? The best game I’ve ever made on that thing was a broken pac man clone 😂
Yep. It’s kinda fun to push the limits of a rather basic child-oriented programming environment :P.
YO THIS IS SICK
Tag me when it’s done!
True that, what you’re doing though is a bit like trying to turn a food blender into a spaceship and it’s awesome. Best of luck with the next part of the project
Well, Hennessey turned a track car into a Bugatti-killer…
Wow. What does the code page look like? Also can you please tag me when it’s done?
Rather crazy. At the moment, there are 372 separate scripts. Some of them are very short (like making a button disappear at the right time), but the physics ones are very complex. There are 83 sprites, although some are “invisible” ones (I made separate sprites to specifically deal with physics, engine sound and high score encoding).
It looks very comedic in a good way
Add a 2004 mustang gt!!!
I’ll consider it!
Tag me when it goes live PLZ