Stream: show and tell

Topic: Dog Park


view this post on Zulip Steve Howell (Oct 20 2026 at 20:53):

I made a little game called Dog Park that is mostly in Roc, but also has JS and zig.

Most of the world configuration is in Roc: https://github.com/showell/dog-park/blob/main/roc/World.roc

The basic physics scheme is in Roc as well: https://github.com/showell/dog-park/blob/main/roc/Walk.roc

Without spoiling the game, once you leash a dog, all the nearby critters react to the dog based on their local environment (some critters attract, others repel) and paced by the lead dog's motion.

Play it here: https://dogpark.lynrummy.com/dogpark

view this post on Zulip Steve Howell (Oct 20 2026 at 20:53):

image.png

view this post on Zulip Steve Howell (Oct 20 2026 at 20:55):

There's a game server that mostly just validates moves and persists your last game with a cookie. All the real action happens in the browser, so the Roc is compiled to wasm, as is the zig, and then there is a really light JS layer for the buttons and pointer capture.

view this post on Zulip notramo (Oct 20 2026 at 21:08):

I like the messages on invalid moves.

view this post on Zulip notramo (Oct 20 2026 at 21:08):

Is the game concept original or some adaptation?

view this post on Zulip Steve Howell (Oct 22 2026 at 09:59):

notramo said:

Is the game concept original or some adaptation?

The game concept came out of my head. I lived across the road from a cow pasture last summer, so it's hard to call it original. :)

view this post on Zulip Steve Howell (Oct 23 2026 at 21:17):

Dog Park now runs on roc-ray as well:

20261023-2115-33.5990510.mp4

See also #show and tell > browser canvas apps (and roc-ray). I've got the pattern down for supporting canvas and native. At least for silly little games. :slight_smile: :service_dog: :cow:

view this post on Zulip Steve Howell (Oct 23 2026 at 21:20):

https://github.com/showell/dog-park/blob/main/roc/native.roc


Last updated: Nov 04 2026 at 18:54 UTC