johandigital
An image

Phaser car game wip

Improved a lot of things

Johan

2025 | 2 | 21

I have dedicated my evenings to developing the "car game" project. Upon reaching a juncture where enhanced track editing capabilities were deemed necessary, I transitioned from manually creating SVG files in Figma to employing a dedicated track editor, streamlining the process significantly.

Now I can sketch out the game in the editor. Just set up where the car starts, mark the start and finish lines, and save it to supabase. After that, I can easily read the json to access the vertices. The previous method involved changing svg to vertices, but dealing with 10000px wide bits for each track might lead to issues with bigger maps.

I kinda miss the smooth curves of the tracks, but it brings back memories of my fave old game "across," so no big deal! Next up on my to-do list: saving automatically to local storage, adding a login for track creation, sharing tracks, setting up track leaderboards, including coins in the editor for collectibles, and adding physics-based obstacles.

Loading posts...