1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-30 20:14:21 +00:00
Commit graph

175 commits

Author SHA1 Message Date
da0180c5be
THINGS YAY 2024-04-19 04:30:35 +02:00
9739a089d5
Spawner: spawn things on self if no MainGame is found 2024-04-19 03:48:25 +02:00
ba8dd72ed5
Remove target parameter from spawn 2024-04-19 03:47:34 +02:00
4b3e05b74f
Tweak a few more things 2024-04-19 03:39:07 +02:00
4fbf8c6d8d
Remove debug logging from Edible 2024-04-19 03:32:05 +02:00
496977996c
I got lost hunting for a bug and i forgor commits 2024-04-19 03:23:24 +02:00
9e85baa1cb
TrackerEdible do not log by default 2024-04-19 02:04:35 +02:00
91c4776a33
Remove debug logging from MoveStraight 2024-04-19 01:58:33 +02:00
7683d45747
Remove logging from MoveTowards 2024-04-19 01:57:26 +02:00
0b68127747
Remove logging signals from CursorDetector 2024-04-19 01:56:46 +02:00
d270501f08
Remove unused test behaviours 2024-04-19 01:56:03 +02:00
ed6047834a
Remove debug logging from CursorDetector 2024-04-19 01:55:25 +02:00
2b39bb4551
Add a log_priority method to log the priority of a specific node 2024-04-19 01:50:53 +02:00
1100f60db8
Remove debug logging from Priority 2024-04-19 01:49:49 +02:00
782d752c3e
Remove debug logging from SamplerPriority 2024-04-19 01:49:22 +02:00
c2dd8a61cd
Fix TrackerEdible still looking for tag instead of diet 2024-04-19 01:48:11 +02:00
f1871a02ae
Rename methods and improve Priority 2024-04-19 01:30:03 +02:00
32e00ede01
Improve and cleanup Sampler and SamplerPriority 2024-04-19 01:26:02 +02:00
564477e5e9
Improve Priority with some suggestions by @SnowyCoder 2024-04-19 01:22:03 +02:00
8142f399bd
Add TimerStddev 2024-04-17 05:45:34 +02:00
8278a55069
It works 2024-04-17 05:29:45 +02:00
3341c86e39
Sheep now work! Almost. Missing speed. 2024-04-17 05:26:13 +02:00
17e87b06d0
Alter Move a bit... 2024-04-17 05:01:02 +02:00
1f8a553294
Implement the new behaviour system on Sheep to test it out 2024-04-17 04:52:11 +02:00
44f5556e74
Delete SkitterFromMouse 2024-04-17 01:54:12 +02:00
382fe80266
Rename EdibleTracker to TrackerEdible 2024-04-17 01:10:03 +02:00
3c0439b2a0
Create Priority and SamplerPriority 2024-04-17 00:55:17 +02:00
54076eea57
Remove unnecessary icon definitions 2024-04-16 19:52:16 +02:00
9c84295ac6
Fix AIHunterErratic and AIHunterPersistent node names 2024-04-16 05:09:31 +02:00
f1ca11d887
Create Samplers 2024-04-16 05:08:25 +02:00
69b08c09e7
Create Move and MoveStraight and refactor MoveTowards 2024-04-16 04:29:34 +02:00
fd0d973658
Remove MoveTowardsMouse and MoveTowardsTarget 2024-04-16 04:04:46 +02:00
36c1743979
Break Draggable 2024-04-16 03:56:46 +02:00
6d5360ec35
Remove unused SpawnerFree 2024-04-16 03:20:02 +02:00
b172e919d9
Refactor SpawnerChoice 2024-04-16 03:11:57 +02:00
10f17c1e9e
Refactor Spawner 2024-04-16 03:02:19 +02:00
a3d98df9ff
Refactor movement and entity logic 2024-04-16 02:47:31 +02:00
d222e8c066
Refactor MoveTowards so that it only handles deciding a direction 2024-04-16 01:57:22 +02:00
e2f4ad461e
Refactor HoverDetector into CursorDetector 2024-04-16 01:56:46 +02:00
fa502ba267
Refactor Hunter into EdibleTracker 2024-04-16 00:20:21 +02:00
db1805eec5
Add icon to HoverDetector 2024-04-16 00:17:10 +02:00
deff3534c8
Add debug logging on Edible.eaten 2024-04-16 00:16:57 +02:00
ac4817cf3d
Add an icon to Edible 2024-04-16 00:04:55 +02:00
fa4c58c8e0
Add icon to Eater 2024-04-15 23:50:39 +02:00
5a7847a2b0
Document Counter 2024-04-15 23:45:42 +02:00
e0cae47b29
Add custom icon for Collectable 2024-04-15 22:58:18 +02:00
8012c84292
Refactor Eater and Edible 2024-04-15 22:43:26 +02:00
97b415fabd
Cleanup and document Counter 2024-04-15 22:39:43 +02:00
85d487a56c
Make Collectable an Area2D 2024-04-15 22:39:06 +02:00
c12df50328
Remove CollisionShape2D from inside behaviours 2024-04-15 22:32:22 +02:00
0c7c4d581a
Remove tag parameter from Collectable.collected 2024-04-15 22:30:35 +02:00
0c2cefb255
Fix spawner sometimes failing to spawn 2024-04-15 21:51:24 +02:00
8ed5cccabb
Don't make sprites implode while being dragged 2024-04-15 21:27:23 +02:00
058a2a6ac9
Make gold play a sound on pickup 2024-04-15 06:21:36 +02:00
a894aa2018
Add Imp sprite and make it eat Sheep 2024-04-15 06:07:49 +02:00
2b513b8bb2
Create SpriteLeftRight behaviour 2024-04-15 05:43:07 +02:00
180e66e7fc
Merge branch 'main' of https://github.com/Steffo99/ld55 2024-04-15 03:06:33 +02:00
c3808090ff
Connect eaten signal for debug logging 2024-04-15 03:06:31 +02:00
fecacaf2aa
Add WIP DropOnFree 2024-04-15 03:05:35 +02:00
Lorenzo Rossi
c12ff464e2 Add eat_target and imp behaviour 2024-04-15 02:45:18 +02:00
5dd3c62410
Create Eater behaviour 2024-04-15 01:23:06 +02:00
b1ab4cc5c7
Create HuntTarget behaviour 2024-04-14 23:29:29 +02:00
05a0f84b70
Re-add layer to Collectable 2024-04-14 23:08:58 +02:00
df727592e0
Re-add layer to HoverDetector 2024-04-14 23:07:05 +02:00
Lorenzo Rossi
beb42d04ed Add cloud to spawn sheeps 2024-04-14 22:36:34 +02:00
15152dc638
Add script to `SpawnerChoice 2024-04-14 21:38:43 +02:00
510d14fd4c
Create SpawnerChoice selecting a random subspawner to spawn things from 2024-04-14 21:21:43 +02:00
00fbc2f649
Configure MoveTowardsTarget's CaptureArea collision mask 2024-04-14 20:59:19 +02:00
9fda8cc86f
Configure Hunter's CollisionArea layer and mask 2024-04-14 20:57:25 +02:00
ba99709a55
Remove collision layers from HoverDetector 2024-04-14 20:56:44 +02:00
b0908e4e29
Remove collision layers from Draggable 2024-04-14 20:56:18 +02:00
42661f8efc
Remove collision layers from Collectable 2024-04-14 20:55:25 +02:00
Lorenzo Rossi
2fc4f9e91a Add spawner and SpawnedEntities 2024-04-14 19:48:13 +02:00
Lorenzo Rossi
8f46ff5022 Generalize move_towards_mouse in move_towards
Also create move_towards_target
2024-04-14 18:20:50 +02:00
6a14979de7
I have no idea why this wasn't committed??? 2024-04-14 18:10:31 +02:00
Lorenzo Rossi
b16583f799 Remove match_mouse_position.tscn as their script 2024-04-14 17:31:28 +02:00
3d17dcd3f0
Make Sheeps Draggable with a CursorMagnet
Throwing and drag isn't implemented yet. Any ideas for how to do it with this framework?
Might be a good idea to do it on a branch first...
2024-04-14 07:46:06 +02:00
d699ec9110
Set HoverDetector shape alpha to 0 because of funnies 2024-04-14 07:30:53 +02:00
aa38f02244
Remove unused capture_area reference 2024-04-14 07:23:33 +02:00
470aa1cf8e
Remove speed limit from MoveTowardsMouse 2024-04-14 07:23:10 +02:00
7568c5bcd7
Delete MatchMousePosition, as it's already implemented by MoveTowardsMouse with an infinite radius and speed 2024-04-14 07:22:43 +02:00
6df6455505
Make Draggable an Area2D consisting of the mouse target 2024-04-14 07:21:24 +02:00
4e1ba1311f
Create MatchMousePosition behaviour 2024-04-14 06:49:15 +02:00
114e386835
ofc autosave doesn't work 2024-04-14 06:26:27 +02:00
330bac8d0e
Rename Pickable to Draggable and add the drag and drop methods 2024-04-14 06:26:14 +02:00
caafcd54ee
Pickable didn't save ofc 2024-04-14 05:30:29 +02:00
c39de9cb4c
Create a Pickable token class to mark objects that can be picked up with the cursor 2024-04-14 05:25:36 +02:00
45512a8ba1
Make it possible for MoveTowardsMouse to detach and stop moving 2024-04-14 05:12:10 +02:00
c2dab55333
Tweak SkitterFromMouse after manual testing 2024-04-14 05:09:22 +02:00
ff3c0d97d3
SkitterFromMouse: it turns out randi_range is inclusive 2024-04-14 05:01:27 +02:00
3b7c49b8cf
Make Collectable's Shape radius 16px 2024-04-14 04:35:57 +02:00
3ce1bffb83
Make Collectable's MouseArea unmonitorable 2024-04-14 04:34:37 +02:00
71a409df23
Fix reference in MoveTowardsMouse mysteriously not working 2024-04-14 04:30:23 +02:00
c7bd5c9359
Fix reference acquisition in MoveTowardsMouse 2024-04-14 04:18:38 +02:00
2849dee2dc
Fix MoveTowardsMouse using the wrong coordinate system 2024-04-14 04:11:34 +02:00
1aa785c08a
Specify return type of MainGame.get_ancestor 2024-04-14 04:07:35 +02:00
cfe8091901
Make type of MoveTowardsMouse.speed explicit 2024-04-14 04:04:26 +02:00
a499ffddb9
Increase default speed of SkitterFromMouse to 200 px/s 2024-04-14 04:03:52 +02:00
a1a027793c
Increase default speed of MoveTowardsMouse to 100 px/s 2024-04-14 04:03:01 +02:00
443cf25440
Start MoveTowardsMouse from State.STILL 2024-04-14 04:02:00 +02:00