Discussion on Mini Golf - HTML5 Game

BitwiseCreative

BitwiseCreative supports this item

Supported

6 comments found.

Great game and even better support!

Thank You!

envato: Please delete my comment.

Fantastic set of files. Well documented and good code

Hmm, like a sand trap? Yeah… why didn’t I think of that!? Cool idea. In /js/Game.js, you’ll want a non-colliding hit test of some sort (you could add to the P2 physics system, or use the simple hitTest() helper method). To slow the ball down, you’ll want to increase its damping property (~line 231). I hope that helps!

Hi. Thanks for the fast reply. Inside the ‘addOb’ function I turned an object into a sensor by doing this:

for(i=0;i<o.body.data.shapes.length;i++){ o.body.data.shapes[i].sensor = true; }

And then added this line as a contact listener just like you did with the ‘this.wallhit’:

o.body.collides([ballCG], this.dirtHit, this);

But that one doesn’t fire anymore once the object has been made a sensor. Any ideas?

Hard to tell without seeing it :) Could you upload what you have so far to a URL, and link me to it from the contact form on my profile? Thanks!

Is it possible to import it to eclipse? Or how can I make an android app? Thanks

Hi! I don’t use Eclipse, but I assume you could import it as a new project (?). I’m sorry, but I don’t currently do Android development, or HTML5 game porting to Android. I suspect you’d need to get into porting Phaser games to Android using one of the porting frameworks (Phonegap, CocoonJS, etc.) Sorry I am not more help in this area.

Hi! How can I skin the main_menu and other screens? I’ve edited the .png files to include things like logo, etc. But for some reason, it’s not registering on the front-end. What am I doing wrong?

It’s on my localhost, not uploaded to server. Could that have anything to do with it?

Clearing cache didn’t work. Is there anything else I should be doing?

Running from localhost shouldn’t be an issue. Without seeing for myself, all I can think of is that maybe you’ve saved the PNG files to a different location, and the game (Preloader.js) is still loading the original files. I’d be happy to take a look, if possible. If you’d like, you can message me from my profile page. Thanks!

Hi there! I’m running the live preview in an iPad, and the touch functionality is not working. Is touch supported? Thanks a lot!

Yes, touch is enabled. Can you get past the main menu to the first hole? If so, are you dragging the putter? I f none of that is working, please let me know what browser/version you are using. Thanks!

Nope, I’m not even able to tap on the buttons. I’ve tried this in an iPad (running iOS 10.3.1) in Chrome v58.0 and Safari (don’t know the version). I’ve also tested it in an iPhone 5s and a 7, both running iOS 10.3 and Chrome 58.

Thank you so much for the feedback. I will work to resolve this ASAP.

by
by
by
by
by
by