Page 2 of 3

Re: Aroma - Game engine for Chrome

Posted: Wed May 16, 2012 7:18 pm
by rbamford
Hey, awesome work but i've found a problem.

When i update my main.lua on my web server the website doesn't seem to get updated? however if i, for example, change the screen size in the html code the display screen does change but the code stays the same...

Any help?

Re: Aroma - Game engine for Chrome

Posted: Wed May 16, 2012 9:25 pm
by leafo
rbamford wrote:Hey, awesome work but i've found a problem.

When i update my main.lua on my web server the website doesn't seem to get updated? however if i, for example, change the screen size in the html code the display screen does change but the code stays the same...

Any help?
Sounds like it's being cached.

You can disable the cache from the chrome developer tools. If you click on the gear on the bottom right, then check Disable Cache in the Network section. When you refresh the page when the developer tools are open, it will reload everything.

Image\

This will re-download the nexe file every time too though. I'll think of a better solution.

Re: Aroma - Game engine for Chrome

Posted: Thu May 17, 2012 9:17 am
by Nixola
Can't you refresh the page (and delete the cache) with Ctrl + F5?

Re: Aroma - Game engine for Chrome

Posted: Sat May 19, 2012 9:10 pm
by leafo
Nixola wrote:Can't you refresh the page (and delete the cache) with Ctrl + F5?
Yeah, both ctrt+f5 and shift+f5 will hard refresh the page. I like to the console thing because I always have the console open when developing, and I always want to clear the cache on every request when developing.

Re: Aroma - Game engine for Chrome

Posted: Sun May 20, 2012 4:18 pm
by _ex_
very nice work,
I checked your online demo and worked in Windows 7 with latest Chrome.

Re: Aroma - Game engine for Chrome

Posted: Sun May 20, 2012 4:34 pm
by Kingdaro
you don't seem to support source:setVolume or love.graphics.printf

Re: Aroma - Game engine for Chrome

Posted: Mon Jan 21, 2013 2:14 pm
by isFutureBright
Hi there! I have this sprite in my game which is a 96x32 but when I try to do

local playerSprite = aroma.graphics.newImage("data/ship.png")
local playerQuad = aroma.graphics.newQuad(0, 0, 32, 18, 96, 18)

And later:
aroma.graphics.drawq(playerSprite, playerQuad, player.x, player.y)

What's weird is that if I change to:
local playerQuad = aroma.graphics.newQuad(0, 0, 32,32, 96, 18)

It shows a bit of the ship and if I change it to 32,64 it shows the complete ship... I don't understand this. Didn't I set my pic to have 18 height? I also tried using playerSprite:getWidth() and height but it worked the same way. Printing playerSprite:getWidth() got me the correct values though... can anyone help?

Re: Aroma - Game engine for Chrome

Posted: Tue Jan 22, 2013 1:34 pm
by SiENcE
It seems Aroma is Chrome only and needs opengl.

Love2d-webplayer needs WebGL based Browser (Chroma, Opera, Firefox, Safari).

So any advantage for using Aroma instead of love2d-webplayer?

Re: Aroma - Game engine for Chrome

Posted: Tue Jan 22, 2013 6:08 pm
by szensk
Aroma does not convert Lua to Javascript.

Re: Aroma - Game engine for Chrome

Posted: Wed Jan 23, 2013 11:27 am
by SiENcE
szensk wrote:Aroma does not convert Lua to Javascript.
Ok, but no enduser feature :).