So I thought I'd work on my golf game for the Channel F again. But what could I add? I had thought about trees before, but then I thought since they're green on top and the background is green that wouldn't work. But now, I bit the golf ball and added a couple of trees to hole #4.
I had to make the game decide whether the ball hit the water or a tree. I was having trouble again until I realized I hadn't changed the code to tell it it was on hole #4. So now I can go ahead and change it so it can recognize a variable on each hole to tell whether the hole had trees or water in it. Since the game recognizes each thing individually, I could have one tree and one small lake in there. I had to change the code so the ball stops when it hits a tree instead of going over water. You don't lose a stroke when you hit a tree, either.
My trees are all red, so you'll have to use your imagination a bit and think it's autumn or something. I think they look more like lollipops than trees, but they're trees.
- carlsson likes this