Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.28 KB

File metadata and controls

54 lines (40 loc) · 1.28 KB

Arkanoid

This project is a C implementation of the classic game Arkanoid, based on the Raylib tutorial. It includes a Makefile to compile the project for both native Linux and WebAssembly using emcc.

Features

  • Native Build: Compile and run on Linux.
  • WebAssembly Build: Compile to WebAssembly for running in the browser.
  • Powered by Raylib, a simple and easy-to-use library for game development.

Prerequisites

Native Linux Build

  • GCC or Clang
  • Raylib installed on your system (sudo apt install libraylib-dev on Debian-based systems)

WebAssembly Build

Installation

  1. Clone the repository:
    git clone https://github.com/Rococcoon/Arkanoid.git
    cd Arkanoid

Install dependencies for your build target:

  • Linux: Install Raylib as described above.
  • WebAssembly: Install and activate the Emscripten SDK.

Build

Linux

  • Compile the project:
    make
  • Run the project:
    ./arkanoid
    

WebAssembly

  • Compile the project:
    ./emcc.sh
  • Serve the files locally (e.g., using Python's HTTP server):
    python3 -m http.server