ultr7A / cookie-star

vr game engine + static site generator

Home Page:https://uwu.ultr7a.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🌠 Cookie Star ✨πŸͺ🐈

WebXR game engine, blogging framework and static site generator.

Create VR environments from markdown :)

Getting Started

  • Your markdown files will be read from the ./content folder.
  • To set a sort order, prefix each file with a number, like this 1.blog-page.md 2.contact-page.md etc
# Hello XR
<Sequence axis="x">
+ foo
    + bar
    + baz
[thing](https://example.link)
</Sequence>
  • Once your content is in place, the generator, the server and the client need to be compiled..

Setting up the 3 components:

### Setup
cd ./client
npm install

cd ../server
go build

../generator
./build.sh

Installing example content (optional)

cd generator;
./init-example.sh

Generating a webxr site from markdown:

### Usage
cd ./client

# render markdown, compile front-end, and create static files to serve:
npm run generate

# dev mode
npm start

Run-commands (custom scripts for each page)

  • Define your custom markdown js API at ./client/src/0100_content/configure.ts
  • To specify run-commands for the game engine, for a specific markdown page, create a json file with matching name, like this 1.blog-page.json
{
    "call": [
        [
            "systems.byComponent.UserControls.track.setCameraPoses",
            [
                { "position": [ 0,    2, 4], "target": [0,  2,  -22] },
                { "position": [ 0.25, 1, 3], "target": [0,  2,  -22] },
                { "position": [-0.25,-2, 3], "target": [0,  2,  -22] },
                { "position": [ 0.25,-3, 3], "target": [0,  2,  -22] }
            ]
        ]
    ]
}

About

vr game engine + static site generator

https://uwu.ultr7a.com


Languages

Language:TypeScript 91.6%Language:Go 4.2%Language:CSS 2.3%Language:JavaScript 1.0%Language:Shell 0.4%Language:HTML 0.4%