Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions trivialkart/trivialkart_unreal/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,7 @@ Plugins/*/Intermediate/*
# Cache files for the editor to use
DerivedDataCache/*

# Local developer collections and personal assets
Content/Developers/*
Content/Collections/*

7 changes: 6 additions & 1 deletion trivialkart/trivialkart_unreal/Config/DefaultEngine.ini
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ CommandletClass=Class'/Script/UnrealEd.WorldPartitionConvertCommandlet'
bAuthorizeAutomaticWidgetVariableCreation=False
FontDPIPreset=Standard
FontDPI=72
RenderFocusRule=Never

[SystemSettings]
Android.EnableMouse=1
Android.EnableHardwareKeyboard=1

[/Script/Engine.Engine]
+ActiveGameNameRedirects=(OldGameName="TP_Blank",NewGameName="/Script/TrivialKart_Unreal")
Expand Down Expand Up @@ -379,7 +384,7 @@ GCMClientSenderID=
bShowLaunchImage=True
bAllowIMU=False
bAllowControllers=True
bBlockAndroidKeysOnControllers=False
bBlockAndroidKeysOnControllers=True
bControllersBlockDeviceFeedback=False
AudioSampleRate=44100
AudioCallbackBufferFrameSize=1024
Expand Down
16 changes: 16 additions & 0 deletions trivialkart/trivialkart_unreal/Config/DefaultInput.ini
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,19 @@ DefaultTouchInterface=None
-ConsoleKeys=Tilde
+ConsoleKeys=Tilde

[InputPlatformSettings_Android InputPlatformSettings]
input.DeviceMappingPolicy=3

[InputPlatformSettings_Mac InputPlatformSettings]
input.DeviceMappingPolicy=3

[InputPlatformSettings_Windows InputPlatformSettings]
input.DeviceMappingPolicy=3

[InputPlatformSettings_IOS InputPlatformSettings]
input.DeviceMappingPolicy=3

[InputPlatformSettings_Linux InputPlatformSettings]
input.DeviceMappingPolicy=3


8 changes: 5 additions & 3 deletions trivialkart/trivialkart_unreal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ This version of TrivialKart demonstrates:

* **Play Games Services (v2)**: For sign-in, achievements, and cloud save (using Online Subsystem GooglePlay Extension).
* **In-App Purchases (IAP)**.
* **Controller & Multi-Input Support**: Seamless runtime switching across Touch, Gamepad (Bluetooth / USB controllers), and Keyboard/Mouse with full UI navigation and visual focus indicators.

---

## Pre-requisites

* **Unreal Engine**: Version 5.4 or higher (Recommended).
* **Unreal Engine**: Version 5.7 or higher (Recommended).
* **Android Studio**: Properly configured for the specific version of Unreal Engine being used.
* **Google Play Games Unreal Plugin**: Ensure the official plugin is enabled.

Expand All @@ -24,7 +25,7 @@ This version of TrivialKart demonstrates:
## Getting started

1. Clone the repository and navigate to `trivialkart/trivialkart_unreal`.
2. Right-click `TrivialKart.uproject` and select **Generate Visual Studio project files**.
2. Right-click `TrivialKart_Unreal.uproject` and select **Generate Visual Studio project files**.
3. Open the `.sln` file in Visual Studio (or the `.uproject` in Unreal Editor).
4. Open the `L_TrivialKart` found in `Content/Maps`.

Expand All @@ -34,7 +35,8 @@ By default, Google Play features are simulated or disabled unless the Google Pla

## Overview

In TrivialKart, the player has a vehicle which they can drive by tapping on it.
In TrivialKart, the player has a vehicle which they can drive by touching and holding on screen, holding a gamepad trigger / primary face button (`A` on Xbox, `X` on PlayStation, `B` on Nintendo Switch) / D-Pad Right / Left Stick Right, or holding `Spacebar` / clicking.
Navigate menus (`Garage`, `Play Games Services`, `Store`) using D-Pad or Left Stick, switch tabs with `LB` / `RB` (`L1` / `R1`, `L` / `R`, or `Tab` / `Shift+Tab`), confirm with the bottom face button (`Enter`), and go back with the right face button (`Esc` or Android Back).
Driving the car uses gas. When the car runs out of gas, to continue driving,
more must be purchased using in-game currency. If the player runs out of
in-game currency, they may buy more via in-app purchases.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public class TrivialKart_UnrealTarget : TargetRules
public TrivialKart_UnrealTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Game;
DefaultBuildSettings = BuildSettingsVersion.V6;
IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_7;
DefaultBuildSettings = BuildSettingsVersion.Latest;
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
ExtraModuleNames.Add("TrivialKart_Unreal");
}
}
Loading