Commit graph

17 commits

Author SHA1 Message Date
Dan
7d47bdbf5a Enhanced snail interaction and sleep behavior
The update includes improvements to the snail's interactive behavior. Now, when the mouse hovers over a snail that is eating, it changes to a hand cursor. This change enhances user feedback during interaction.

Additionally, the sleeping state of the snail has been expanded. The snail now wakes up after a random interval between 15 and 25 seconds. A timer tracks this duration and triggers a state transition to "Eating" once elapsed.

A new hand cursor resource was also added to the CursorManager for use in these interactions.
2024-05-15 14:47:28 +01:00
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 Baker
513b0c92a7 Refactor bee gather state and update game state
Removed unused code in the bee gathering function, enhancing readability. Also added a new boolean variable 'spawn_snails' in the game state reset function to control snail spawning.
2024-05-14 18:47:28 +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
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
f4e2169009 Update bee animations, game over component UI, and game state handling. Set up game over conditions based on the number of dead bees. 2024-05-11 16:09:57 +01:00
Dan
115b4b0a69 Add high scores level with specific settings, new resources for images and textures, update project configuration to include HighScoreMgr, and define style boxes for game theme. 2024-05-11 13:53:04 +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
b6cdb68b4e Add build directory to .gitignore, create export presets for Web and Windows Desktop, adjust z-index and mouse filter in level_1.tscn, add update_game_state function in level.gd, change main_scene path in project.godot, set rendering method to "gl_compatibility", add LevelSelect and related nodes in main_menu.tscn, create scene_manager.tscn with MainMenu node, implement functionality for menu button selection in main_menu.gd. 2024-05-10 14:39:24 +01:00
Dan
491395e6b9 Add utility strings, update game state with drone count and points calculation. 2024-05-09 15:42:04 +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 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
0127257d05 Adding required nectar to game state 2024-05-05 08:01:25 +01:00
Dan Baker
5865778c77 Bees return nectar, UI stuff 2024-05-04 15:13:59 +01:00