Skip to content

sandboxcoder/GoKadane

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Basic game world simulation written in Go/React/WebGL. The math functions are using linear algebra and Geometry concepts (Plane, Vector3, Triangle). When I created this project, I wanted to see what these core math functions would look like in Go instead of C++/C# (where I've implemented something similar here for example).

How to Build

You can build the react client like this from a bash terminal, powershell, etc:

cd client
npm install
npm run build

How to run

Make sure Golang is installed (minimum 1.23).

Easiest way to run the app is within Visual Studio Code via the "Run Go and React" option in the dropdown (if you already built the react client as described above).

Alternate method to build & run both apps from within a bash terminal. The command below will build the frontend client code and run the Go server:

cd client
npm install
npm run build
cd ..
go run .

Now type this command to spin up the react client:

npm run start

Connect to http://localhost:3000 to view the single page app (SPA).

How to run the tests from command line

go test -v Kadane/core

Differences from C#/C++

Go doesnt utilize operator overloading so I needed to get a bit creative in the Vector3 class where I wanted to implement Add, Subtract, and Multiply operations.

About

Go/React/WebGL project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published