Added a custom sky sphere along with custom child assets like a sky material. Added a custom unlit material for text. Made a main menu. Removed teleportation. Made a custom C++ function for getting the default map name and assigned it to the Restart button in the VRTemplate's left hand in-game menu. Tucked the prototype stuff away in folders Prototype1 and Prototype2, so we can move forward with the full version of the game now (we can reuse stuff from the prototypes, of course).

This commit is contained in:
Mihkel Roomet 2024-04-18 03:24:39 +03:00
parent b286770a8a
commit 52e791213f
34 changed files with 174 additions and 27 deletions

13
.vsconfig Normal file
View File

@ -0,0 +1,13 @@
{
"version": "1.0",
"components": [
"Microsoft.Net.Component.4.6.2.TargetingPack",
"Microsoft.VisualStudio.Component.VC.14.36.17.6.x86.x64",
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
"Microsoft.VisualStudio.Component.Windows10SDK.22000",
"Microsoft.VisualStudio.Workload.CoreEditor",
"Microsoft.VisualStudio.Workload.ManagedDesktop",
"Microsoft.VisualStudio.Workload.NativeDesktop",
"Microsoft.VisualStudio.Workload.NativeGame"
]
}

View File

@ -132,7 +132,7 @@ DefaultGraphicsPerformance=Scalable
AppliedDefaultGraphicsPerformance=Scalable AppliedDefaultGraphicsPerformance=Scalable
[/Script/EngineSettings.GameMapsSettings] [/Script/EngineSettings.GameMapsSettings]
EditorStartupMap=/Game/Maps/Prototype_BubbleGrid2.Prototype_BubbleGrid2 EditorStartupMap=/Game/Maps/MainMenu.MainMenu
LocalMapOptions= LocalMapOptions=
TransitionMap=None TransitionMap=None
bUseSplitscreen=False bUseSplitscreen=False
@ -141,8 +141,8 @@ ThreePlayerSplitscreenLayout=FavorTop
FourPlayerSplitscreenLayout=Grid FourPlayerSplitscreenLayout=Grid
bOffsetPlayerGamepadIds=False bOffsetPlayerGamepadIds=False
GameInstanceClass=/Script/Engine.GameInstance GameInstanceClass=/Script/Engine.GameInstance
GameDefaultMap=/Game/Maps/Prototype_BubbleGrid2.Prototype_BubbleGrid2 GameDefaultMap=/Game/Maps/MainMenu.MainMenu
ServerDefaultMap=/Engine/Maps/Entry.Entry ServerDefaultMap=/Game/Maps/MainMenu.MainMenu
GlobalDefaultGameMode=/Game/VRTemplate/Blueprints/VRGameMode.VRGameMode_C GlobalDefaultGameMode=/Game/VRTemplate/Blueprints/VRGameMode.VRGameMode_C
GlobalDefaultServerGameMode=None GlobalDefaultServerGameMode=None

BIN
Content/Blueprints/BP_Bubble.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/BP_Bubble1.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Blueprints/BP_Bubble2.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Blueprints/BP_BubbleGrid1.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Blueprints/BP_BubbleGrid2.uasset (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

BIN
Content/Blueprints/BP_MenuOption.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Maps/MainMenu.umap (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Maps/Prototype_BubbleGrid.umap (Stored with Git LFS)

Binary file not shown.

BIN
Content/Maps/Prototype_BubbleGrid2.umap (Stored with Git LFS)

Binary file not shown.

BIN
Content/Materials/CustomTextMaterialOpaque.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Materials/M_Transparent.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Meshes/SM_CustomSkySphere.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Meshes/SM_SkySphere.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Prototype1/BP_Bubble1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Prototype1/BP_BubbleGrid1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Prototype1/Prototype1.umap (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Prototype1/Prototype_BubbleGrid.umap (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Prototype2/BP_Bubble2.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Prototype2/BP_BubbleGrid2.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Prototype2/Prototype2.umap (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Prototype2/Prototype_BubbleGrid2.umap (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -3,6 +3,16 @@
"EngineAssociation": "5.3", "EngineAssociation": "5.3",
"Category": "", "Category": "",
"Description": "", "Description": "",
"Modules": [
{
"Name": "ReactionGame",
"Type": "Runtime",
"LoadingPhase": "Default",
"AdditionalDependencies": [
"Engine"
]
}
],
"Plugins": [ "Plugins": [
{ {
"Name": "OpenXR", "Name": "OpenXR",

View File

@ -0,0 +1,15 @@
// Fill out your copyright notice in the Description page of Project Settings.
using UnrealBuildTool;
using System.Collections.Generic;
public class ReactionGameTarget : TargetRules
{
public ReactionGameTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Game;
DefaultBuildSettings = BuildSettingsVersion.V4;
ExtraModuleNames.AddRange( new string[] { "ReactionGame" } );
}
}

View File

@ -0,0 +1,11 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "CustomBlueprintFunctionLibrary.h"
#include "GameMapsSettings.h"
FString UCustomBlueprintFunctionLibrary::GetDefaultMapName()
{
const UGameMapsSettings* GameMapsSettings = GetDefault<UGameMapsSettings>();
return GameMapsSettings->GetGameDefaultMap();
}

View File

@ -0,0 +1,18 @@
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "CustomBlueprintFunctionLibrary.generated.h"
/**
*
*/
UCLASS()
class REACTIONGAME_API UCustomBlueprintFunctionLibrary : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable, Category = "Custom Utilities")
static FString GetDefaultMapName();
};

View File

@ -0,0 +1,23 @@
// Fill out your copyright notice in the Description page of Project Settings.
using UnrealBuildTool;
public class ReactionGame : ModuleRules
{
public ReactionGame(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "EngineSettings" });
PrivateDependencyModuleNames.AddRange(new string[] { });
// Uncomment if you are using Slate UI
// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
// Uncomment if you are using online features
// PrivateDependencyModuleNames.Add("OnlineSubsystem");
// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
}
}

View File

@ -0,0 +1,6 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "ReactionGame.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, ReactionGame, "ReactionGame" );

View File

@ -0,0 +1,6 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"

View File

@ -0,0 +1,15 @@
// Fill out your copyright notice in the Description page of Project Settings.
using UnrealBuildTool;
using System.Collections.Generic;
public class ReactionGameEditorTarget : TargetRules
{
public ReactionGameEditorTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Editor;
DefaultBuildSettings = BuildSettingsVersion.V4;
ExtraModuleNames.AddRange( new string[] { "ReactionGame" } );
}
}