PyRacing

PyRacing

11 devlogs
53h 18m
Created by Vlado

A 2D top-down pixel art racing game focused on drifting.

Timeline

Vlado
Vlado
9h 28m 3 days ago

I’ve wrote, rewrote, changed a lot of stuff. There are biggest changes I’ve made:

1: Custom buttons and labels system. Work smarter not harder: now I don’t have to have 3 assets for each button. Buttons have 3 color themes, smooth animation and some useful functions!

2: More maps :3!!! There are 4 in total for now.

3: Better maps and car loading system. Which means that each car and map has its own properties like spawn point, texture, lap amount and scale for maps and car parameters, assets and some magic numbers for cars. Cool, isn’t it?

4: Lap time count system. Counts lap time. Nothing special idk. Labels are automatically adjusting width and resetting text when new race begins. Also I’ve made so you’ll see total race time after finishing the race.

5: Trees optimization. I removed dynamic transparency system because it really was affecting fps, because well, calculating some shit for large amount of objects is not very resource-effective. Game runs smoothly now :3

That is all for now. I will try to lock in and finish this game soon!

Vlado
Vlado
4h 39m 9 days ago

I've made it so you can choose your car and map. The assets for the car and map picking menu aren't ready yet, and I'm a bit lazy to make them, so I'm using what I have. I also added a new map and a new car so I have more to choose from. I've also programmed a flatter collision spin. It's a bit buggy, as you can see at the end of the video. I also optimized some things(small bug fixes)

Vlado
Vlado
13h 24m 17 days ago

I did a lot of stuff, relatively. I’ve added menus, like a pause menu and main menu. I wrote a small script for making button states so I don’t have to do it all by hand. I also noticed that after I run the game about 10 times, something uses my RAM even if I don’t have anything else opened, so I added cleanup on game close.

Most of the time went into freecam. It was a pain to make. I had to rewrite a few things related to movement, but at least it works well now. It also detects lap start and lap finish, so it should be easy to show that to the player.

I also decided to make myself a to-do list:

  1. Add lap finish screen which will appear a few seconds after the player finishes the lap
  2. Fix car false collision after freecam exit. Should be easy
  3. Add option to pick car and track. Cars will have different stats
  4. Add radio which will have some music
  5. Make main menu background
  6. Draw more sprites and tracks :D
yehor yehor 17 days ago
Driving in my car right after a beer, hey that bump is shaped like a deer! D-U-I how abo-ut you di-e I'll go one hundred miiiiles peer hooour

4 corners collision system and crash detection. Took me so long because i had no idea how do i do that and i had to rewrite that... few times. It somewhat works now. I will try to improve it in future. Next ill draw crashed car sprite and make so it will teleport back to starting position in some time after it crashes.

Car now looses control while drifting. Also turn strength depends on speed in more realistic way. I also optimized rendering. Now i could create 10000 trees almost with zero lag.

Update attachment

I added engine sound and fixed trees placed too close to track. Ive also added detection for start and finish.

Cool drift trail!

I worked on collision system, fixed some bugs, corrected drift logic and optimized the game. I still need to fix trees because the sometimes appear on track

Update attachment

New track. Took me some time. Collision system next

Update attachment

Trees! For now they spawn everywhere, but ill fix soon

Added player sprite with drift mechanic, base class for static objects: track for now and decorations like trees in future. The drift somehow works, its not very realistic but it works. I ve also made player sprite texture.