Skip to content

LoveRay2d is not 100% compatible with the original Love2d, but it includes the main events that are compatible with Love2d’s characteristics of input, draw, and transform.

Notifications You must be signed in to change notification settings

akadjoker/LoveRay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LoveRay

LoveRay2d is not 100% compatible with the original Love2d, but it includes the main events that are compatible with Love2d’s characteristics of input, draw, and transform.

Love2d using only Lua, Raylib, and Chipmunk2d for physics.

Features:

  • Fast and efficient 2D rendering using the Raylib library
  • Accurate and realistic 2D physics simulation using the Chipmunk2D library
  • Lua script support for game logic and events
  • Easy to use
  • Support for audio, keyboard and mouse input, and other common 2D game features

Api List chipmunk

newShapeFilter newDynamic newStatic newKinematic

newPinJoint newSlideJoint newPivotJoint newRatchetJoint newGearJoint newMotor newGrooveJoint
newRotaryLimitJoint

getStaticBody

update draw clear setGravity setDebugFill

getBodyAtPoint getBodyAtMouse

;Body remove addBox addCircle addLine setPosition getPosition setAngle getAngle setMass getMass getVelocity setVelocity getAngularVelocity setAngularVelocity setForce getForce setTorque getTorque applyForceAtWorldPoint applyForceAtLocalPoint applyImpulseAtWorldPoint applyImpulseAtLocalPoint getVelocityAtWorldPoint getVelocityAtLocalPoint setCenterOfGravity getCenterOfGravity localToWorld worldToLocal

;Shape setSensor getSensor setElasticity getElasticity setFriction getFriction setSurfaceVelocity getSurfaceVelocity setFilter getFilter getMoment getArea getCenterOfGravity

;Joint remove setAnchoB setAnchorA setMaxForce

;Keyboard

isDown check down press release up keyPressed charPressed setExitKey

;Mouse getPosition getDelta getX getY isDown check press release

;Timer getTime getDelta getFPS

;Os getOS getMemUsage

;Filesystem exists isFile getInfo isDirectory getWorkingDirectory getPath read load

;Audio setMasterVolume newSound newMusic

;Music isPlaying play pause stop resume seek setVolume setPitch setPan getTimeLength getTimePlayed

;Sound play stop pause resume setVolume setPitch setPan isPlaying

;Graphics setBackgroundColor setColor getFont getWidth getHeight pop push rotate scale translate shear clear begin present draw point line rectangle circle print newImage newQuad newSound newFont

PS: I don't know if I'm going to update this project because I'm making another version that isn't compatible with Love2d but a framewoek with other types of features that I think are important for game development https://djokergames.wordpress.com/news/

About

LoveRay2d is not 100% compatible with the original Love2d, but it includes the main events that are compatible with Love2d’s characteristics of input, draw, and transform.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published