Friday, September 9, 2016

Dropping fruits and shrubbery!

Exciting changes.

Trees now drop their fruits! And you can pick up the fruits!

The yellow and green pears have formed a powerful alliance in the form of the yellow-green pear.


Some bushes have been made! These include the Hydrangea and Rose of Sharon bushes. And you can pick up the flowers too. :-)


Eventually, I'd like it so that you can only pick flowers if you have pruning shears. Or maybe pruning shears give you a better flower. Something like that.

More for the to-do list:
  • Don't move the pony if you're clicking on a trigger
  • Don't activate triggers unless you're close to them
  • Storing data, like fruits and flowers collected, for an inventory system
  • Lock the camera to the pony
  • Terrain! More bushes, more flowers, grass, and more

Saturday, September 3, 2016

Fruit trees

I love fruits and fruit trees.

They're the first things I wanted to work on. Who doesn't love fruits?

So far there are apple, pear, and pomegranate trees. Pomegranates are my favorite fruit, possibly food, ever.


I've made it so that fruits randomly generate, based on some predefined spots. There's twenty possible spots for a fruit on each tree, and a 25% chance that they'll spawn in a spot.


I've gotten triggers for the trunks to work, so hopefully the next thing will be getting fruits to drop so you can pick them up.

This blog came a bit late, there was lots of stuff that had been done (well, lots to me, at least) that were pretty breakthrough-ish (well, breakthrough to me, at least.) I'm not an advanced programmer, so I'm getting quite a bit of help. But it's always a eureka moment when sometimes finally starts to work properly.

Those eureka moments included:
  • Getting the pony to move to a clicked point
  • Getting the pony to move while you're holding and dragging the mouse
  • Getting the pony to switch directions depending on which way you're going
  • Getting things to layer properly behind and in front of each other
  • Watching the pony walk behind and in front of trees
  • Getting the fruits to spawn randomly, and in front of the trees
  • Having the tree trunks respond to being clicked on
 There will definitely be many more eureka moments.

Here are some things I hope to get working soon:
  • Trees drop fruit when hit, and later on their specific tree fruit
  • You can pick up fruits
  • Don't move the pony if you're hitting a trigger
  • Don't activate a trigger unless you're close to it
  • Possibly start working on storing data, like fruits picked up, for an inventory system
  • Locking the camera to the pony (right now it's stationary)
  • Terrain! Bushes, flowers, grass, and more