Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Minimal Love2D and Fennel Setup

A topic by Alex ☕🇨🇦 created Apr 09, 2020 Views: 1,210 Replies: 6
Viewing posts 1 to 3
Submitted (4 edits) (+2)

The minimal setup needed to get started with love2d and fennel has been updated!

It now includes the latest version of fennel, and set to work with the latest version of love2d (11.3) by default.

https://gitlab.com/alexjgriffith/min-love2d-fennel

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

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

Submitted(+2)

Thanks Alex!

Another great library if you use loved2 (either Fennel or Urn) is Simple Tiled Implementation; it makes it really easy to use maps from Tiled (https://mapeditor.org) and it integrates with Bump for collision detection: https://github.com/karai17/Simple-Tiled-Implementation

Submitted(+1)

Hey. Here's another example of the game made using Fennel + Love2d: https://github.com/lockie/backpackles (full disclosure: I'm the author :P)

Submitted

Neat looking game! Great use of lighting! I’ve added it to the list.

Are there specific build instructions? I can’t seem to get it running from source.

Error

Could not read Ogg bitstream


Traceback

[C]: at 0x7f06ba3ab440
[C]: in function 'newSource'
./globals.fnl:1: in main chunk
[C]: in function 'require'
./intro.fnl:1: in main chunk
[C]: in function 'require'
./wrap.fnl:8: in main chunk
[C]: in function 'require'
main.lua:7: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
Submitted (1 edit)

Thanks!

That's weird error. Try installing latest love2d (use this ppa if you're on ubuntu). Also, assets are stored using Git LFS, make sure you've got them, e.g. execute command 

git lfs fetch --all
Submitted(+1)

Got it working! I’ve never worked with git-lfs before :)

sudo apt-get install git-lfs
git fetch --all
git pull
git lfs fetch --all
git lfs pull

Backpackless 2019 GMTK Fennel LOVE2D submission

Submitted

Yay I'm glad it worked :)