Decided not to wait till the weekend, so here is something small I made today.
Drag the left-mouse button in the opposite direction that you want to hit the ball in to build up power. Then release to take your shot. The right-mouse button allows you to cancel after you've started dragging.
20/5/2012 Update: Originally, the game couldn't detect collisions with fast balls - one frame it would be in front of the collider, and the next, past it. So, I've made it calculate the physics more frequently by lowering the timestep, and changed how the walls detect collisions. The maximum power has been raised back. Hopefully it will be better - please let me know if it's not.
Cool idea! I liked being able to play golf within the words Ludum Dare. Your hills were well implemented, too.
However, I kinda lost the fun on hole 5, when after getting it to a few pixels away from the hole frigged it up because I couldn't aim from where I wanted to; and then it constantly teleported itself back to the beginning.
A little debugging, and maybe Ludum Dare will turn it into one of those web banner minigames!
I managed to hit the ball through the wall in the 'D' in 'Dare'and, at times, I found it rather difficult to put a lot of power into a vertical shot because I had to pull outside of the web browser's window. That said, it was pretty enjoyable and I played through to the end! :)
C
Chinchilla18 May 2012, 10:48
Pretty darn cool. I got a +25!
As Sestren said, the size limit kinda works against the game. You need to be able to put a bit more vertical power on it. Otherwise very cool!
Cool idea, although there's no way my putter was working correctly. It aimed backwards and was this weird blurry, badly stretched, weirdly angled shape.
@Sestren & Chinchilla: I agree. An alternative way of doing it was to control it purely with the keyboard (press when an aiming arrow is pointing in the right direction, and hold down for the right amount of power). It should be possible to get to maximum vertical power as it is (if the bar is red, you're at maximum), but obviously that comes at the cost of precision.
@onefineline: that's how it is, I'm afraid! :) You have to pull it in the opposite direction of where you're aiming (mimicking the golfer's action of pulling back his putter before hitting, I suppose).
@MadGnomeGamer & AirRider3: the new version should be a step in the right direction, fingers crossed!
However, I kinda lost the fun on hole 5, when after getting it to a few pixels away from the hole frigged it up because I couldn't aim from where I wanted to; and then it constantly teleported itself back to the beginning.
A little debugging, and maybe Ludum Dare will turn it into one of those web banner minigames!