diff --git a/BP_Pics/Hazards/CampfireDetails.jpg b/BP_Pics/Hazards/CampfireDetails.jpg new file mode 100644 index 0000000..b15e62e Binary files /dev/null and b/BP_Pics/Hazards/CampfireDetails.jpg differ diff --git a/GameJamPlus2024/Content/Hazards/Fire/Fire3D/Blueprints/Blueprint_Effect_Fire.uasset b/GameJamPlus2024/Content/Hazards/Fire/Fire3D/Blueprints/Blueprint_Effect_Fire.uasset index 1c3d32b..a0d6369 100644 Binary files a/GameJamPlus2024/Content/Hazards/Fire/Fire3D/Blueprints/Blueprint_Effect_Fire.uasset and b/GameJamPlus2024/Content/Hazards/Fire/Fire3D/Blueprints/Blueprint_Effect_Fire.uasset differ diff --git a/GameJamPlus2024/Source/GameJamPlus2024/Private/Hazards/HazardBase.cpp b/GameJamPlus2024/Source/GameJamPlus2024/Private/Hazards/HazardBase.cpp new file mode 100644 index 0000000..49574ec --- /dev/null +++ b/GameJamPlus2024/Source/GameJamPlus2024/Private/Hazards/HazardBase.cpp @@ -0,0 +1,27 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "Hazards/HazardBase.h" + +// Sets default values +AHazardBase::AHazardBase() +{ + // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. + PrimaryActorTick.bCanEverTick = true; + CollisionBox = CreateDefaultSubobject(TEXT("CollisionBox")); +} + +// Called when the game starts or when spawned +void AHazardBase::BeginPlay() +{ + Super::BeginPlay(); + +} + +// Called every frame +void AHazardBase::Tick(float DeltaTime) +{ + Super::Tick(DeltaTime); + +} + diff --git a/GameJamPlus2024/Source/GameJamPlus2024/Private/Hazards/HazardCampfire.cpp b/GameJamPlus2024/Source/GameJamPlus2024/Private/Hazards/HazardCampfire.cpp new file mode 100644 index 0000000..beb428c --- /dev/null +++ b/GameJamPlus2024/Source/GameJamPlus2024/Private/Hazards/HazardCampfire.cpp @@ -0,0 +1,5 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "Hazards/HazardCampfire.h" + diff --git a/GameJamPlus2024/Source/GameJamPlus2024/Public/Hazards/HazardBase.h b/GameJamPlus2024/Source/GameJamPlus2024/Public/Hazards/HazardBase.h new file mode 100644 index 0000000..e045776 --- /dev/null +++ b/GameJamPlus2024/Source/GameJamPlus2024/Public/Hazards/HazardBase.h @@ -0,0 +1,31 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "Components/BoxComponent.h" +#include "GameFramework/Actor.h" +#include "HazardBase.generated.h" + +UCLASS() +class GAMEJAMPLUS2024_API AHazardBase : public AActor +{ + GENERATED_BODY() + +public: + // Sets default values for this actor's properties + AHazardBase(); + +protected: + // Called when the game starts or when spawned + virtual void BeginPlay() override; + + UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Upgrades", meta = (AllowPrivate)) + UBoxComponent* CollisionBox; + + +public: + // Called every frame + virtual void Tick(float DeltaTime) override; + +}; diff --git a/GameJamPlus2024/Source/GameJamPlus2024/Public/Hazards/HazardCampfire.h b/GameJamPlus2024/Source/GameJamPlus2024/Public/Hazards/HazardCampfire.h new file mode 100644 index 0000000..91f5205 --- /dev/null +++ b/GameJamPlus2024/Source/GameJamPlus2024/Public/Hazards/HazardCampfire.h @@ -0,0 +1,17 @@ + // Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "Hazards/HazardBase.h" +#include "HazardCampfire.generated.h" + +/** + * + */ +UCLASS() +class GAMEJAMPLUS2024_API AHazardCampfire : public AHazardBase +{ + GENERATED_BODY() + +};