2dengine / love.maker Goto Github PK
View Code? Open in Web Editor NEWA library that can minify, compile and compress your LÖVE2D project folder
License: MIT License
A library that can minify, compile and compress your LÖVE2D project folder
License: MIT License
Current version is on root of project here main.lua
located. I suggest it should be possible to make a zip out of a project's sub-directory.
Suggestion example:
love.maker = require("maker.main")
local assetBuild = love.maker.newBuild("assetDir", "txt", "png", "json", "xml")
assetBuild:save("gameasset.zip") -- iterate over "assetDir" and save into a zip.
I managed to get it work without love.maker
and directly using zapi
:
local zapi = require("maker.main.zapi")
zapi.writeZip("assetDir", "gameasset.zip")
I found these are the problem that cause file not being written on Linux. I managed to get it writing the file by replace these with love.filesystem
.
Also zorg said on forum:
As for lua itself, these would be best avoided:
- dofile, loadfile (not loadstring or load), the whole io library, os.remove, os.rename, os.tmpname -> due to the fact that paths can behave differently on different OS-es. one exception: with some editors, to have console output, you need to do io.setvbuf('no').
I found these are the problem that cause file not being written on Linux. I managed to get it writing the file by replace these with love.filesystem
.
Also zorg said on forum:
As for lua itself, these would be best avoided:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.