canhorn / BabylonJS.Blazor.Game.Tutorial

A Blazor Game Created from the Guided Learning of BabylonJS.

Home Page:https://doc.babylonjs.com/guidedLearning/createAGame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This project is from the BabylonJS Guided Learning Create a Game Tutorial Series, the different is that this project is built on top of Blazor Wasm using EventHorizon.Blazor.TypeScript.Interop.Generator to generate a C# proxy layer to the talk with the BabylonJS Framework.

This show cases Blazor Wasm being used with a relativity complicated JavaScript Framework to create a functional Game.

EventHorizon.Blazor.TypeScript.Interop.Generator

This is a project I, Cody Merritt Anhorn, personally created to help with the generation of the .NET/C# proxy layer. This proxy layer creates an interop layer to the underlying JavaScript having an almost exact API that would be used if the game was built in JavaScript/TypeScript.

Original Game

Commands

# Setup .NET Http SSL
dotnet dev-certs https --trust

# Install EHZ Generator Tool
dotnet tool install -g EventHorizon.Blazor.TypeScript.Interop.Tool

# Update EHZ Generator Tool
dotnet tool update -g EventHorizon.Blazor.TypeScript.Interop.Tool

# Generated BabylonJS project interop with multiple sources.
ehz-generate -c Scene -c Engine -c DebugLayer -c HemisphericLight -c PointLight -c ArcRotateCamera -c UniversalCamera -c PBRMetallicRoughnessMaterial -c MeshBuilder -c SceneLoader -c StandardMaterial -c ExecuteCodeAction -c AdvancedDynamicTexture -c Button -c StackPanel -c Sound -c CubeTexture -c GlowLayer -a Blazor.BabylonJS.WASM -s https://cdn.jsdelivr.net/gh/BabylonJS/Babylon.js@4.2.0/dist/babylon.d.ts -s https://cdn.jsdelivr.net/gh/BabylonJS/Babylon.js@4.2.0/dist/gui/babylon.gui.d.ts

Licensing

Art Assets

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.
Art by Bianca Guerrero (capucat)

Music

"copycat" by syncopika is licensed under CC-BY 3.0
"Snowland Town" by Matthew Pablo is licensed under CC-BY 3.0
http://www.matthewpablo.com
"Jump2" by LloydEvans09 is licensed under CC-BY 3.0

Other Assets

Unless specified, all other assets are licensed under CC0

About

A Blazor Game Created from the Guided Learning of BabylonJS.

https://doc.babylonjs.com/guidedLearning/createAGame


Languages

Language:C# 99.8%Language:HTML 0.1%Language:CSS 0.1%