A RPG Framework for Love2D
Find a file
2019-03-16 12:54:54 +01:00
libs libs: add needed libs 2019-03-16 12:54:54 +01:00
modules fork core from latest imperium-porcorum version 2019-03-16 12:27:38 +01:00
debug.lua fork core from latest imperium-porcorum version 2019-03-16 12:27:38 +01:00
init.lua fork core from latest imperium-porcorum version 2019-03-16 12:27:38 +01:00
input.lua fork core from latest imperium-porcorum version 2019-03-16 12:27:38 +01:00
lang.lua fork core from latest imperium-porcorum version 2019-03-16 12:27:38 +01:00
LICENSE Initial commit 2019-03-16 12:24:42 +01:00
options.lua fork core from latest imperium-porcorum version 2019-03-16 12:27:38 +01:00
README.md readme: don't show the scene loading in the basic loading code 2019-03-16 12:49:36 +01:00
scenemanager.lua fork core from latest imperium-porcorum version 2019-03-16 12:27:38 +01:00
screen.lua fork core from latest imperium-porcorum version 2019-03-16 12:27:38 +01:00

gamecore

Gamecore aim to be an integrated, simple core system for love2D. It aim to make work in a integrated way several managers to automatically handle inputs, screen, and several utilities to make game developpement easier and less repetitive.

Gamecore use Classic as its base Object

How to load GameCore

To load gamecore, you basically need the following code.

utils   = require "libs.loveutils"
Object  = require "libs.classic"
Core    = require "gamecore"

function love.load()
  core = Core()
end

function love.update(dt)
  core:update(dt)
  game:update(dt)
end

function love.draw()
  core:draw()
end

function love.mousemoved(x, y, dx, dy)
  core:mousemoved(x, y, dx, dy)
end

function love.mousepressed( x, y, button, istouch )
  core:mousepressed(x, y, button, istouch)
end

Then you have to create some scene object,

Gamecore managers

  • Debug

  • Input

  • Lang

  • Options

  • Screen

  • Scene Manager

GameCore modules

Modules are utilies that you can load everywhere in your code and that aren't loaded specifically inside the core.

  • Scene Object

  • Assets

  • Menu System