Giter Club home page Giter Club logo

ue4-shootergame's Introduction

NoesisGUI Unreal Engine ShooterGame Demo

Demo screenshot

Introduction

This is a modified version of Epic's ShooterGame tutorial in which we've replaced the original UI (HUD and menus) with one made with NoesisGUI. Because the original UI was done using native code (HUD and Slate Widgets), we've had to make some changes to expose some data and functionality to Blueprints, but all the UI is done using XAML and Blueprints.

Demo Breakdown

Blueprint

  • Blueprint'/Game/Blueprints/Noesis/ShooterGame_Menu_Noesis.ShooterGame_Menu_Noesis', Blueprint'/Game/Blueprints/Noesis/ShooterGame_TeamDeathmatch_Noesis.ShooterGame_TeamDeathmatch_Noesis' and Blueprint'/Game/Blueprints/Noesis/ShotterGame_FreeForAll_Noesis.ShotterGame_FreeForAll_Noesis': These GameModes replace the original ones. They specify which controllers to use (Blueprint'/Game/Blueprints/Noesis/ShooterPlayerController_Menu_Noesis.ShooterPlayerController_Menu_Noesis' in Blueprint'/Game/Blueprints/Noesis/ShooterGame_Menu_Noesis.ShooterGame_Menu_Noesis' and Blueprint'/Game/Blueprints/Noesis/ShooterPlayerController_Noesis.ShooterPlayerController_Noesis' in the other two), and specify no HUD will be used, as we will be using NoesisGUI for it.

Blueprint'/Game/Blueprints/Noesis/ShooterGame_Menu_Noesis.ShooterGame_Menu_Noesis'

  • Blueprint'/Game/Blueprints/Noesis/ShooterPlayerController_Menu_Noesis.ShooterPlayerController_Menu_Noesis': It replaces the PlayerController used in the main menu of the game. It binds to the events OnStateStarted and OnStateEnding from ShooterGameInstance. The function OnStateStarted is responsible for creating a Widget from the NoesisView NoesisBlueprint'/Game/Noesis/ShooterMainMenuWidget.ShooterMainMenuWidget', adding it to the viewport and setting the input mode.

Blueprint'/Game/Blueprints/Noesis/ShooterPlayerController_Menu_Noesis.ShooterPlayerController_Menu_Noesis'

  • Blueprint'/Game/Blueprints/Noesis/ShooterPlayerController_Noesis.ShooterPlayerController_Noesis': It replaces the PlayerController used in game. It handles the InGameMenu InputAction to show and hide the in game menu, which is a Widget created from the NoesisView NoesisBlueprint'/Game/Noesis/ShooterInGameMenuWidget.ShooterInGameMenuWidget'.

Blueprint'/Game/Blueprints/Noesis/ShooterPlayerController_Noesis.ShooterPlayerController_Noesis'

  • NoesisBlueprint'/Game/Noesis/ShooterHUDWidget.ShooterHUDWidget': It's the NoesisView for the in game HUD. It also the DataContext for the NoesisXaml NoesisXaml'/Game/HUD.HUD'. It exposes the properties used for Binding as variables, which are grouped in the 'Properties' category.

NoesisBlueprint'/Game/Noesis/ShooterHUDWidget.ShooterHUDWidget'

  • NoesisBlueprint'/Game/Noesis/ShooterInGameMenuWidget.ShooterInGameMenuWidget': It's the NoesisView for the in game HUD. It also the DataContext for the NoesisXaml NoesisXaml'/Game/GameMenu.GameMenu'. It exposes the properties used for Binding as variables, which are grouped in the 'Properties' category, and a few as pairs of Get/Set functions. Note how the properties InfiniteAmmo, InfiniteClip, FreezeMatchTimer and HealthRegeneration, which are the ones implemented as functions and get their data from the ShooterPlayerController are manually notified in the Initialize function when said variable changes, as well as in the corresponding Set functions. It also implements the Commands ApplyOptions, Resume, BackToMainMenu and Quit.

NoesisBlueprint'/Game/Noesis/ShooterInGameMenuWidget.ShooterInGameMenuWidget'

  • NoesisBlueprint'/Game/Noesis/ShooterMainMenuWidget.ShooterMainMenuWidget': It's the NoesisView for the in game HUD. It also the DataContext for the NoesisXaml NoesisXaml'/Game/MainMenu.MainMenu'. It exposes the properties used for Binding as variables, which are grouped in the 'Properties' category. It also implements the Commands ApplyOptions, HostFFA, HostTDM, SearchServer, JoinGame and Quit.SearchServer and JoinGame are used along CanExecuteSearchServer and CanExecuteJoinGame, that serve as the CanExecute functions of their respective Commands.

NoesisBlueprint'/Game/Noesis/ShooterMainMenuWidget.ShooterMainMenuWidget'

  • ShooterEntry - Level Blueprint: It has a GameMode override to use Blueprint'/Game/Blueprints/Noesis/ShooterGame_Menu_Noesis.ShooterGame_Menu_Noesis'.

ShooterEntry - Level Blueprint

ue4-shootergame's People

Contributors

hcpizzi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.