alex_h Posted March 29, 2013 Share Posted March 29, 2013 Here's my first HTML5 game, it's a port of a battleships game I made in flash a few years ago. I wanted to aim this version at mobile users in general but I think it might be a bit too small and fiddly on phones really, it works great on an iPad mini though. I built it with plain javascript in Notepad++, as part of this process I ended up making myself a nice framework with DisplayObjectContainers, Sound Manager, etc which I'm now using in other client work so it's been a very worthwhile experience. I'm thinking about having a look at this Typescript that everybody seems so excited about next... I only just finished the game so haven't really had time to finish thoroughly checking for bugs - if anybody spots any issues do please let me know!I'm planning to look into getting it onto some games portals or the like once I'm confident it's really ready. Here's the link: http://www.alexh.org/battleships_html/ Chris 1 Quote Link to comment Share on other sites More sharing options...
prtksxna Posted March 30, 2013 Share Posted March 30, 2013 Hey, Nice game! Worked perfectly on Chromium on Ubuntu. Will test on Firefox and Chrome on MacOS too.Is there a way to switch off sounds effects? Quote Link to comment Share on other sites More sharing options...
alex_h Posted April 1, 2013 Author Share Posted April 1, 2013 Hi prtksxna, thanks for trying my game. No, I didn't think of including a mute button actually! It would be very easy to add one, maybe up in the top left corner of the screen as that stays pretty much unused throughout I think. Quote Link to comment Share on other sites More sharing options...
Chris Posted April 1, 2013 Share Posted April 1, 2013 I tried you game, too and its much fun to play. I had a strange graphic bug on the iPhone (4s with Safari) where it seems like the screen is not cleared when you are drawing new elements, but not everywhere... I made you a Screenshot. Quote Link to comment Share on other sites More sharing options...
alex_h Posted April 1, 2013 Author Share Posted April 1, 2013 Thanks Paratron, I'm adjusting the values that I use for my call to clearRect whenever the window is resized, so I must be setting them incorrectly under some circumstances. I'd better get that fixed then! Quote Link to comment Share on other sites More sharing options...
Chris Posted April 1, 2013 Share Posted April 1, 2013 Well, I don't know if the resize event is fired when I cange the orientation of the phone, as well as when I switch to the fullscreen mode to get rid of safari's control bars. For the orientation change, there seems to be a own event that is being triggered on iOS safari. After a quick look on stackoverflow, there should be a event for fullscreen, too. I hope this helps Quote Link to comment Share on other sites More sharing options...
alex_h Posted April 1, 2013 Author Share Posted April 1, 2013 Yeah I'm running my resize handler on orientationchange as well as resize event. I've not tried listening for a fullscreen event though, so maybe that is whats missing! Thanks for your help on this. Quote Link to comment Share on other sites More sharing options...
alex_h Posted April 2, 2013 Author Share Posted April 2, 2013 Following your earlier advice prtksxna I have now added a mute button.And thanks to Paratron for pointing out the clearRect error - I've now tracked down the source of this bug and fixed it. Thanks again folks, really appreciate your input.cheers! Quote Link to comment Share on other sites More sharing options...
eurohan Posted August 4, 2013 Share Posted August 4, 2013 Nice game! I just played it on my iPad and worked really well. I like the music and sound but the music gets a bit old after a while. Would be nice if you could mute themusic only and not the sound Quote Link to comment Share on other sites More sharing options...
alex_h Posted August 5, 2013 Author Share Posted August 5, 2013 Thanks eurohan, yeah I need to add a sound groups feature to my sound manager so that I can easily implement this in all my games. The other thing that has made me put off doing this job till later is that then I'd need to have a settings panel rather than just have a mute button, and then you'd expect it to remember your preferences and so on and so on. Basically it ends up being a much bigger job than it initially sounds. That's not to say that it isn't a job worth doing though! cheers,Alex Quote Link to comment Share on other sites More sharing options...
spb Posted August 6, 2013 Share Posted August 6, 2013 Nice little game. Graphics are good, sound is good. Played well in Chrome on my Mac Quote Link to comment Share on other sites More sharing options...
eurohan Posted August 6, 2013 Share Posted August 6, 2013 Thanks eurohan, yeah I need to add a sound groups feature to my sound manager so that I can easily implement this in all my games. The other thing that has made me put off doing this job till later is that then I'd need to have a settings panel rather than just have a mute button, and then you'd expect it to remember your preferences and so on and so on. Basically it ends up being a much bigger job than it initially sounds. That's not to say that it isn't a job worth doing though! cheers,AlexYeah that makes sense. What other games are you working on? Quote Link to comment Share on other sites More sharing options...
alex_h Posted August 6, 2013 Author Share Posted August 6, 2013 My other finished game is on this thread: http://www.html5gamedevs.com/topic/914-bug-match/ Currently I'm working on a side scrolling platformer but it's very early days with that one at the moment. Quote Link to comment Share on other sites More sharing options...
eurohan Posted August 6, 2013 Share Posted August 6, 2013 Are you interested in publishing the games on different platforms? Quote Link to comment Share on other sites More sharing options...
alex_h Posted August 6, 2013 Author Share Posted August 6, 2013 Yeah I could be, what do you have in mind? Quote Link to comment Share on other sites More sharing options...
eurohan Posted August 8, 2013 Share Posted August 8, 2013 Yeah I could be, what do you have in mind?I am part of a team that just started a very fast growing cross device gaming platform. We see html5 as a pillar of our Smartphone offering. We would like to try your game on our portal. Quote Link to comment Share on other sites More sharing options...
alex_h Posted August 9, 2013 Author Share Posted August 9, 2013 Ok, cool. Why don't you pm me some details and I'll let you know if I'm up for it. cheers,Alex Quote Link to comment Share on other sites More sharing options...
eurohan Posted August 9, 2013 Share Posted August 9, 2013 Ok, cool. Why don't you pm me some details and I'll let you know if I'm up for it. cheers,AlexSure, no problem. What e-mail can I reach you at? Quote Link to comment Share on other sites More sharing options...
alex_h Posted August 9, 2013 Author Share Posted August 9, 2013 ok, I just messaged you my email address. 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.