ferret147 Posted July 5, 2012 Share Posted July 5, 2012 Would you think that the application demonstrated in this video would be easy to replicate in HTML5 and Javascript? http://pool.bz/Demo-Video.php Quote Link to comment https://forums.phpfreaks.com/topic/265280-is-this-possible-using-javascript-and-html-5/ Share on other sites More sharing options...
trq Posted July 5, 2012 Share Posted July 5, 2012 I wouldn't say easy no, but doable given the time. Quote Link to comment https://forums.phpfreaks.com/topic/265280-is-this-possible-using-javascript-and-html-5/#findComment-1359485 Share on other sites More sharing options...
scootstah Posted July 5, 2012 Share Posted July 5, 2012 Using existing tools and libraries it probably wouldn't be super difficult. It's basically just moving things around on a grid. Hell, I'm fairly confident you could come up with a crude demo using jQuery draggable. Quote Link to comment https://forums.phpfreaks.com/topic/265280-is-this-possible-using-javascript-and-html-5/#findComment-1359487 Share on other sites More sharing options...
ferret147 Posted July 5, 2012 Author Share Posted July 5, 2012 Cheers Guys I wil look into it further down the jQuery route but my Javascript knowledge is limited and my only real HTML5 experience has been using Hype to do simple motion tweening and transitions. But if any of you or anybody reading this want to drop me a PM with a quote I am listening. I would not need all of the features just the basic drop balls, draw lines and have a unique URL for posting in a vBulletin forum, I have all of the graphics required already as I have been doing tutorials using Hype already. Quote Link to comment https://forums.phpfreaks.com/topic/265280-is-this-possible-using-javascript-and-html-5/#findComment-1359491 Share on other sites More sharing options...
xyph Posted July 5, 2012 Share Posted July 5, 2012 I definitely WOULDN'T suggest this as a learning project. Quote Link to comment https://forums.phpfreaks.com/topic/265280-is-this-possible-using-javascript-and-html-5/#findComment-1359492 Share on other sites More sharing options...
ferret147 Posted July 5, 2012 Author Share Posted July 5, 2012 Yeah sure I know where you are coming from it has taken me enough time to get PHP under my belt Quote Link to comment https://forums.phpfreaks.com/topic/265280-is-this-possible-using-javascript-and-html-5/#findComment-1359493 Share on other sites More sharing options...
Adam Posted July 6, 2012 Share Posted July 6, 2012 It's perfectly doable but it's not just about learning JavaScript, there's physics involved. You need to be able to determine the velocity of a ball, what effect a cushion would have, what angle you hit other balls at, etc. As mentioned, it's probably not a good starter project. Quote Link to comment https://forums.phpfreaks.com/topic/265280-is-this-possible-using-javascript-and-html-5/#findComment-1359775 Share on other sites More sharing options...
ferret147 Posted July 6, 2012 Author Share Posted July 6, 2012 !!! Nothing to do with physics, it is a drawing application the balls do not move at all, you place the balls on the stage and draw lines from the balls depicting their path. Quote Link to comment https://forums.phpfreaks.com/topic/265280-is-this-possible-using-javascript-and-html-5/#findComment-1359777 Share on other sites More sharing options...
Adam Posted July 6, 2012 Share Posted July 6, 2012 Oh.. Ha. I just clicked the link and saw a pool table Quote Link to comment https://forums.phpfreaks.com/topic/265280-is-this-possible-using-javascript-and-html-5/#findComment-1359778 Share on other sites More sharing options...
Philip Posted July 6, 2012 Share Posted July 6, 2012 You could use a JS canvas framework (paper.js, rapha?l, etc.) and do that pretty quickly. Quote Link to comment https://forums.phpfreaks.com/topic/265280-is-this-possible-using-javascript-and-html-5/#findComment-1359779 Share on other sites More sharing options...
ferret147 Posted July 6, 2012 Author Share Posted July 6, 2012 and do that pretty quickly. I admire your confidence I will have a bash at this for sure but I am not that confident of doing it myself but again thank you for pointing me in the right direction. Quote Link to comment https://forums.phpfreaks.com/topic/265280-is-this-possible-using-javascript-and-html-5/#findComment-1359783 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.