kittykatattack / ga

The world's tiniest, cutest and funnest game engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add uiText, uiInput and uiButton for a DOM-based HTML UI layer

kittykatattack opened this issue · comments

Hi, I would like to help in this one. !.
Can I ?

@javimosch We would most welcome your contribution!

We're trying to keep the ga.js core script as lightweight as possible (under 6,5 k minified and gzipped), so if you could add uiText, uiButton and uiInput a method modules to the plugins.js script, that would be ideal. But, if you need a few small additions to ga.js, please go ahead :)

I will examine plugins.js and see if I can add these three then.
Really will come handy cuz I looking forward to develop and small mobile app with the engine.
Writing again when I have news.
Cheers.

My guess is that you might have to add a bit of code to the core ga.js file to add a

wrapper around the element. You can then add and position the HTML UI elements inside that wrapper.