Log In  
Follow
ChrisM
Help me Tweetcart Snake
by

Cart #picogolf-2 | 2020-08-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
33

1.1.0

  • stat tracking
  • speedrun mode

picogolf (currently) contains a single 9 hole course featuring a range of par 3, 4 and 5 holes. There are no settings, nothing gets saved, if you wanna play again, just reload the page.

It actually started out as a simple breakout clone... I'm not really sure what happened but here we are, I've had a great time working on it and I'm quite pleased with myself for actually finishing something for once.

Cheers
-Chris

Controls

while aiming...

left and right to aim
hold up to zoom out
press down to cycle through clubs
press X to cycle view modes between close up aim, distant aim, whole course and pin

[ Continue Reading.. ]

33
13 comments



I've been working on a simple golf game on and off for the past week or so and I'm having a lot of fun. I'm not entirely sure what I want to include with it, but I'd like to try and make the gameplay mechanics slightly different to the "norm". I've got a few ideas written down and I'm keen to lock the scope of the project in place and start getting things done.

The course in the gif below is mixture of predefined variables and a procedural generation process which I'm excited to fill out a bit and I look forward to sharing more as and when!

16
11 comments



Hi everyone,

I am using Pythagoras to work out the distance between two points. Unfortunately I am looking to work out the distance between two points that are quite a long way away from each other so I am finding that dxdx + dydy is pushing me over the 32k number limit.

Is there any way I can get around this?

Thanks

3 comments



This is a very simple snake clone, left to turn left, right to turn right, collect the apples. If you hit your tail the game crashes (on purpose) and the score is shown.

I really wanna get it under 280 characters but I'm not sure I can really get it any further, so if you're up for it, I'd love to hear from you about how I can go further :)

265 chars (with a lot of help from remcode and jadelombax!)

d={}u,w,x,y=0,0,4,4
d={}u=0w=0y=4x=4
cls()::_::b=btn()w+=(b%2-b%4\2)/50
x+=1.5*cos(w)y+=sin(w)*1.5if(2<pget(x,y)or u<1)u+=1circ(l,m,2,0)l=rnd(99)m=rnd(99)
if(pget(x,y)>1)print(u)()
add(d,{x,y,2,u})for e in all(d)do e[4]-=.1pset(unpack(e))
if(e[4]<0)e[3]=1
end
circ(l,m,2,3)flip()goto _

Property descriptions

d = tail table
u = score
w = snake direction
x = snake x pos
y = snake y pos

l = apple x
m = apple y
2
22 comments