Inspiration

I wanted Fruit Collector to have a bunch of bright colors and flashy effects to correlate with the overstimulation theme. I do not know exactly what inspired me, but I wanted to have flashy effects that would be overwhelming and have areas where multiple effects were triggered. However, I did not have the time to create the effects, so Fruit Collector is essentially just a fruit collector game.

What it does

Fruit Collector is a platformer game where the player jumps, runs left and right, and avoids hazards (spikes and dogs). The player may collect fruits by running into the fruits, and a running total of fruits collected will be displayed on the screen and on the pause screen. There is a pause screen that can be reached by pressing 'e' and exited by pressing 'e' again to pressing the resume button.

How we built it

Fruit Collector was built in Godot using GDScript (Godot's programming language). I stared by building the player, then the collectables, then spikes. I built a way to display the number of collectables and a pause screen, then I started working on the dog. Lastly, I drew out the game level and added more fruits, dogs, and spikes.

Challenges we ran into

Inheritance was one of the challenges I ran into. The fruits inherit from a Collectable class and I had some trouble getting the fruits to follow Collectable methods. I also wanted to create a system where you could throw collectables that you picked up, and the collectables would have an effect (such as throwing a bone collectable to a dog to make the dog peaceful). However, I way I had already coded my project would not have worked well with this system; I did not have the time to rework my project and create this new system.

Accomplishments that we're proud of

I am proud of the dog enemy's movement. In previous projects, I have looked at YouTube videos to help me with enemy movement, but for the dog, I added my own code for the horizonal movement and reworked the default script for the jump, adjusting variables and code until I got the result I wanted. I am also proud of the pause screen. I have not made a pause screen before this, and I was glad I could get the collectable amounts to display in the pause screen too.

What we learned

I learned much about physics layers in Godot because this is the first time I used them. I also learned more about inheritance from creating inherited collectables. I also learned more about manipulating RayCasts and Control Nodes. I also learned a good way to implement signals in Godot from a YouTube video after I had already created all the signals for my game :(.

What's next for Fruit Collector

I will likely create a new Fruit Collector from scratch (to create better signals) to advance enemy movement and learn how to make projectiles and visual effects.

Built With

  • gdscript
  • godot
Share this project:

Updates