Discussion on Mini Golf - HTML5 Game

BitwiseCreative

BitwiseCreative supports this item

Supported

5 comments found.

Great game and even better support!

Thank You!

Thank you! :D

envato: Please delete my comment.

Jop

Jop Purchased

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!

Jop

Jop Purchased

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!

by
by
by
by
by
by