Skip to content

Latest commit

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

"Project L.A. Sue"

AKA "Project Ben Biri"

Game for Ludum Dare 47 - "Stuck in a loop"

Setup

  1. Install Love2d https://love2d.org/#download
  2. (Windows) add "C:\Program Files\LOVE" to your path - guide

VSCode

In VSCode, press F4 then choose "Launch game".

Lua reference

Lua packages

Copy files into /src/lib then reference them with `require "lib/"

Lua classes

Reference

Create a class with

MyClass= { }
functionMyClass:create()
instance= {}
setmetatable(instance, self)
self.__index=selfreturninstanceend

extend a class with

SubClass=MyClass:create()

add a method to your class with

functionClass:foo()
print("Hello world");
end-- Methods on subclasses will be used instead of the method on the parent class.functionSubClass:bar()
self.foo()
end

call methods with :

localinstance=SubClass:create()
instance:bar() -- This will print "Hello world"

set and define properties with .

instance.prop="hi"print(instance.prop)

About

Ludum Dare 47

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages