IamThatGuy Posted January 31, 2015 Share Posted January 31, 2015 I am in need of some sort of lightweight library that is can be set up for noticing buttons on a game. Things like clicking start, options, highscores and in-game stuff (menus). I am really just looking for something to use so i can save some time by not re-inventing and it would most likely have some neat features i didn't think of or want to code. Quote Link to comment Share on other sites More sharing options...
Daniel Belohlavek Posted January 31, 2015 Share Posted January 31, 2015 Never tried it but there's http://www.zebkit.com/ I'd go with some sort of sprite.onclick event for buttons, it is really easier if you are using a framework like Phaser/Pixi. IamThatGuy 1 Quote Link to comment Share on other sites More sharing options...
IamThatGuy Posted January 31, 2015 Author Share Posted January 31, 2015 Not looking for something full blown with extra features such as a framework. Just looking for something to handle GUI's that is HTML5. It seems like zebkit uses jQuery with HTML5.. May be wrong, I only glanced over the source. Quote Link to comment Share on other sites More sharing options...
IamThatGuy Posted January 31, 2015 Author Share Posted January 31, 2015 This is pretty cool though: http://repo.zebkit.org/latest/samples/uidemo.html Its rotated =0 Quote Link to comment Share on other sites More sharing options...
Daniel Belohlavek Posted January 31, 2015 Share Posted January 31, 2015 What framework/lib do you use? Or are you using vanilla JS? Quote Link to comment Share on other sites More sharing options...
IamThatGuy Posted January 31, 2015 Author Share Posted January 31, 2015 What framework/lib do you use? Or are you using vanilla JS? I don't use one. I have done more PC/php web game coding then JS/HTML5 game coding. I am doing a little experiment with a HTML5 game I want to create to see if its really worth the time compared to writing Native Android APP's or prepare for Win X and get into C#. Quote Link to comment Share on other sites More sharing options...
Daniel Belohlavek Posted January 31, 2015 Share Posted January 31, 2015 If time is a problem they you should be using a framework (pssst! Phaser!). Anywho check this out: http://stackoverflow.com/questions/5948251/click-area-on-sprite-in-canvas Quote Link to comment Share on other sites More sharing options...
IamThatGuy Posted January 31, 2015 Author Share Posted January 31, 2015 If time is a problem they you should be using a framework (pssst! Phaser!). Anywho check this out: http://stackoverflow.com/questions/5948251/click-area-on-sprite-in-canvas I have most of the game built already (rendering, loading, keyboard input, mouse input, ect), I just need to add some GUI things and put the pieces together. Quote Link to comment Share on other sites More sharing options...
Daniel Belohlavek Posted January 31, 2015 Share Posted January 31, 2015 As I mentioned before: Buttons are just Sprites with "inputdown" event listeners. If you have already implemented rendering and mouse input then it shouldn't be hard. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.