Thigydaze Posted January 15, 2015 Share Posted January 15, 2015 Have to say, Phaser really is pretty fast in getting anything up and running. Took a break from other stuff to see what I could do in about 8 hours (bug free). A close arcade version of Asteroids is the result. Enjoy. :-) http://www.electricpixels.co.uk/phasteroids/index.html Agares 1 Quote Link to comment Share on other sites More sharing options...
rich Posted January 15, 2015 Share Posted January 15, 2015 Very nice for 8hrs btw you can still fire even when dead Quote Link to comment Share on other sites More sharing options...
Thigydaze Posted January 16, 2015 Author Share Posted January 16, 2015 Thanks Rich - Fixed! :-) Quote Link to comment Share on other sites More sharing options...
Jack0815 Posted January 16, 2015 Share Posted January 16, 2015 For 8hrs really amazing I like it. I have no real feedback, but a question/suggestion. Are the asteroids created somehow randomly (math) or do you have a set of possible shapes and just scale them? Thigydaze 1 Quote Link to comment Share on other sites More sharing options...
Thigydaze Posted January 16, 2015 Author Share Posted January 16, 2015 For 8hrs really amazing I like it. I have no real feedback, but a question/suggestion. Are the asteroids created somehow randomly (math) or do you have a set of possible shapes and just scale them? Thanks, just option B - the asteroids are 3 png sprites to look as close to the originals, randomly assigned and scaled as you shoot them. Quote Link to comment Share on other sites More sharing options...
aaryte Posted January 17, 2015 Share Posted January 17, 2015 It ran fine on my laptop, but it's just a black screen on my phone - Android L with Chrome.8 hours though - I guess starting with a game framework helps a ton. Quote Link to comment Share on other sites More sharing options...
Thigydaze Posted January 19, 2015 Author Share Posted January 19, 2015 It ran fine on my laptop, but it's just a black screen on my phone - Android L with Chrome.8 hours though - I guess starting with a game framework helps a ton. Thanks for the update. It now renders on a mobile, but doesn't play as it needs a whole new input mechanism obviously. I'm not a fan of 'virtual joysticks' on account of your fingers drift of the 'hotspots', just at the wrong time. Needs some thinking. Quote Link to comment Share on other sites More sharing options...
aaryte Posted January 20, 2015 Share Posted January 20, 2015 Thanks for the update. It now renders on a mobile, but doesn't play as it needs a whole new input mechanism obviously. I'm not a fan of 'virtual joysticks' on account of your fingers drift of the 'hotspots', just at the wrong time. Needs some thinking. Yeah, I'm trying to get touch-controls just right, too.I was inspired by touchscreen Llamasoft games, especially Gridrunner; make the whole screen into a giant joystick. When you put your finger down, that becomes the center of the stick. If you drag farther away than some max distance from the center of stick, then the center gets ragged along. All my cave2d.com twin-stick stuff works like that - http://cave2d.com/fracas2 for example. My stick controller code is at https://github.com/aaronwhyte/cave2d/tree/master/public_html/js/controls, and example use is at https://github.com/aaronwhyte/cave2d/blob/master/public_html/fracas2/fracas2.js#L335I don't do any platform detection - I just create stick controllers for keyboard, pointerlocked mouse, and touch, pipe them into a MultiStick which is a stick that adds together vectors from child sticks, and then the client code only knows that I passed it a Stick object, and doesn't care where the stick vector comes from. I also had to capture and cancel all the touch-scrolling and junk for mobile browsers, which I think I handled entirely in my index.html pages, with meta-tags here:https://github.com/aaronwhyte/cave2d/blob/master/public_html/fracas2/index.html#L6and some prevent-default listeners here:https://github.com/aaronwhyte/cave2d/blob/master/public_html/fracas2/index.html#L82 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.