Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Make a browser game in Scheme with Hoot

A topic by David Thompson created 68 days ago Views: 305 Replies: 3
Viewing posts 1 to 3
Jam HostSubmitted

If you are interested in making a web browser game with Scheme then Hoot is a great option for you! Hoot is a Scheme to WebAssembly compiler that supports R7RS-small, a subset of Guile such as delimited continuations (useful for scripting games via coroutines), and some of R6RS. The  Hoot game jam template repository on Codeberg has everything you need to get started.

The template repository includes:

  • Bindings to the necessary web APIs to make an interactive game with HTML5 canvas
  • A Makefile for compiling, running a development web server, and generating a .zip bundle for uploading to itch.io
  • A very simple Breakout-like example game that demonstrates how to put all the pieces together

Some games made with Hoot for past jams:

I'll do my best to help anyone that uses Hoot for the jam, whether here in this forum, on the official Spritely forum, or on the #spritely channel on the Libera.Chat IRC network. Have fun!  馃

How did you add the mobile touchscreen controls to Cirkoban, and would it be easy to copy over to a new project?

Jam HostSubmitted(+1)

I think it would be fairly easy to port over. It was quite the last minute hack for Cirkoban and would certainly need tweaking for another game but here's the relevant commit: https://codeberg.org/spritely/cirkoban/commit/aa0c826b3c7b0a0cd44940c6952f0a2db5...

I took one of Kenney's CC0 on-screen control SVGs and embedded it directly into the HTML and used ids within (I think I added them manually or at least changed the existing ones to be human-meaningful) to listen for click events on the various buttons.

(+1)

protoculture is an animation library for hoot
https://sr.ht/~bonthron/protoculture/

Caveat emptor: It is WAY hacky! and has lots of missing features! i am NOT recommending it. Nonetheless,  it does implement some things you may be interested in, like a preloader. Copy as much or little as you like.  

protoculture is a 2D retained-graphics library for hoot. It provides a hierarchical display list for composing shapes, images, and text, which, can be manipulated, animated, and interacted with directly. The api is similar to pixi or flash. Includes: a pre-loader for images and fonts, stackable drawing layers, tween-based animation with easing, frame rate control, compositing, caching.

this game jam entry was built using it: https://bonthron.itch.io/eva
game source: https://git.sr.ht/~bonthron/eva