vtirta / PastelRiders

A simple but functional 2D racing game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This repository was a part of the the game jam A Game By Its Cover, and there exists a dev blog about it.

Even though this entry was never finished in time for the jam, I continued to develop it since I still had a few ideas I wanted to try out, and eventually it will become a finished game.

How to play

HTML5

Control the blue car with WASD keys

DEBUG KEYS:

  • 0 - Toggle zoom
  • 1 - Togle video recording
  • Space - Toggle pause

Code Structure

Here is roughly what the scripts do (subject to change)

level.script - controls the logic of the ingame session. player.script - controls the player (both user, and ai)

autonomous*.lua - different versions of how to calculate the ai for the vehicles waypoints.lua - helper functions to calculate path related queries trainer.lua - logic to help modifying the waypoints before trying to generate a good race line util.lua - some helper functions constants.lua - the commonly reused constants

Links

Here are some interesting links I read during this project

Steering Behaviors For Autonomous Characters

Autonomous Agents

Physics of Racing Series

Genetic Algorithm Experiment

Credits

http://www.1001fonts.com/conthrax-font.html

About

A simple but functional 2D racing game


Languages

Language:Lua 96.2%Language:Go 3.3%Language:GLSL 0.5%