Commit graph

17 commits

Author SHA1 Message Date
Dan
f0a7c5ca05 Added health bar and snail behavior enhancements
- Introduced a health bar for flowers, which updates based on the current GameState values.
- Enhanced snail behavior with eating and sleeping states. Snails now have a chance to switch to the sleeping state while eating.
- Improved mouse interaction with snails, allowing them to potentially switch to sleep mode when clicked.
- Refactored cursor management into its own class for better code organization and readability.
- Updated drone placement logic to use the new CursorManager class.
- Added functionality for bees to replenish flower nectar levels after a certain number of deposits.
2024-05-15 13:57:31 +01:00
Dan
2a9e78b52e Refactor: Added explicit typing and void return types
- Introduced explicit typing to variables and functions across multiple scripts for better code clarity.
- Specified 'void' as the return type for functions that do not return a value.
- Removed redundant code in some scripts.
2024-05-15 10:42:16 +01:00
Dan Baker
a62cd6018e Updated bee nectar gathering and game levels
The bee's nectar gathering now depends on the current flower nectar level. The return, deposit_nectar, die, and other functions have been updated to return void. Nectar requirements for each game level have been increased tenfold. A new variable 'flower_nectar_level' has been added to manage the amount of nectar in flowers. Also, several functions in GameStateManager were updated to include specific input parameters or return void.
2024-05-14 19:05:47 +01:00
Dan
908f834181 Update flower entity to spawn snails based on game state.
- Added Snail entity with states for eating and sleeping.
- Modified Flowers script to handle snail spawning logic.
2024-05-14 14:51:01 +01:00
Dan
c991cbba5d Add new resources and animations for DistractorDrone, update drone script. Include level 5 scene with rules and components. 2024-05-12 10:42:00 +01:00
Dan
4b5ac48e10 Update cursor handling and reset functionality, improve UI elements. Reset game state cursor when needed. 2024-05-12 09:39:02 +01:00
Dan
f9865cf1fa Update drone placement logic, level loading functionality, and UI behavior. Set visibility of labels, manage mouse cursor changes, and handle game state for placing drones. 2024-05-10 18:49:51 +01:00
Dan
7009695327 Update drone and level scenes with new shapes, connections, and scripts. Add mouse interaction events for director drone. Include new level 2 & 3 scenes with various elements and components. 2024-05-09 18:43:38 +01:00
Dan
d879ca30bd Add RulesComponent, GameRulesResource, and BeeDeath state. Update Bee entity with death animation. Include new textures for particles. Add Highlight animation to Beehive. 2024-05-09 15:08:57 +01:00
Dan
1da411cacd who the fuck knows 2024-05-08 17:06:15 +01:00
Dan
1c33ea2f59 Lots of colouring in 2024-05-08 14:03:38 +01:00
Dan Baker
07b63a8426 Removing a lot of logging 2024-05-05 18:08:50 +01:00
Dan Baker
e88b2248b3 Adding death zone to pesticide 2024-05-05 16:04:07 +01:00
Dan Baker
5865778c77 Bees return nectar, UI stuff 2024-05-04 15:13:59 +01:00
Dan Baker
bce75a9a97 Bee flying animation, dancing drone 2024-05-03 20:39:41 +01:00
Dan
752131c955 Bee State Machine 2024-05-03 15:43:05 +01:00
Dan Baker
cfe0fb2e5a Adding more drone types 2024-05-02 19:22:34 +01:00