Giter Club home page Giter Club logo

love2diso's Introduction

Fennel + Love2D + Neovim

This template is based on the min-love2d-fennel repository with two differences:

  • get rid of everything that is not absolutely necessary to avoid any clutter
  • adapt the documentation for the usage with Neovim and Conjure (as this is what I use)

What you do need

love2d needs to be installed and available on PATH

What you do NOT need

  • you don't need Lua to be installed
  • you don't need LuaRocks to be installed
  • you don't need Fennel to be installed

Everything Lua related is handled by love2d

Usage with Neovim and Conjure

Setup

If you have set exrc you can just open game.fnl and the game will start automatically. If not you must execute the commands in .nvim.lua manually first. I.e.

  • execute :lua vim.g['conjure#filetype#fennel'] = "conjure.client.fennel.stdio" before opening the project
  • execute :lua vim.g['conjure#client#fennel#stdio#command'] = "love ." before opening the project
  • open game.fnl and love should start the game automatically

Reload

In order to hot reload changes made to the code use ConjureFnlEvalReload

The default keybinding is <localleader>eF

Modify

You can edit the game's state with ease from the REPL:

(set state.x 50)
(tset state :y 100)

Credits

  • love2d for making game development in Lua possible
  • min-love2d-fennel for the inspiration and especially for lib/stdio.fnl
  • The Conjure plugin for the awesome editing experience in Neovim

love2diso's People

Contributors

0x3444ac53 avatar raoulmillais avatar theblob42 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.