Great game and even better support!
envato: Please delete my comment.
Fantastic set of files. Well documented and good code
Thank you very much!
No problem . Quick question, I’m trying to add some stuff to the game. I want to add different types of ground. Like a sticky one for example. I think I should do this with a ‘sensor’ and then slow the ball down, but I can’t quite make that work yet. Do you have any pointers?
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:
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 could be cache. Try CTRL + F5. Let me know.
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.
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
View license details
Get it now and save up to $6.50
Deliver better projects faster. Photos, templates & courses
Unlimited downloads. Only $29/month
Learn almost anything with
Envato Tuts+ for free
25,000+ tutorials and 1,000+ courses
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work