best racing game ever
Find a file
2025-06-18 02:40:59 +02:00
assets Remove spaces from internal file 2025-06-11 18:32:45 +02:00
frontend_espboy Update readme 2025-06-18 02:02:30 +02:00
frontend_nibble Add Nibble frontend 2025-06-17 02:49:39 +02:00
frontend_ringo Fix ghost visibility 2025-06-18 02:40:59 +02:00
media Update README 2025-06-12 21:35:05 +02:00
assets.h Remove spaces from internal file 2025-06-11 18:32:45 +02:00
audio.h Add module names 2025-05-28 22:34:20 +02:00
data Remove spaces from internal file 2025-06-11 18:32:45 +02:00
Doxyfile Add small stuff 2025-06-01 19:30:16 +02:00
frontend_csfml.c Add minor improvements 2025-06-03 19:48:52 +02:00
frontend_helper.h Update readme 2025-06-18 02:02:30 +02:00
frontend_saf.c Start test frontend 2025-05-23 15:46:24 +02:00
frontend_sdl.c Redo menu a little 2025-06-09 20:57:17 +02:00
frontend_test.c Start test frontend 2025-05-23 15:46:24 +02:00
frontend_x11.c Add minor improvements 2025-06-03 19:48:52 +02:00
game.h Fix ghost visibility 2025-06-18 02:40:59 +02:00
general.h Fix small bugs 2025-06-13 15:59:05 +02:00
HTMLshell.html Add SAF frontend 2025-05-19 18:40:36 +02:00
LICENSE Add TODO 2023-07-08 21:37:47 +02:00
make.sh Update README 2025-06-12 21:35:05 +02:00
map.h Abort on big map 2025-06-12 20:49:10 +02:00
racing.h Update readme 2025-06-18 02:02:30 +02:00
README.md Update README 2025-06-12 21:35:05 +02:00
renderer.h Update readme 2025-06-18 02:02:30 +02:00
settings.h Abort on big map 2025-06-12 20:49:10 +02:00
small3dlib.h Handle buddy tris 2025-05-12 20:24:27 +02:00
tinyphysicsengine.h Fix car sliding 2025-03-03 17:02:41 +01:00
TODO.txt Fix ghost visibility 2025-06-18 02:40:59 +02:00

HIGH WORK IN PROGRESS, NOT USABLE YET

But looks nice already, feel free to experiment and have fun, potentially even send me a feedback.

The following is a draft of readme that will eventually be published, it may contain information that is not yet true but is expected to become true once the project is finished.

Licar

free and selfless KISS racing game

For more detail see also the game manual.

What Is This

This is a libre (free as in freedom) 3D racing game very much inspired by the proprietary game Trackmania (but different enough to be legally safe). It is written in a selfless way (it won't try to exploit you in any way, not even indirectly) following a philosophy of high minimalism, excluding any poison and bullshit of so called "modern technology" and self interest. It was made completely from scratch by a single man who is too different (for better or worse) from all other humans.

The game's objective is to finish given track as fast as possible. Unlike in typical racing games there is no live multiplayer: one doesn't race against other players directly, players instead compete in a speedrunning fashion, by individually trying to finish the same track faster, utilizing skill, tricks, shortcuts and potentially -- if they agree on it -- even computer assistance. Players don't even have to compete and may rather collaborate on finding faster solutions, analyzing tracks, looking for faster ways etc.

Licar isn't just a game meant for entertainment, it's also a kind of manifesto, expression of worldview, an engineering art, a tool (for education, research, ...) and possibly much more. It is NOT, on the other hand, a product, brand or franchise.

Considering just the player's perspective, some highlightable features of the game include:

  • replays: small files that record individual runs merely as a sequence of inputs -- this is good for sharing runs, proving records, creating TAS runs etc.
  • custom maps: players can create their own maps using a simple plaintext format.
  • ghosts: players may race against ghost (collisionless) opponents.
  • great many settings: basically everything is modifiable.
  • zero price, no ads, no subscriptions, amazing performance, low hardware demands, small size, no DRM (and similar bullshit nowadays expected in every "modern" game).
  • REAL "retro" style: not just mimicking the look and feel of an old game, but actually BEING what old games were.
  • absolute moddability: absolutely EVERY single aspect of the game can be modified, there exist no "protections" or restriction, legal or technical.

Please note however the game is still relatively simple and so the physics IS shitty at times, just as it used to be in old games, there are no plans to make the physics flawless or more accurate, consider it a feature. If you'd like to integrate a more perfect physics engine in your custom fork, you're welcome to :)

Cheating in this game is allowed. We don't give a shit about drama, serious competition and totalitarian crap, just relax, drive and have fun, search for the best solution to each map by any means you deem entertaining.

Why This Game Is Special

  • Everything is written in KISS/suckless C99 from scratch. The whole project, INCLUDING the 3D physics engine, 3D rendering engine, game logic AND assets embedded in source code easily fit under under 25 KLOC in total, even when counting ALL lines of codes and mutually exclusive parts of code (different frontends).
  • Everything is created 100% from scratch by the author, including code (of the game, physics engine, rendering engine, frontends), textures (created from own photos), 3D models, map, sound effects, music (created using custom sound font made from own recorded samples), font, accompanying materials etcetc. This ensures absolute freedom, there is no shadow of a doubt there is indeed is no 3rd party copyright. Everything was also created exclusively with free software.
  • It has custom KISS 3D physics engine (tinyphysicsengine) written from scratch, implemented in a single header file, using no GPU or floating point.
  • It has custom KISS 3D software rendering engine (small3dlib) written from scratch, implemented in a single header file, using no GPU or floating point.
  • The whole game doesn't use floating point at all, everything is done with 32bit fixed point only.
  • It doesn't have any dependency libraries, not even the C standard library (except for using types from stdint.h, which can be trivially replaced with a few defines), everything is written from scratch for maximum portability. Libraries such as SDL are used for frontends, but they are never an inherent dependency and can be basically drop-in replaced with a similar library that's only required to be able to draw pixels and read keyboard. Almost everything can be turned off, the game can even run without a file system as the essential assets are embedded right in the source code -- files are only needed for optional extended functionality like saving replays, adding extra maps etc. Settings are part of the source code too, there are no config files.
  • No build system is used, everything is in a single compilation unit, to build the game only a single compiler invocation is needed. This removes another bloat and dependency.
  • The compiled game INCLUDING ASSETS is extremely small -- depending on platform, game and compilation settings, a playable executable can take only around 128 kB; in normal scenarios it will most likely fit under 400 kB.
  • It is exceptionally portable and future proof thanks to having no dependencies besides C99 compiler. So far it was ported to:
    • GNU/Linux, possible backends: SDL2, CSFML, X11
    • OpenBSD
    • web browser JavaScript (via emscripten)
    • TODO
  • It also goes without saying the physics is 100% deterministic, it behaves the same on every platform, independantly of rendering FPS. Besides others this allows for recording and playing back very small replays and creating press forward maps.
  • It is super moddable and hackable, the code is relatively simple and well commented, written to encourage hacking. There are no obstacles such as DRM, anti-cheating, obfuscation etc. Cheating and hacking is allowed, do literally what you want.
  • No codes of censorship, flags, furry mascots or similar political bullshit. This is just a game.
  • No "modern" bullshit such as OOP, meme design patterns, scripting, sandboxes, "memory safety" and similar shit.
  • It is absolutely and completely public domain free software with ZERO conditions on use under CC0, it is legally more free that most "FOSS" software, there is no copyleft or credit requirement, you can do ABSOLUTELY anything you want with the project. This is a selfless project aiming for no benefit of the creator (include any non-financial benefit as well), this is made purely to bring more good to the world without gaining any advantage for self.
  • This game has PURE SOUL and REAL oldschool graphics in the "PS1" style. No Unity or Unreal, no "retro" imitation shaders, no assets from a store. This isn't a wannabe retro 90s pretender, this IS a real 90s game.

Manifesto

At this point I can't possibly summarize my views and life philosophy satisfyingly in a few paragraphs. If you're interested, you'll be able to discover a rabbithole around my stuff, but I can almost certainly say you won't like it, so think twice.

TODO