Giter Club home page Giter Club logo

f1-race's Introduction

F1 Race

Screenshot from Windows 10

A port of the simple race game from MTK OS to SDL2 and Emscripten.

Controls

  • Arrows and 4, 6, 8, 2 on Keypad – Movement.
  • Space, Return and 5 on Keypad – Fly.
  • Tab, N and 0 on Keypad – Switch MIDI.
  • M and 7 on Keypad – Mute sound.

Web Demo

Download

Ready-to-run game builds are available in the "Releases" section.

Run Tips

Linux, Ubuntu 22.04 LTS: Install the SDL2 and SDL2_mixer libraries before starting the game.

$ sudo apt install libsdl2-2.0-0 libsdl2-mixer-2.0-0
$ ./F1-Race

Web: Add a MIME type for WASM to serve files properly.
More information about this here: Hosting a WebAssembly App.

Nginx: Add this to the http section of the configuration file:

types {
    application/wasm wasm;
}

Apache: Add this to the apache2.conf or httpd.conf configuration files:

AddType application/wasm .wasm

Build for Windows

Install MSYS2 first and run "MSYS2 MINGW64" shell.

$ pacman -S mingw-w64-x86_64-make mingw-w64-x86_64-gcc
$ pacman -S mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_mixer
$ mingw32-make build-windows
$ mingw32-make build-windows-static # Alternative, maybe broken over time.

Build for Linux

$ sudo apt install build-essential libsdl2-dev libsdl2-mixer-dev
$ make build-linux

Build for Web

Install Emscripten first.

$ source /opt/emsdk/emsdk_env.sh
$ make build-web

Other Information

Thanks to @nehochupechatat for source and @OldPhonePreservation for original MTK MIDIs.

f1-race's People

Contributors

exl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.