Small loderunner clone for the 2024 game jam
Find a file
2024-05-22 16:13:55 +02:00
.guix/modules use org for README. Initial other model. GUIX package 2024-05-22 12:08:20 +02:00
assets clean up git files 2024-05-22 13:14:36 +02:00
game render others and integrate model in main 2024-05-22 12:53:01 +02:00
scripts add dthompson game template 2024-05-17 23:49:31 +02:00
.gitignore succeeded adding the assets to the bundle 2024-05-22 16:13:55 +02:00
bootstrap.sh add dthompson game template 2024-05-17 23:49:31 +02:00
bundle.scm fix title, reduce chattiness 2024-05-21 21:45:48 +02:00
channel.scm succeeded adding the assets to the bundle 2024-05-22 16:13:55 +02:00
configure.ac fix build config 2024-05-22 13:58:56 +02:00
guix.scm use org for README. Initial other model. GUIX package 2024-05-22 12:08:20 +02:00
LICENSE Initial commit 2024-05-17 15:03:07 +02:00
Makefile.am succeeded adding the assets to the bundle 2024-05-22 16:13:55 +02:00
pre-inst-env.in add dthompson game template 2024-05-17 23:49:31 +02:00
README.org succeeded adding the assets to the bundle 2024-05-22 16:13:55 +02:00

Bloatrunner

A Lode Runner clone where you have to manage your waistline bloat.

![Screenshot of Bloatrunner](assets/images/glamshot.png)

As a Bloatrunner you have to collect keys to open the gate at the top of the level. However running costs energy, and as in any endurance event energy management and correct fueling is of utmost importance. By running your glycogen reserves in your muscles will deplete and need to be replenished either from food or from fat reserves.

Your running kit has some small pockets to store a few gels or packets of gummi bears for fast energy replenishment. You will find replacements from time to time. In addition there will be other food items distributed over the levels.

However as in real life it seems that most food items are unhealthy and for some reason irresistable so they are consumed immediately. Similarly for some reason it seems that food turns immediately into fat and takes forever to burn off. And too much fat makes you slow and even worse might make passing the finish gate a squeeze or plainly impossible.

And then there are the others, which for some reason can run without getting tired, eat without getting fat, voice their judgmental opinions and generally make a nuisance of themselves. Close contact with these makes you lose the will to live and turns you into a couch potato, ceasing to be a Bloatrunner.

A freak accident involving some radioactive meteorite allows you to create craters at will, well, more like potholes. But big enough to let the others fall in so you can pass over their head.

So now, go out, collect the keys and maintain a healthy diet!

Game Plan [7/16]

  • start project organization
  • select some assets to start with
  • animate hero
  • figure out tile maps
  • create hero entity
  • implement hero movement
  • create other entity
  • bundle game for distribution
  • upload to itch.io
  • automate upload to itch.io
  • create other's AI
  • add keys and portal
  • add foods and bloat indicator
  • scale hero waist related to bloat level
  • create more levels
  • some level celebration/animation

Installation and Development

Using Guix

We highly recommend using [Guix](https://guix.gnu.org/) to manage your development environment. Once Guix is installed, getting all of the dependencies you need to develop is easy. Just run `guix shell` from the root directory of this repository and you'll be good to go!

In a hosted guix you can ensure you are in your profile by setting the environment in a `.envrc` file

``` export GUIX_PROFILE="home/pti.config/guix/current" source "$GUIX_PROFILE/etc/profile" export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale" use guix -l guix.scm

```

Building from source

``` Assuming Guile and Chickadee are installed on your system, a fresh project can be built like so:

./boostrap.sh ./configure make -j$(nproc) ```

After the build system is initialized, only `make` needs to be run to recompile the Scheme modules.

Note: On hosted guix the configure script might find the host guile version instead of the guix provided one. This can lead to incompatible bytecode errors. To force to use a consistent guile use

``` ./configure GUILE=$(which guile) ```

to ensure the right version is configured.

Running the game

To run the game from the source checkout, use the `pre-inst-env` wrapper script:

``` ./pre-inst-env run-game ```

REPL-driven development

After the game is launched, a Guile REPL server will be running on port 37146. We recommend using the [Geiser](https://geiser.nongnu.org/) Emacs extension for connecting to it using `M-x connect-to-guile`. Once Geiser connects to the REPL, the game can be modified while it runs!

When the environment is set as indicated above and the emacs direnv module is enabled, we can run `geiser-guile` as usual and everything should work as expected.

To restart the game on crash I use watchexec to observe the folder and restart on crash when the code is updated. That avoids scrolling errors so I can read the error and immediately see if it is fixed on saving.

``` $ watchexec -e .scm ./pre-inst-env run-game ```

TODO Bundling

Use `guix pack`.

For this we need a proper package definition in a module with the build instructions and sources and outputs.

I followed the instructions at Ultimate Guide to Software Development with Guix .

To add the assets we need to define them

asset_files = \
  assets/images/simples_pimples.png \
  assets/images/lr_penguin2.png \
  assets/images/glamshot.png \
  assets/levels/level1.tmx \
  assets/levels/tiles.tsx \
  assets/levels/level-1.map

nobase_dist_pkgdata_DATA = $(asset_files)

...
EXTRA_DIST = 					\
  $(SOURCES)				\
  $(subdir_files)
  README.org

see Architecture independent datafiles section of the automake manual.

guix pack -L .guix/modules bloatrunner

Generates a 750Mb installed folder structure with everything in it, theoretically