kittykatattack / ga

The world's tiniest, cutest and funnest game engine
451 stars 85 forks source link

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

Open kittykatattack opened 9 years ago

javimosch commented 9 years ago

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

kittykatattack commented 9 years ago

@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 :)

javimosch commented 9 years ago

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.

kittykatattack commented 9 years ago

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.