Skip to content

ndugdale/skippy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skippy

Skippy is a simple browser-based game built using C, SDL2, and compiled to WebAssembly using Emscripten. Play it now in the browser!

Screenshot of Skippy

Requirements

  • Emscripten: Emscripten is required to compile the game for the web.
  • CMake: CMake is used for building the project.
  • Python3: Python3 is required by Emscripten for various tools. If you install Emscripten via the SDK, or package managers such as Homebrew and Pacman, Python3 will be automatically installed as a dependency.
  • SDL2: The game uses SDL2 for handling graphics and input. Emscripten will automatically handle this via its ports, and so SDL2, SDL2_image, SDL2_mixer, and SDL2_ttf are only required as separate installations if you intend to build natively instead of for the web.

Install these requirements using your method of choice, e.g. on Arch Linux:

sudo pacman -S cmake emscripten

Or on macOS:

brew cmake emscripten

Build & Run

The project uses CMake for building. You can use the build.sh script to compile the project with different build modes.

  • Run the following to build the project:
./scripts/build.sh --debug
  • By default, the build type is debug. To build with optimizations, use release:
./scripts/build.sh --release

2. Running the Game in the Browser

To run the game in a browser, use the run.sh script:

./scripts/run.sh

This will serve the game in a browser window.

License

This project is licensed under the MIT License.

Credits

  • Font: "Monogram" font by datagoblin (CC0 license)

About

A simple browser-based game about skipping, built using C, SDL2, and compiled to WebAssembly using Emscripten

Resources

License

Stars

Watchers

Forks