Skip to content
lamweilunPublic

About

Simple pong game coded in Zen-C and raylib, meant to be ran on a browser

Resources

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zc_pong

Description

This project serves as a practice of using only pure Zen-C to compile and link against raylib to generate a wasm build of a simple pong game.

Check out the Zen-C programming language here! Kudos to Zuhaitz-dev for creating what I would call, cppfront of the C language.

Game

Play it here https://lamweilun.github.io/zc_pong

Controls for the game:

  • W/S to control the left paddle
  • I/K to control the right paddle

Build Instructions

NOTE: Zen-C is still heavily in development. So far, built and tested on Linux using this specific commit of Zen-C. But it should work with any newer versions of Zen-C.

  1. Setup emscripten
  2. Setup Zen-C compiler
  3. Clone this repo
  4. Modify any code in main.zc as you see fit
  5. Build with the following commands...
    • Use this if you want to use emscripten's html
      • zc build main.zc --cc emcc -o main.html
    • Use this if you want to just update the JS and WASM file, maintaining the provided HTML file
      • zc build main.zc --cc emcc -o main.js

About

Simple pong game coded in Zen-C and raylib, meant to be ran on a browser

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages