PyRacing

PyRacing

15 devlogs
63h 32m
•  Ship certified
Created by Vlado

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

Timeline

Earned sticker

I tried my best at fixing it... I think it's still not ideal but it's playable... I'd better start making this game in godot or Unity, because physics were really a pain for me. I did discover a lot of new stuff tho! And I still enjoyed making this project! I did also update Readme with some gameplay tips.

Update attachment
Earned sticker

I updated readme, and fixed alot of stuff! The v0.0.2 is on github for windows and linux!

Update attachment

Ship 1

1 payout of shell 770.0 shells

Vlado

about 1 year ago

Vlado • Covers 13 devlogs and 56h 8m

I cleaned up main file and everything seems to work, surprisingly. Also for some unknown reason, game now takes more time to... import images? What did it do? I will test this on other system to make sure it works not only for me. The game has only 1 dependency(pyglet) and that's cool

Update attachment

Game is almost done! Finally!
Changes from last devlog:
1. score saving system
2. some optimizations to game logic

I only have to tidy up the code(because main file is like 600 lines long 🙂) add some media and its done!

Also pyglet for some reason started to break while trying to change pitch because of some pulse audio server error. I somewhat fixed it and it works now.

Update attachment

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!

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)

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 over 1 year 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.