Skip to content

Nojus0/solid-isometric-game

Repository files navigation

Solid.js Isometric Game

Contribute with Gitpod Open in Codeflow

Isometric game engine prototype created using Solid.js

Website / Web App

Engine Components

Camera - Allows you to move arround using wasd keys

TextureLoader - Solid.js Suspense but for Loading textures

Canvas - Custom canvas component used for rendering, must be child of RenderContext.

GameObject - Create a gameobject's via JSX

Engine Hooks

useKeyboard - Map of Keyboard keys that are currently being held down

createGameObject - Exactly the same as GameObject JSX component just in a function form.

Engine Contexts

RenderContext - Context that handles rendering

SceneContext - Context that handles the current Scene, children must be GameObjects

Notes

SceneContext gets current RenderContext via Context

Custom canvas component gets current RenderContext via Context

GameObjects get current scene via Context