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…

Sponsored Posts

Comments

Jules Martin

this is the most complex scratch game ive seen
make sure to tag me on a post when it is live

01/12/2017 - 21:44 |
5 | 0

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.

01/12/2017 - 21:52 |
1 | 0
Sniff Petrol

Jesus all of this on scratch? The best game I’ve ever made on that thing was a broken pac man clone 😂

01/12/2017 - 22:25 |
0 | 0

Yep. It’s kinda fun to push the limits of a rather basic child-oriented programming environment :P.

01/12/2017 - 22:27 |
1 | 0
[Flux]

YO THIS IS SICK

Tag me when it’s done!

01/12/2017 - 22:26 |
0 | 0
Sniff Petrol

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

01/12/2017 - 22:30 |
1 | 0

Well, Hennessey turned a track car into a Bugatti-killer…

01/13/2017 - 16:35 |
0 | 0
Foolishness (TOYOTA 86 FANBOY)

Wow. What does the code page look like? Also can you please tag me when it’s done?

01/12/2017 - 22:37 |
0 | 0

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).

01/13/2017 - 16:37 |
0 | 0
Drift240

It looks very comedic in a good way

01/12/2017 - 23:19 |
0 | 0
Anonymous

Add a 2004 mustang gt!!!

01/13/2017 - 01:04 |
0 | 0
TheMindGarage

In reply to by Anonymous (not verified)

I’ll consider it!

01/13/2017 - 16:37 |
0 | 0
King Kaw

Tag me when it goes live PLZ

01/13/2017 - 04:50 |
0 | 0