# Make a game with Hoot for the Lisp Game Jam!

**URL:** <https://community.spritely.institute/t/make-a-game-with-hoot-for-the-lisp-game-jam/493>\
**Category:** Hoot: Guile in WASM\
**Tags:** wasm\
**Created:** [May 15, 2024, 6:23pm UTC](https://community.spritely.institute/t/make-a-game-with-hoot-for-the-lisp-game-jam/493 "2024-05-15T18:23:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dthompson](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spritely.institute/dthompson/32/95_2.png) [@dthompson](https://community.spritely.institute/u/dthompson)\
**Post date:** [May 15, 2024, 6:23pm UTC](https://community.spritely.institute/t/make-a-game-with-hoot-for-the-lisp-game-jam/493/1 "2024-05-15T18:23:12Z")

</div>

Hey everyone! The [Spring Lisp Game Jam](https://itch.io/jam/spring-lisp-game-jam-2024) is starting this Friday, May 17th and we’d like to encourage people to try using Hoot to make HTML5 games! All the details are in our new blog post so check it out for more info.

> **[Make a game with Hoot for the Lisp Game Jam! -- Spritely Institute](https://spritely.institute/news/make-a-game-with-hoot-for-the-lisp-game-jam.html)**

---

<div class="post-metadata">

**Author:** ![spacebarista](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@spacebarista](https://community.spritely.institute/u/spacebarista)\
**Post date:** [May 17, 2024, 4:28am UTC](https://community.spritely.institute/t/make-a-game-with-hoot-for-the-lisp-game-jam/493/2 "2024-05-17T04:28:28Z")

</div>

I’ve been trying to use your [template](https://gitlab.com/spritely/guile-hoot-game-jam-template) on Debian by compiling my own guile (v3.0.9) and guile-hoot (HEAD). I’ve written this script named `guile`:

```bash
#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
"$SCRIPT_DIR/pre-inst-env" "$HOME/code/guile/guile-v3.0.9/bin/guile" "-L" "$HOME/code/git/guile-hoot "$@"

```

which invokes `pre-inst-env` from `guile-hoot`.

What I do is `export PATH="$my_guile_dir:guile-v3.0.9/bin:$PATH"` so that it grabs v3.0.9 `guild` but also uses my `guile` bash script for `guile`.

Although unrelated, for convenience I’ve also added a `.dir-locals.el` with

```lisp
((nil . ((geiser-guile-binary "$my_guile_dir/guile"))))

```

However, running your template’s `make` fails because `guild` complains that the `compile-wasm` script is missing.

Any ideas? I see `compile-wasm` under `module` in `guile-hoot` but I’m not sure how to tell `guild` to pick it up.

---

<div class="post-metadata">

**Author:** ![spacebarista](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@spacebarista](https://community.spritely.institute/u/spacebarista)\
**Post date:** [May 17, 2024, 6:14am UTC](https://community.spritely.institute/t/make-a-game-with-hoot-for-the-lisp-game-jam/493/3 "2024-05-17T06:14:33Z")

</div>

I think I need to mess with all the `GUILE_LOAD` and `HOOT_` environment variables myself to get it working. I’ll post back after trying this.

Edit:

Oh yeah I just added an `activate` script that exports all the relevant `GUILE_` and `HOOT_` variables and now it’s working! As for invoking guile (geiser) from Emacs, I wrote another script that first sources the activate script and then passes to guile, and that’s what my `.dir-locals.el` is pointing to.

---

<div class="post-metadata">

**Author:** ![jcarvajal288](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@jcarvajal288](https://community.spritely.institute/u/jcarvajal288)\
**Post date:** [May 17, 2024, 11:13pm UTC](https://community.spritely.institute/t/make-a-game-with-hoot-for-the-lisp-game-jam/493/4 "2024-05-17T23:13:13Z")

</div>

Hi, I’m trying to set up the game template, and when I run `guix shell`, I get back `error: guile-hoot: unbound variable; hint: Did you forge a 'use-modules' form?`

I’m new to Scheme/Guile, so I’m not sure what information you might need. I installed Guix from their install script on Fedora 38, if that helps.

---

<div class="post-metadata">

**Author:** ![dthompson](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spritely.institute/dthompson/32/95_2.png) [@dthompson](https://community.spritely.institute/u/dthompson)\
**Post date:** [May 17, 2024, 11:37pm UTC](https://community.spritely.institute/t/make-a-game-with-hoot-for-the-lisp-game-jam/493/5 "2024-05-17T23:37:01Z")

</div>

Hi @jcarvajal288, I think the Guix you installed is just a bit old. Guix is a rolling release distro and moves quite quickly. To update, run `guix pull`. When it completes, run `hash guix` just to ensure that your shell notices the updated executable. To test if all is well, run `guix show guile-hoot` to make sure it knows about the package. Make sure that you’re seeing Hoot 0.4.1 in the output. You should be able to use `guix shell` after that. Hope this helps!

---

<div class="post-metadata">

**Author:** ![jcarvajal288](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@jcarvajal288](https://community.spritely.institute/u/jcarvajal288)\
**Post date:** [May 18, 2024, 12:10am UTC](https://community.spritely.institute/t/make-a-game-with-hoot-for-the-lisp-game-jam/493/6 "2024-05-18T00:10:14Z")

</div>

That worked; the game is running! Thanks for your prompt reply.

---

<div class="post-metadata">

**Author:** ![liltechdude](https://avatars.discourse-cdn.com/v4/letter/l/8c91f0/32.png) [@liltechdude](https://community.spritely.institute/u/liltechdude)\
**Post date:** [September 12, 2024, 8:43am UTC](https://community.spritely.institute/t/make-a-game-with-hoot-for-the-lisp-game-jam/493/7 "2024-09-12T08:43:13Z")

</div>

When next Jam planned?

---

<div class="post-metadata">

**Author:** ![dthompson](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spritely.institute/dthompson/32/95_2.png) [@dthompson](https://community.spritely.institute/u/dthompson)\
**Post date:** [September 12, 2024, 11:25am UTC](https://community.spritely.institute/t/make-a-game-with-hoot-for-the-lisp-game-jam/493/8 "2024-09-12T11:25:07Z")

</div>

End of October [Autumn Lisp Game Jam 2024 - itch.io](https://itch.io/jam/autumn-lisp-game-jam-2024)
