Skip to content

kikonen/love-test

Repository files navigation

LÖVE test

Intro

Exprimenting with Löve2D framework

https://love2d.org

Screenshot

Running in Vmware linux guest image

Setup

Repo

~/work/own/projects
git@github.com:kikonen/love-test.git

LÖVE

cd /tmp
wget https://github.com/love2d/love/releases/download/11.5/love-11.5-x86_64.AppImage
mv love-11.5-x86_64.AppImage ~/bin
cd ~/bin
chmod +x love-11.5-x86_64.AppImage love
ln -sf love-11.5-x86_64.AppImage love
ls -al *love*

Libraries

Libraries required for compiling dependencies

sudo zypper install luajit-devel ode-devel

Modules

Fetch external module dependencies

git submodule init
git submodule update

Install: moonode

cd ~/work/own/projects/external
git clone git@github.com:kikonen/moonode.git
cd moonode
git branch -a
git checkout windows/luajit
make
cp -a src/moonode.so ~/work/own/projects/love-test

Install: moonglmath

cd ~/work/own/projects/external
git clone git@github.com:kikonen/moonglmath.git
cd moonglmath
git branch -a
git checkout windows/luajit
make
cp -a src/moonglmath.so ~/work/own/projects/love-test

Install: moonimage

cd ~/work/own/projects/external
git clone git@github.com:kikonen/moonimage.git
cd moonimage
git branch -a
git checkout windows/luajit
make
cp -a src/moonimage.so ~/work/own/projects/love-test

Run

cd ~/work/own/projects/love-test
love .

3D control

Using example from 3DreamEngine

Viewport

  • W, A, S, D: up, left, down, right
  • Q, E: rotate left/right
  • page up: up
  • page down: down
  • mouse + button-1: rotate

Paddle

  • up, down: move Z dir
  • left, right: move X dir
  • home, end: move Y dir

Notes

ODE

Geometry

  • These functions set and get the body associated with a placeable geom. Setting a body on a geom automatically combines the position vector and rotation matrix of the body and geom, so that setting the position or orientation of one will set the value for both objects.
  • Setting a body ID of zero gives the geom its own position and rotation, independent from any body. If the geom was previously connected to a body then its new independent position/rotation is set to the current position/rotation of the body.

References

Lua

LÖVE

moonode integration

About

Löve lua 2D game library experimentation

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages