Eros is a löve framework to make game development easy.
Copy the eros directory to the root of your project and then add this to the first line of your main.lua file:
require 'eros'This will add everything you need to start working with Eros.
All the naming conventions is straight out of GM:S. I didn't wanted to create a new standard since many people (like me) already memorized all the names and workflow. A GML to Lua translation tool can be made at some point for easy porting of pre-existing projects.
You can include sprites in your game by using the "create_sprite" function.
create_sprite(path, image_number, xoffset, yoffset)Backgrounds are sprites with less properties and closely related with the rooms. To add a background:
background_test = create_sprite(path)If you want to set a background on a room:
example_room = {
background_image = background_test
}Objects are based on SECL class system. To create one is as simple as:
-- Declaring an object
obj_test = create_object()
-- Now that the object is declared you can set a sprite or other properties to it.
obj_test.sprite_index = spr_vs
obj_test.image_speed = 0.1TTF fonts can be imported as easy as:
create_font (fontname, size)room_a = {
background_color = {100, 100, 100},
background_image = background_test,
instances = {
instance_create(120, 20, obj_test)
}
}The camera needs to be adapted for a easier use and document.
- Sounds and music
- Optimize newQuad on sprite create instead of draw event
- Tile sets
- Create executable from project
Anything else that is not included here can be complemented with the default functions and libraries made for löve.
🎶 All you need is löve ~
I'm using Atom editor to work on löve games with the following packages:
Copyright (C) 2015 Emilio Coppola <emilio@evelend.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.