Skip to main content

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

Getting started with Fennel and LÖVE

A topic by Alex ☕🇨🇦 created Feb 04, 2024 Views: 407 Replies: 1
Viewing posts 1 to 2
(+1)

Just getting started with Löve2d and interested in lisp languages? Check out love2d with fennel!

A minimal setup can be found at:https://gitlab.com/alexjgriffith/min-love2d-fennel

What this setup provides:

  1. Build scripts for Mac, Windows, and Linux
  2. Included build tools to target HTML5 (Limited to LOVE 11.4) (example)
  3. Fennel Macro searchers!
  4. Error handling (boots you to a recoverable error screen)
  5. The latest version of fennel (1.4)

Note that this setup can be run on windows with mingw, but is primarily aimed at linux development.

Where to Start?

I highly recommend checking out the blog posts by Phil Hagelberg about his use of fennel for his 2018 submission Exo Encounter 667. The source for which can be found here

There is also a built in REPL on the languages home page that you can test out the language! https://fennel-lang.org/

Games Made Using Love2D and Fennel

This is not an exhaustive list! I can include your game if you comment below.

Other resources:

Recommended Libraries

You don’t need any libraries to make a game! The ones mentioned here help solve specific problems.

Lume

https://github.com/rxi/lume

  • Provides functional style functions, e.g. reduce, map, etc.
  • Provides some nice to haves that are not available in the lua standard library like lerp and split (for spiting strings).

ANIM8

https://github.com/kikito/anim8

If you need sprite animation, check out ANIM8!

Bump

https://github.com/kikito/bump.lua

Bump is an axis aligned bounding box collider. It has a bunch of useful built in presets for triggering actions following collisions. If you’re writing a platformer (without ramps) I highly recommend bump!

Tiled

https://github.com/karai17/Simple-Tiled-Implementation

If you use want to use Tiled (https://mapeditor.org) check out the Simple Tiled Implementation! It works well with bump.

Host(+1)

Always appreciate your Fennel post in here! Would love to know about people using it for their jam entries <3