Vapor - LÖVE Distribution Client

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: Vapor - LÖVE Distribution Client

Post by Positive07 »

davisdude wrote:
josefnpat wrote:Please do some research before saying such things. https://github.com/josefnpat/vapor/issues/81 Vapor was designed from the ground up with 0.7.2, 0.8.0 and 0.9.0 + being available. It just needs someone to do that.
My bad. Last time I tried running it with 0.9.0 it threw up a bunch of errors.
He means that the code can be "adapted" or used to run and download other love versions's games (I don't think I got that right but I guess it's understandable). Of course most of the code has to be translated to the new love's API, but even then it's usable.

Also in the games.json you have to specify your love version thought currently 0.8 is the only supported one.

We just need to give vapor more support and a better uploading interface and we are done.

I'll try to help you josefnpat thought I don't really know how to support both versions at the same time... I'm thinking about a .love file that can run .love files maybe but I guess that is a little bit difficult
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Vapor - LÖVE Distribution Client

Post by josefnpat »

Vapor is currently a mess, with the API intertwined with the UI system.

I am currently reworking it in 0.9.0 so that the vapor API will be able to handle multiple frameworks (love 0.9.0 and love 0.8.0). Most importantly, I am also making almost everything into objects! On top of that, I will use my new knowledge of LuaDoc to fully document it, so that developers will have a fun time developing for it.

When I have a rudimentary version working, I will be looking to the community to help write and maintain UI's using vapor's new API.

The main.lua for vapor will look something like this:

Code: Select all

vapor = require("vapor")

v = vapor.new()
v:addFrameworkDatabase("http://50.116.63.25/public/vapor/","frameworks.json")
v:addGameDatabase("http://50.116.63.25/public/vapor/","games.json")

ui = require("ui.default")

u = ui.new(v)

function love.update(dt)
  u:update(dt)
end

function love.draw()
  u:draw()
end
With a "v:getGames()" and "v:getFrameworks" you will be able to get all the metadeta you need for the UI.

For example:

Code: Select all

for _,game in pairs(v:getGames()) do
  print(game:getName())
end
I'm thinking the default UI will be CLI based, so that the community can take a shot at making UI's using loveframes, etc.
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: Vapor - LÖVE Distribution Client

Post by Positive07 »

Awesome! Tell me if you need help
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 221 guests