Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
13 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
# CHANGELOG: bob's game / OKGame (Omni-Workspace)


## [2.1.96] - 2026-07-08
### Added
- Integrated missing sub-scenes into the Omni-Engine Dashboard (`MainMenuScene.ts`):
- Added Item Shop & Merchant (`ShopScene`) under Creation & Editors category.
- Added Equipment & Inventory (`InventoryScene`) under Creation & Editors category.
- Added Quest Log & Trackers (`QuestLogScene`) under Community & Progress category.
- Added Skill Tree & Abilities (`SkillTreeScene`) under Community & Progress category.
- Implemented dynamic lazy-preloading and rich tooltips for all newly wired scenes.
- Created consolidated root runner script `scripts/run-servers.sh` with start, stop, restart, and status subcommands for managing Vite dev server and AI proxy background services.
- Created consolidated root build script `scripts/build-all.sh` orchestrating web engine builds and asset checks.
- Created reusable Python test runner `/home/jules/self_created_tools/test_runner.py` verifying all 35 project test suites.

### Changed
- Resolved Vite build asset warning by placing `src/data/doors.json` locally in `bobsgameweb/src/data/` and updating `LegacyMapLoader.ts`.
- Nondestructively archived temporary conversion and migration scripts from workspace root and `bobsgameweb/` into `archive/scripts/` and `archive/bobsgameweb/`.
- Updated governance documentation (`ROADMAP.md`, `TODO.md`, `VISION.md`, `MEMORY.md`, `DEPLOY.md`, `IDEAS.md`, `HANDOFF.md`, `VERSION.md`).

## [2.1.95] - 2026-07-08
### Changed
- Full multirepo sync: bobsgameweb v3.0.26, bobsgameonlinejava synced
Expand Down
2 changes: 1 addition & 1 deletion DEPLOY.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DEPLOY: Deployment Instructions (v2.1.73)
# DEPLOY: Deployment Instructions (v2.1.96)

## Architecture Overview

Expand Down
17 changes: 16 additions & 1 deletion HANDOFF.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
# HANDOFF: bob's game Omni-Workspace
**Last Updated**: 2026-07-08
**Version**: 2.1.95
**Version**: 2.1.96

## Session Overview & Structural Shifts
- **Omni-Engine Dashboard Consolidation**:
- `MainMenuScene.ts` in `bobsgameweb` had several functional RPG and progression scenes unreferenced in its navigation grid.
- Wired `ShopScene` (Item Shop & Merchant), `InventoryScene` (Equipment & Inventory), `QuestLogScene` (Quest Log & Trackers), and `SkillTreeScene` (Skill Tree & Abilities) into the unified menu system.
- Added rich tooltips, action dispatches, and prefetching for all new entries.
- **Asset Cleanups & Vite Build Warnings**:
- Eliminated Vite public folder warning during `LegacyMapLoader` dynamic doors import by copying `data/doors.json` to `bobsgameweb/src/data/doors.json` and cleanly importing it.
- **Workflow & Server Script Consolidation**:
- Created `scripts/run-servers.sh` supporting `start`, `stop`, `restart`, and `status` for background dev services (Vite server on port 3000, AI Proxy on port 8080).
- Created `scripts/build-all.sh` to handle dependencies, asset verification, and web building.
- Archived one-off conversion scripts into `archive/scripts/` and `archive/bobsgameweb/` nondestructively.
- **Automated Verification**:
- Created Python test runner tool `/home/jules/self_created_tools/test_runner.py` verifying all 35 test suites (100% pass rate).
- Verified frontend UI visual output with Playwright across all 4 dashboard categories.

## Multi-Repo Synchronization — Complete

Expand Down
2 changes: 1 addition & 1 deletion IDEAS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# IDEAS: Creative Improvements & Future Directions

*Brainstormed by Claude during v2.1.73 session*
*Updated during v2.1.96 session*

## 🎮 Game Design Ideas

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bg — the bob's game umbrella workspace

`bg` is the master workspace repository for **bob's game**: it ties together every engine implementation of the game plus the porting/consolidation tooling being used to modernize them. Version **2.1.95** (see `VERSION.md`). Default branch: `master`.
`bg` is the master workspace repository for **bob's game**: it ties together every engine implementation of the game plus the porting/consolidation tooling being used to modernize them. Version **2.1.96** (see `VERSION.md`). Default branch: `master`.

> **Alpha workspace.** This is a working developer tree, not a clean distributable repo — it contains logs, local databases, an SDK zip, and bot-session artifacts alongside the code and plans.

Expand Down
2 changes: 1 addition & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ROADMAP: bob's game — The Ultimate Omni-Engine

## Current Version: 2.1.75 | Status: Active Development
## Current Version: 2.1.96 | Status: Active Development

---

Expand Down
13 changes: 12 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
# TODO List — bob's game Omni-Engine

**Last Updated**: 2026-04-22 | **Version**: 2.1.81
**Last Updated**: 2026-07-08 | **Version**: 2.1.96

---

## 🔴 Critical — Completed Subsystem & Dashboard Integration
- [x] Wire missing scenes into Omni-Engine Dashboard (`MainMenuScene.ts`):
- [x] ShopScene (`Item Shop & Merchant`)
- [x] InventoryScene (`Equipment & Inventory`)
- [x] QuestLogScene (`Quest Log & Trackers`)
- [x] SkillTreeScene (`Skill Tree & Abilities`)
- [x] Resolve Vite static asset import warning for `doors.json`
- [x] Create consolidated scripts `scripts/run-servers.sh` and `scripts/build-all.sh`
- [x] Nondestructively archive redundant/one-off utility scripts into `archive/`
- [x] Expand test suite automation with Python test runner (`/home/jules/self_created_tools/test_runner.py` - 35/35 passing)

## 🔴 Critical — Game Loop Integration

### Wire ClientGameEngine into the main game loop
Expand Down
2 changes: 1 addition & 1 deletion VERSION.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.95
2.1.96
28 changes: 28 additions & 0 deletions archive/bobsgameweb/replace_audiomanager.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import re

def update_file(filepath):
with open(filepath, 'r') as f:
content = f.read()

# Need to add getFFTData if not present
if "getFFTData(" not in content:
fft_function = '''
public getFFTData(): Uint8Array {
if (!this.analyzer) return new Uint8Array(0);
const dataArray = new Uint8Array(this.analyzer.frequencyBinCount);
this.analyzer.getByteFrequencyData(dataArray);
return dataArray;
}
'''
# Insert before the end of the class
content = re.sub(r'\}\s*$', fft_function + '\n}', content)

# Check if analyzer is properly initialized, and if it's connected
if "this.analyzer = Howler.ctx.createAnalyser();" not in content:
# Try to inject inside constructor or init
pass

with open(filepath, 'w') as f:
f.write(content)

update_file('src/renderer/audio/AudioManager.ts')
13 changes: 13 additions & 0 deletions archive/bobsgameweb/replace_button_tooltip.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import re

def update_file(filepath):
with open(filepath, 'r') as f:
content = f.read()

# Tooltip system needs a global instance to work usually or it can be a static class
# For now we'll add tooltip text as property to ui components and handle it via an event or globally in CustomGameEditor

# We will just add tooltips via pixi interaction manager or directly as event listeners in CustomGameEditor
pass

# update_file('src/renderer/ui/Button.ts')
22 changes: 22 additions & 0 deletions archive/bobsgameweb/replace_changelog.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import re
from datetime import datetime

def update_file(filepath):
with open(filepath, 'r') as f:
content = f.read()

today = datetime.now().strftime('%Y-%m-%d')
new_entry = f"""## [3.0.12] - {today}
### Added
- Hooked WebGPU particle demo into main menu
- Added `getFFTData` to `AudioManager` for audio reactive components
- Added tooltips to UI elements in `CustomGameEditor` to better explain functionality and guide the user through the custom ruleset creation process.

"""
# Insert at the beginning of the changelog just after the header
content = re.sub(r'(# Changelog\n.*?\n)', r'\1' + new_entry, content, 1)

with open(filepath, 'w') as f:
f.write(content)

update_file('CHANGELOG.md')
18 changes: 18 additions & 0 deletions archive/bobsgameweb/replace_custom_game_editor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import re

def update_file(filepath):
with open(filepath, 'r') as f:
content = f.read()

# We want to add Tooltip to imports
if "import { Tooltip } from '../ui/Tooltip';" not in content:
content = content.replace('import { ToastManager } from \'../ui/ToastManager\';', 'import { ToastManager } from \'../ui/ToastManager\';\nimport { Tooltip } from \'../ui/Tooltip\';')

# We want to add tooltip to Buttons
# The Button component doesn't take tooltip in options natively based on standard pixi UI.
# Actually wait, let's look at the Button constructor to see if it supports tooltip.

with open(filepath, 'w') as f:
f.write(content)

update_file('src/renderer/editor/CustomGameEditor.ts')
52 changes: 52 additions & 0 deletions archive/bobsgameweb/replace_custom_game_editor_tooltips.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import re

def update_file(filepath):
with open(filepath, 'r') as f:
content = f.read()

if "import { Tooltip } from '../ui/Tooltip';" not in content:
content = content.replace('import { ToastManager } from \'../ui/ToastManager\';', 'import { ToastManager } from \'../ui/ToastManager\';\nimport { Tooltip } from \'../ui/Tooltip\';')

# Add tooltip instance
if "private tooltip!: Tooltip;" not in content:
content = re.sub(r'public pixiContainer: Container = new Container\(\);', 'public pixiContainer: Container = new Container();\n private tooltip!: Tooltip;', content)

# Initialize tooltip
if "this.tooltip = new Tooltip" not in content:
content = re.sub(r'this\.pixiNameInput = new TextInput', 'this.tooltip = new Tooltip(window.innerWidth, window.innerHeight);\n this.pixiContainer.addChild(this.tooltip.getContainer());\n\n this.pixiNameInput = new TextInput', content)

# Helper function for adding tooltips
if "private addTooltip" not in content:
content = re.sub(r'private createNew\(\) \{', 'private addTooltip(target: any, text: string) {\n target.container.on("pointerover", (e: any) => {\n this.tooltip.show(e.global.x, e.global.y, text);\n });\n target.container.on("pointermove", (e: any) => {\n this.tooltip.updatePosition(e.global.x, e.global.y);\n });\n target.container.on("pointerout", () => {\n this.tooltip.hide();\n });\n }\n\n private createNew() {', content)

# Add tooltips to elements
replacements = [
('const saveBtn = new Button("Save to Slot 1", { width: 140, height: 30 });', 'const saveBtn = new Button("Save to Slot 1", { width: 140, height: 30 });\n this.addTooltip(saveBtn, "Save your custom ruleset to Browser Storage Slot 1.");'),
('this.pixiNameInput = new TextInput("Enter Game Name", { width: 330, height: 30 });', 'this.pixiNameInput = new TextInput("Enter Game Name", { width: 330, height: 30 });\n this.addTooltip(this.pixiNameInput, "Name your custom puzzle game. This name is visible when sharing your game.");'),
('const txt2SpriteBtn = new Button("Text-to-Sprite", { width: 150, height: 30, backgroundColor: 0x440044 });', 'const txt2SpriteBtn = new Button("Text-to-Sprite", { width: 150, height: 30, backgroundColor: 0x440044 });\n this.addTooltip(txt2SpriteBtn, "Generate a sprite from a text description using AI.");'),
('const txt2TileBtn = new Button("Text-to-Tileset", { width: 150, height: 30, backgroundColor: 0x440044 });', 'const txt2TileBtn = new Button("Text-to-Tileset", { width: 150, height: 30, backgroundColor: 0x440044 });\n this.addTooltip(txt2TileBtn, "Generate a tile map from a text description using AI.");'),
('const addColorBtn = new Button("Add Color", { width: 150, height: 30, backgroundColor: 0x004444 });', 'const addColorBtn = new Button("Add Color", { width: 150, height: 30, backgroundColor: 0x004444 });\n this.addTooltip(addColorBtn, "Add a new block color to your palette.");'),
('const rmColorBtn = new Button("Remove Color", { width: 150, height: 30, backgroundColor: 0x004444 });', 'const rmColorBtn = new Button("Remove Color", { width: 150, height: 30, backgroundColor: 0x004444 });\n this.addTooltip(rmColorBtn, "Remove the last block color from your palette.");'),
('const preset1 = new Button("Classic Drop", { width: 100, height: 30, backgroundColor: 0x000044 });', 'const preset1 = new Button("Classic Drop", { width: 100, height: 30, backgroundColor: 0x000044 });\n this.addTooltip(preset1, "Load the Classic Drop ruleset (Standard 10x20 grid, 7 tetrominoes).");'),
('const preset2 = new Button("Sprint Drop", { width: 100, height: 30, backgroundColor: 0x000044 });', 'const preset2 = new Button("Sprint Drop", { width: 100, height: 30, backgroundColor: 0x000044 });\n this.addTooltip(preset2, "Load the Sprint Drop ruleset (Fast gravity, no lock delay).");'),
('const preset3 = new Button("Cascade", { width: 100, height: 30, backgroundColor: 0x000044 });', 'const preset3 = new Button("Cascade", { width: 100, height: 30, backgroundColor: 0x000044 });\n this.addTooltip(preset3, "Load the Cascade ruleset (Blocks fall apart when lines clear).");'),
('const preset4 = new Button("Zen Garden", { width: 100, height: 30, backgroundColor: 0x000044 });', 'const preset4 = new Button("Zen Garden", { width: 100, height: 30, backgroundColor: 0x000044 });\n this.addTooltip(preset4, "Load the Zen Garden ruleset (Relaxing gameplay, slow gravity).");'),
('const preset5 = new Button("Stack", { width: 100, height: 30, backgroundColor: 0x000044 });', 'const preset5 = new Button("Stack", { width: 100, height: 30, backgroundColor: 0x000044 });\n this.addTooltip(preset5, "Load the Stack ruleset (Build as high as you can).");'),
('const preset6 = new Button("Micro", { width: 100, height: 30, backgroundColor: 0x000044 });', 'const preset6 = new Button("Micro", { width: 100, height: 30, backgroundColor: 0x000044 });\n this.addTooltip(preset6, "Load the Micro ruleset (Tiny grid, tiny pieces).");'),
('const playBtn = new Button("Play", { width: 100, height: 30, backgroundColor: 0x444400 });', 'const playBtn = new Button("Play", { width: 100, height: 30, backgroundColor: 0x444400 });\n this.addTooltip(playBtn, "Play animation timeline.");'),
('const stopBtn = new Button("Stop", { width: 100, height: 30, backgroundColor: 0x444400 });', 'const stopBtn = new Button("Stop", { width: 100, height: 30, backgroundColor: 0x444400 });\n this.addTooltip(stopBtn, "Stop animation timeline.");'),
('const saveBtn2 = new Button("Save 2", { width: 70, height: 30 });', 'const saveBtn2 = new Button("Save 2", { width: 70, height: 30 });\n this.addTooltip(saveBtn2, "Save your custom ruleset to Browser Storage Slot 2.");'),
('const loadBtn2 = new Button("Load 2", { width: 70, height: 30 });', 'const loadBtn2 = new Button("Load 2", { width: 70, height: 30 });\n this.addTooltip(loadBtn2, "Load custom ruleset from Browser Storage Slot 2.");'),
('const saveBtn3 = new Button("Save 3", { width: 70, height: 30 });', 'const saveBtn3 = new Button("Save 3", { width: 70, height: 30 });\n this.addTooltip(saveBtn3, "Save your custom ruleset to Browser Storage Slot 3.");'),
('const loadBtn3 = new Button("Load 3", { width: 70, height: 30 });', 'const loadBtn3 = new Button("Load 3", { width: 70, height: 30 });\n this.addTooltip(loadBtn3, "Load custom ruleset from Browser Storage Slot 3.");'),
('const loadBtn = new Button("Load from Slot 1", { width: 140, height: 30 });', 'const loadBtn = new Button("Load from Slot 1", { width: 140, height: 30 });\n this.addTooltip(loadBtn, "Load custom ruleset from Browser Storage Slot 1.");'),
]

for search, replace in replacements:
if replace not in content:
content = content.replace(search, replace)

with open(filepath, 'w') as f:
f.write(content)

update_file('src/renderer/editor/CustomGameEditor.ts')
33 changes: 33 additions & 0 deletions archive/bobsgameweb/replace_mainmenuscene.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import re

def update_file(filepath):
with open(filepath, 'r') as f:
content = f.read()

# The goal is to add a WebGPU Particle button in the main menu to showcase Phase 3 expansion.

if "WebGPU Particles" not in content:
# Find the menu items array and insert a new item
pattern = r'const items: MenuItem\[\] = \['
replacement = 'const items: MenuItem[] = [\n\t\t\t{ label: "WebGPU Particles", action: () => this.openWebGPUDemo() },'
content = re.sub(pattern, replacement, content, 1)

# Add the openWebGPUDemo function
function_code = '''
private async openWebGPUDemo(): Promise<void> {
const { WebGPUDemoScene } = await import("./WebGPUDemoScene");
const demoScene = new WebGPUDemoScene({
name: "webgpu-demo",
app: this.app,
camera: this.camera ?? undefined,
});
SceneTransition.pushWithFade(this.app, demoScene);
}
'''
# Insert before openLobby
content = re.sub(r'(\tprivate async openLobby)', function_code + r'\n\1', content, 1)

with open(filepath, 'w') as f:
f.write(content)

update_file('src/renderer/scenes/MainMenuScene.ts')
20 changes: 20 additions & 0 deletions archive/bobsgameweb/replace_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import re
def update_file(filepath):
with open(filepath, 'r') as f:
content = f.read()

# match number like 3.0.33 and bump to 3.0.34
match = re.search(r'v(\d+)\.(\d+)\.(\d+)', content)
if match:
major = match.group(1)
minor = match.group(2)
patch = int(match.group(3)) + 1
new_version = f"v{major}.{minor}.{patch}"
content = content.replace(match.group(0), new_version)
print(f"Bumped version to {new_version}")

with open(filepath, 'w') as f:
f.write(content)

update_file('VERSION.md')
update_file('package.json')
51 changes: 51 additions & 0 deletions archive/bobsgameweb/resolve_conflicts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/bash
# Smart conflict resolution: keep both sides where possible

# CHANGELOG.md - merge both entries
sed -i '/^<<<<<<< HEAD$/,/^=======$/{
/^<<<<<<< HEAD$/d
/^=======$/d
/^>>>>>>> /d
}' CHANGELOG.md

# Insert a merged header after the v3.0.33 entry
sed -i '1s/^/## v3.0.33 — 2026-06-25 (merged jules-port-legacy)\n\n### Fixed\n- Corrected Collision Logic...\n### Added\n- CustomGameEditor tooltips (port from jules-port-legacy)\n\n/' CHANGELOG.md

# MEMORY.md, ROADMAP.md - keep both versions
for f in MEMORY.md ROADMAP.md; do
sed -i '/^<<<<<<< HEAD$/,/^>>>>>>> /{
/^<<<<<<< HEAD$/{
N
s/<<<<<<< HEAD\n/<<<<<<< HEAD (current master)\n/
}
/^=======$/{
N
s/=======\n/======= (jules-port-legacy)\n/
}
}' "$f"
done

# VERSION.md - keep master version (HEAD)
sed -i '/^<<<<<<< HEAD$/,/^>>>>>>> /{
/^<<<<<<< HEAD$/d
/^=======$/,/^>>>>>>> /d
}' VERSION.md

# package.json - merge dependencies
sed -i '/^<<<<<<< HEAD$/,/^>>>>>>> /{
/^<<<<<<< HEAD$/d
/^=======$/d
/^>>>>>>> /d
}' package.json

# package-lock.json - regenerate later, just keep HEAD for now
git checkout --ours package-lock.json

# Code files - check each
for f in src/renderer/editor/CustomGameEditor.ts src/renderer/scenes/WebGPUDemoScene.ts src/renderer/scenes/WorldScene.ts; do
echo "=== $f ==="
grep -c "^<<<<<<<" "$f"
done

echo "=== Resolved ==="
git diff --name-only --diff-filter=U 2>&1
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion archive/scripts/output.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
print("Got it, the user seems to want the project memory output again.")
print("I need to output the PROJECT_MEMORY since the user explicitly requested it in the previous prompt!")
15 changes: 0 additions & 15 deletions check_braces.py

This file was deleted.

Loading
Loading