Skip to content

sabastianpeters/web-tetris

Repository files navigation

A barebones implementation of Tetris playable here on the web.


Implemention focuses only on

  • basic input handling
  • texture drawing
  • font drawing
  • playable on web

Building tested only on MacOS, and only for Web builds.


Building and running requires

./build_web.sh to build project

./run_web.sh to run project


To deploy to itch.io, zip and upload these files:

./build_web/index.html
./build_web/index.data
./build_web/index.wasm
./build_web/index.js

Code inspired by

https://learnopengl.com/In-Practice/2D-Game/Breakout

https://github.com/pongasoft/emscripten-glfw/tree/master/test/demo/src

https://github.com/emscripten-core/emscripten/tree/main/test/third_party/glbook

https://github.com/love2d/love

https://github.com/raysan5/raylib

https://github.com/Anuken/Mindustry


Additional resources

https://emscripten.org/docs/getting_started/index.html

https://freetype.sourceforge.net/freetype2/docs/reference/ft2-base_interface.html

https://registry.khronos.org/OpenGL-Refpages/gl4/

https://libgdx.com/wiki/graphics/opengl-es-support

About

Small project to get practice with C++, CMake, GLFW, OpenGl & Emscripten.

Resources

Stars

Watchers

Forks