Commit graph

54 commits

Author SHA1 Message Date
Dan
815812863e Godot nuked my changes 2024-05-16 12:41:16 +01:00
Dan
84f07fde20 Updated entity interaction and game state
Significant changes include:
- Disabled input pickability for DeathBox in Dog entity
- Simplified mouse click detection logic in Snail script
- Removed unnecessary conditions and actions from snail eating state
- Adjusted cursor hotspot position for hand cursor in Cursor Manager
- Reset flower nectar level upon game reset
2024-05-16 12:33:24 +01:00
Dan
7f5d9dc6fc Updated snail entity behavior
The snail entity's default state has been changed from 'Move' to 'Sleep'. Visibility and color modulation of certain sprites have been adjusted. The initial state of the StateMachine node is now set to 'Sleeping' instead of 'Eating'. In the snail sleeping script, the sleep timer update and state transition are now conditional on whether the level has started.
2024-05-16 12:08:02 +01:00
Dan
b8f42a552e Enhanced snail animations and interactions
Added new animation states for the snail entity, including 'Move' and 'Sleep'. The snail now hides certain elements when eating and plays appropriate animations when transitioning between states. Also introduced a new texture for sleep indication.
2024-05-16 12:00:52 +01:00
Dan
5777a7f2f1 Enhanced snail entity with new features
Added a sprite to the Snail class and implemented animations for the snail's movements. The snail now has a body and shell texture, along with an eating shadow. Also, added logic to flip the sprite based on movement direction in the 'snail_eating' state. Furthermore, made CollisionShape2D invisible for better aesthetics.
2024-05-15 17:21:47 +01:00
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
9988ee23de Update export presets to not embed PCK, add Windows native icon. Add new icons for the project. 2024-05-12 16:08:10 +01:00
Dan
380434c2d5 Delete GdUnitBuildTool and GdUnitCmdTool scripts. Refactor code structure, remove unused variables, and update function implementations. 2024-05-12 15:32:56 +01:00
Dan
1492f0152f Update game levels with hidden Game Over components and new entities like Beehive, Dog, and Vegetable Patch. Adjust properties like visibility, position, rotation, scale for better gameplay experience. Add Level 6 with unique elements and rules. 2024-05-12 14:30:48 +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
6e6a231300 Update Dog entity with new animations, textures, and highlight feature. Adjust Flower rotation. Decrease level 4 par time. Add outline functionality to Drone Manager for Dog entity highlighting. 2024-05-12 09:16:58 +01:00
Dan
11f8c1d815 Update Dog entity with new textures and animations. Add Level 4 scene with game elements and UI components. 2024-05-11 17:32:57 +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
2a4a578f19 Update theme with new content margins and shadow color. Adjust font shadow color for level labels. Set tooltip text for "HappyBees" label in LevelCompleteComponent. 2024-05-11 15:13:55 +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
3eaa959910 Update export path and level load steps, remove audio resources from levels, adjust main menu load steps and audio resources.
- Updated export path to "build/web/index.html"
- Adjusted level load steps for levels 1, 2, and 3
- Removed audio resources from levels
- Modified main menu load steps and removed audio resources
2024-05-11 08:54:54 +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
ca4788ce6f Add main menu level, scene, and resources. Update main scene to main menu. Add logo image with import settings. Include elements in the main menu scene like bushes, trees, mushrooms, flowers, beehive, drones. Set up UI components and background music for the main menu. 2024-05-10 10:44:28 +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
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
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
02f4ae939c image update 2024-05-07 18:00:58 +01:00
Dan
fb47693a99 Graphics pass 2024-05-07 15:51:31 +01:00
Dan
51af0ea751 added dog distractions 2024-05-06 17:21:24 +01:00
Dan
4834ebdda8 Dog now watches target 2024-05-06 14:37:38 +01:00
Dan
4e2f51f50f Merge branch 'develop' of github.com:unbolt/PollenNotIncluded into develop 2024-05-06 13:19:43 +01:00
Dan
9ecd52a6e6 Adding music 2024-05-06 13:17:39 +01:00
Dan Baker
136b4963ea Adding initial doggo 2024-05-06 11:55:53 +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
Dan Baker
76e7ec7ec7 removing animation player reference 2024-05-03 20:50:28 +01:00
Dan Baker
bce75a9a97 Bee flying animation, dancing drone 2024-05-03 20:39:41 +01:00
Dan
7c3bca07f9 fixing typo 2024-05-03 15:45:40 +01:00
Dan
752131c955 Bee State Machine 2024-05-03 15:43:05 +01:00
Dan Baker
20bcab01b1 Removing test drone 2024-05-02 19:36:39 +01:00
Dan Baker
cfe0fb2e5a Adding more drone types 2024-05-02 19:22:34 +01:00
Dan
0716fd62e8 Clicking to spawn things 2024-05-02 15:14:46 +01:00
Dan
0f5640d789 Adding targeting cursor when placing drone 2024-05-02 15:00:48 +01:00
Dan
b0583bd97f Basic mouse interface 2024-05-02 13:54:43 +01:00