Love2D WebPlayer (WebGL)
Re: Love2D WebPlayer (WebGL)
Technically,they don't need to use it! You just have to bundle your game with it and send it to them! Either or do what kongregate does, embedd the game window into an iFrame
Re: Love2D WebPlayer (WebGL)
Well, the game should be a .swf or .flv file normally, so it's better asking before trying
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: Love2D WebPlayer (WebGL)
Send a JS/HTML5 game to a game flash dedicated website? That's not natural!Nixola wrote:Well, the game should be a .swf or .flv file normally, so it's better asking before trying
Unless they host also JS games that don't seem the case.
Nixola why you don't get a free website with php capability and host there your game?
BTW .flv is usually the "flat" flash video extension so (interactive) games don't use it And .fla is the main source code that some flash game hosting could ask to implement their "ad" or "ladder" API's.
Re: Love2D WebPlayer (WebGL)
One (and only one) of their games was a .flv file... Anyway, I already have a website with php capability, I'm trying to make Play! work there but the webplayer doesn't seem to have sounddatas...
EDIT: setPitch doesn't do anything and source:Stop() isn't implemented...
EDIT: setPitch doesn't do anything and source:Stop() isn't implemented...
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
Re: Love2D WebPlayer (WebGL)
ah sorry, webplayer cannot handle raw sound data yet, only sound files like .ogg .wav .mp3Nixola wrote:Code: Select all
notes.soundDatas[i] = love.sound.newSoundData( 22050, 44100, 16, 1)
e.g.
Code: Select all
local src = love.audio.newSource("data/powerup.wav","static")
...
src:stop()
src:rewind()
src:play()
The file formats .swf and .flv are flash. Love2D WebPlayer cannot generate those, it uses javascript+webgl instead of flash.
---
awesome, looking forward to it =)zapaman wrote:@ ghoulsblade: I'm interested in doing some work on the WebPlayer, since I really see the potential in using Love for web games! Made a github account, going to fork the project and see what I can add/fix!
---
no php needed. the php file in github was a contribution to generate the preload list automatically, i haven't even tested if it still works lately. just go with index.html from one of the game-subfolders instead and adjust the preload list.coffee wrote:Nixola why you don't get a free website with php capability and host there your game?
love-android - gamejams
- aeonofdiscord
- Prole
- Posts: 1
- Joined: Tue Aug 28, 2012 6:33 pm
- Location: Glasgow, Scotland
Re: Love2D WebPlayer (WebGL)
Hola, comrades. This is a pretty cool thing right here!
I wrote a few lines to support graphics.setLineWidth and graphics.setBlendMode (after SiENcE kindly ported my LD24 game over here). Just sent a pull request over on the hub.
I wrote a few lines to support graphics.setLineWidth and graphics.setBlendMode (after SiENcE kindly ported my LD24 game over here). Just sent a pull request over on the hub.
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
Re: Love2D WebPlayer (WebGL)
awesome, i'm away tomorrow, but will look into it when i get back =)
love-android - gamejams
Re: Love2D WebPlayer (WebGL)
aeonofdiscord wrote:Hola, comrades. This is a pretty cool thing right here!
I wrote a few lines to support graphics.setLineWidth and graphics.setBlendMode (after SiENcE kindly ported my LD24 game over here). Just sent a pull request over on the hub.
Cool!
Re: Love2D WebPlayer (WebGL)
Does this work with 0.8.0?
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
Re: Love2D WebPlayer (WebGL)
0.8 : shaders and some other things don't work yet in webplayer, but basic stuff works fine :
http://ghoulsblade.schattenkind.net/lov ... are201208/
http://ghoulsblade.schattenkind.net/lov ... are201208/
love-android - gamejams
Who is online
Users browsing this forum: No registered users and 0 guests