Skip to content

Instantly share code, notes, and snippets.

View realityforge's full-sized avatar
🥷

Peter Donald realityforge

🥷
View GitHub Profile
@realityforge
realityforge / GameEngineDoc.md
Created October 20, 2026 00:12 — forked from TheCherno/GameEngineDoc.md
GameEngineDoc - AI Game Engine spec

AI Game Engine

We're building a production-grade, simple and straight-forward 3D Game Engine for Windows, macOS and Linux (Ubuntu 24+). This is professional-grade software that needs to be stable, fully-tested, and real-world deployable. No hacks, no shortcuts - solid as a rock.

Dev Workflow

  • Ask questions only when absolutely necessary - work autonomously
  • IMRORTANT! DO NOT look outside of working directory or use other code on my computer as reference
  • Start by asking question to determine engine name. Suggest a few
  • Testing is of the utmost importance - use lots of unit tests (any framework, simple is good), run automated testing
  • Setup a scene used for testing, which tests every single feature in the engine - all components, and entire scripting API

Everything I Know About UI Routing

Definitions

  1. Location - The location of the application. Usually just a URL, but the location can contain multiple pieces of information that can be used by an app
    1. pathname - The "file/directory" portion of the URL, like invoices/123
    2. search - The stuff after ? in a URL like /assignments?showGrades=1.
    3. query - A parsed version of search, usually an object but not a standard browser feature.
    4. hash - The # portion of the URL. This is not available to servers in request.url so its client only. By default it means which part of the page the user should be scrolled to, but developers use it for various things.
    5. state - Object associated with a location. Think of it like a hidden URL query. It's state you want to keep with a specific location, but you don't want it to be visible in the URL.

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: