Commit Graph

79 Commits

Author SHA1 Message Date
Stedd e37bd3fde5 Added simple power loss mechanic
Also added two UI texts to see power consumption and generation
2024-10-05 19:24:11 +02:00
Stedd 165fa076c6 Added simple enemy spawner 2024-10-05 18:54:10 +02:00
Stedd f42899649c Added some some more turrets and enemies 2024-10-05 17:29:45 +02:00
Stedd 7ae77b4357 Reduced speed of enemies 2024-10-05 17:29:27 +02:00
Stedd 2cfa1da8a7 Added debug functions 2024-10-05 17:19:15 +02:00
Stedd a43d9f354a using cleanup 2024-10-05 17:10:03 +02:00
Stedd fabec89267 Fixed error in target RuntimeSets 2024-10-05 17:09:24 +02:00
Stedd 253f7b78d1 Fixed a mistake in Turret OnEnable method 2024-10-05 17:08:01 +02:00
Stedd d4e9bde59d Renamed TargetFinder function 2024-10-05 17:07:38 +02:00
Stedd 1719b56d8a Fixed null error if there are no targets 2024-10-05 17:07:22 +02:00
Stedd bb89431807 Added simple death mechanic 2024-10-05 17:06:31 +02:00
Stedd 369c32fe71 A bunch of settings was reverted after the last commit. 2024-10-05 15:58:23 +02:00
Stedd f7ae5d6549 Merge remote-tracking branch 'origin/Dev/ScriptableObjectsRefactor' into Dev/ScriptableObjectsRefactor
# Conflicts:
#	Assets/Entities/Scripts/EntityBase.cs
#	Assets/Entities/Scripts/PowerBase.cs
#	Assets/Entities/Structures/Scripts/StructureBase.cs
2024-10-05 15:39:14 +02:00
Stedd 9e0304fe93 Fixed bug in PowerBase initialization 2024-10-05 15:35:58 +02:00
Stedd 53560fcc6b Nicer syntax for adding components if null 2024-10-05 15:34:39 +02:00
Stedd 37d0e02368 Updated unity 2024-10-05 15:24:41 +02:00
Stedd 979e631eac WIP ScriptableObjects Refactor 2023-10-28 18:09:02 +02:00
Stedd 294340f637 Latest CoreSystems 2023-10-09 01:40:08 +02:00
Stedd 911f18a5e7 Changes from build and run 2023-10-09 01:39:51 +02:00
Stedd 841b8f5b11 Enemies has weapons 2023-10-08 19:15:18 +02:00
Stedd e4d15da38c Turret weapon working 2023-10-08 18:49:25 +02:00
Stedd 780bef97b6 latest core 2023-10-08 16:52:16 +02:00
Stedd b043440827 Reorganizing and renaming 2023-10-08 16:50:59 +02:00
Stedd cd62cd6aa2 Updated NavMesh 2023-10-08 16:42:15 +02:00
Stedd 6956bf0c7f Added some runtime sets 2023-10-08 16:23:57 +02:00
Stedd 33c644b2d8 Targeting working again 2023-10-08 16:20:52 +02:00
Stedd 0a67caf9be Changed namespaces 2023-10-08 14:54:36 +02:00
Stedd 1bb9d584dd moved interfaces to CoreSystems 2023-10-08 14:07:18 +02:00
Stedd 357e02ff4f Changed naming scheme of ScriptableObjects 2023-10-08 14:06:15 +02:00
Stedd 35d80db948 Added submodule 2023-10-08 13:14:17 +02:00
Stedd ce40da5de0 Unity 2022.3.10 2023-10-08 13:01:21 +02:00
Stedd 9237031dc6 Some cleanups 2022-10-06 00:40:50 +02:00
Stedd 4027bf3c97 WIP PowerSystem 2022-10-06 00:35:57 +02:00
Stedd b1f2446fa6 Added Targeting for entities
*Changed all Runtime Sets to be <EntityBase> instead of <StructureBase> or <EnemyBase>
*Added targeting configuration scriptable object (can now set up many differet targeting schemes and use them as needed)
*Added targeting script
*Modified Turret and Enemy to use targeting script (added on play)
*Added NavMesh and NavMeshAgents for enemy movement to be used during prototyping
2022-10-01 21:42:18 +02:00
Stedd a70bd626a6 Updated PowerHandler
Calculates consumption and peak consumption
2022-10-01 20:03:27 +02:00
Stedd 47fdfdbc66 Added Turret targeting 2022-10-01 18:17:16 +02:00
Stedd f89ab59fdf Changed to using Runtime sets
Handlers are now using runtime sets instead of owning lists.
Entities that are instantiated assign themselves to their respective Runtime sets.

Heavily inspired by:
https://www.youtube.com/watch?v=raQ3iHhE_Kk
https://github.com/roboryantron/Unite2017
2022-10-01 17:59:06 +02:00
Stedd 4151ba0050 Project cleanup 2022-10-01 13:31:32 +02:00
Thomas Hodnemyr 01962bbc04 Added Shift to "build many" in build handler 2022-09-18 23:24:48 +02:00
Thomas Hodnemyr 128caae1bb Initial Build Menu
Added a new Package to the project
2022-09-18 23:02:39 +02:00
Stedd 8952fb0280 Give index when entering build mode 2022-09-18 22:09:08 +02:00
Stedd 8be9c3cd70 Cleanup to be able to build 2022-09-18 21:54:55 +02:00
Stedd 9b72751e15 Changed available buildings to dictionary 2022-09-18 21:54:33 +02:00
Stedd cea045ae2c WIP Power system 2022-09-18 20:05:49 +02:00
Stedd 13be4256ce AvailableStructures ScriptableObject 2022-09-18 19:07:09 +02:00
Stedd fd9c91d72b Can build turrets and powerstation from UI 2022-09-18 17:14:42 +02:00
Stedd bd4fc1af8f Ghost structure coloring in build mode 2022-09-18 16:47:11 +02:00
Stedd 46b21baba4 Added Crude UI
Possible to start building from UI button
2022-09-18 15:25:38 +02:00
Stedd 98624fafd1 Moved Packages
*HDRP
*TextMeshPro
2022-09-18 15:25:18 +02:00
Stedd cbeeffe971 Added Powerplant building 2022-09-18 14:49:02 +02:00