hypercross
762ed1a63a
docs: rename OnitamaGamePatterns.md to GamePatterns.md
2026-04-19 11:20:49 +08:00
hypercross
b0e74a5257
refactor(framework): simplify spawner state management
...
Consolidate object and data tracking into a single Map in `spawnEffect`
to improve clarity and reduce redundant lookups. Also switch to
type-only
imports for Phaser.
2026-04-19 11:00:01 +08:00
hypercross
648e801dad
Style: enforce 2-space indent and double quotes
2026-04-19 10:48:32 +08:00
hypercross
ddc9d057fd
Chore: Add ESLint configuration and lint scripts
2026-04-19 10:39:01 +08:00
hypercross
e14e41461f
Fix drag race condition and stale pointer events
...
Mark items as dragging before updating inventory state to prevent
the spawner from destroying containers mid-drag. Move inventory
removal to drop time for lost items, and add guards to ignore
stale pointer events on inactive containers.
2026-04-19 00:43:43 +08:00
hypercross
5af7140958
Refactor inventory to use Spawner pattern
...
Replace manual ItemRenderer with InventoryItemSpawner and
GridBackgroundRenderer. Uses spawnEffect to automatically sync item
visuals with game state changes. Separates static grid rendering and
tracks dragged items to prevent spawner conflicts.
2026-04-19 00:24:20 +08:00
hypercross
a7095c37fc
Refactor inventory drag to use dragDropEventEffect
...
Replace manual pointer event handling with the framework's
dragDropEventEffect utility. Update DragController to manage
DisposableBag for cleanup and pass containers instead of
pointers to drag callbacks. Add framework path alias to
tsconfig and fix loop variable shadowing in LostItemManager.
2026-04-19 00:12:56 +08:00
hypercross
88d0c5bf55
Refactor: centralize config and split inventory
...
Move magic numbers and style constants to src/config.ts.
Decompose InventoryWidget into DragController, ItemRenderer,
and LostItemManager for better separation of concerns. Add
createButton utility and remove unused CombatUnitWidget.
Update scenes to import from centralized config.
2026-04-19 00:01:25 +08:00
hypercross
d993d55576
Refactor dnd utility and add drag lifecycle events
...
Attach pointerup and pointermove listeners to scene.input
for reliable tracking. Emit dragstart, dragmove, and
dragend events alongside drag. Rename relativeX/Y to
deltaX/Y in DragDropEvent and integrate DisposableBag.
2026-04-18 23:33:13 +08:00
hypercross
eefcef861a
Add game architecture patterns documentation
...
Document layered architecture, spawner patterns, reactive
UI state, and tween interruption for framework users.
Includes best practices and common pitfalls to avoid.
docs: add architecture patterns documentation
Provide a reference guide for implementing board games with the
framework. Covers layered architecture, reactive scenes, spawner
patterns, UI state management, and common development pitfalls.
2026-04-18 23:32:02 +08:00
hypercross
23575dd516
feat: dnd
2026-04-17 21:55:14 +08:00
hypercross
0ecef16a4a
fix: inventory interaction
2026-04-17 19:45:34 +08:00
hypercross
28a2623bd1
feat: adding widgets to the game
2026-04-17 18:08:51 +08:00
hypercross
f7a6154c68
refactor: update to new version
2026-04-17 17:29:13 +08:00
hypercross
706de4e33a
fix: inventory preview not actually there
2026-04-14 15:48:47 +08:00
hypercross
5342f1c09d
feat: inventory preview?
2026-04-14 15:22:22 +08:00
hypercross
3ca2a16e29
refactor: global state for scenes
2026-04-14 14:21:51 +08:00
hypercross
7fb9edcbf0
feat: add game process scene
2026-04-14 13:51:11 +08:00
hypercross
65684e6cf5
refactor: udpate to new design
2026-04-14 13:04:34 +08:00
hypercross
c9acb7f228
refactor: scene control
2026-04-14 11:10:14 +08:00
hypercross
c639218b53
refactor: viewr
2026-04-13 14:57:00 +08:00
hypercross
e91e8d2ab7
feat: sts-like-viewer
2026-04-13 12:38:41 +08:00
hypercross
71ccb8732e
refactor: some manual changes
2026-04-08 14:21:33 +08:00
hypercross
92e1a5bec1
feat: rotation and more
2026-04-08 11:49:25 +08:00
hypercross
3e064f437b
feat: add more tweens
2026-04-08 11:33:59 +08:00
hypercross
00fd395873
fix: more issues with ui
2026-04-08 11:06:34 +08:00
hypercross
2beff5c75c
fix: fix ui bugs
2026-04-08 08:57:59 +08:00
hypercross
d4819f7cc3
feat: more onitama goodness
2026-04-07 17:46:37 +08:00
hypercross
8bbf20f457
feat: onitama
2026-04-07 16:33:41 +08:00
hypercross
27e6d52cf3
docs: update docs
2026-04-07 16:29:08 +08:00
hypercross
deb8c91239
refactor: use boardgame-core's sample exports
2026-04-07 16:16:04 +08:00
hypercross
cedb69e55e
refactor: more regicide stuff
2026-04-06 17:17:04 +08:00
hypercross
a0412ddd88
refactor: fix regicide, presumably?
2026-04-06 16:45:52 +08:00
hypercross
20f722818d
refactor: prompt def udpate
2026-04-06 16:20:52 +08:00
hypercross
bf20e53c6b
feat: regicide card game
2026-04-06 14:21:44 +08:00
hypercross
e76010272c
docs: update AGENTS.md & add vitest
2026-04-06 14:13:43 +08:00
hypercross
a53f162c03
refactor: update api
2026-04-06 13:59:00 +08:00
hypercross
fa104d10f2
refactor: update api
2026-04-06 11:31:51 +08:00
hypercross
0e7aaea7da
docs: update Agents.md
2026-04-05 09:51:49 +08:00
hypercross
acb2fc82ba
feat: animate after booped
2026-04-05 09:45:01 +08:00
hypercross
2f0fb2bca8
feat: error reporting
2026-04-05 00:31:34 +08:00
hypercross
c678974489
feat: add error display & upgrade pick
2026-04-05 00:24:06 +08:00
hypercross
df1c0cbb81
feat: add game start overlay
2026-04-05 00:12:05 +08:00
hypercross
6ebfcc6c4d
fix: update button to choose cat
2026-04-05 00:06:48 +08:00
hypercross
449727d650
fix: api change
2026-04-05 00:01:26 +08:00
hypercross
de4e83e4ea
fix: api change for bop
2026-04-04 23:25:43 +08:00
hypercross
61857b8256
fix: api changes fix
2026-04-04 23:14:30 +08:00
hypercross
c85fdb604c
chore: update game implementation for boardgame-core
2026-04-04 22:52:54 +08:00
hypercross
99dc5e29e7
chore: install inline-schema
2026-04-04 22:52:40 +08:00
hypercross
76687de672
refactor: misc
2026-04-04 16:34:17 +08:00
hypercross
72e159e52b
refactor: reorg
2026-04-04 16:25:36 +08:00
hypercross
bf62805c38
refactor: context update
2026-04-04 16:19:18 +08:00
hypercross
6c86a97c8f
refactor: await for tween interruption
2026-04-04 15:43:50 +08:00
hypercross
db83e89a46
refactor: expose addInterruption
2026-04-04 15:40:18 +08:00
hypercross
0dbb4fc2ba
fix: some boop states are not updated in produce
2026-04-04 15:23:56 +08:00
hypercross
aba035f2ec
fix: details
2026-04-04 14:47:03 +08:00
hypercross
39f5e6159c
feat: boop game
2026-04-04 14:30:49 +08:00
hypercross
696872d5d7
feat: that's boop for ya
2026-04-04 14:22:35 +08:00
hypercross
951fbc7045
fix: resetting methods
2026-04-04 14:13:41 +08:00
hypercross
5fd2c3d208
chore: clean up
2026-04-04 13:48:48 +08:00
hypercross
2984d8b20d
refactor: clean up
2026-04-04 13:21:44 +08:00
hypercross
2b59adf000
feat: handle input
2026-04-04 12:52:14 +08:00
hypercross
f83e031c9a
refactor: human effort to reorg the code
2026-04-04 12:14:26 +08:00
hypercross
e8c98d3ad3
chore: add preact signals
2026-04-04 10:44:14 +08:00
hypercross
4fa06098ba
refactor: use GameHost for simplification
2026-04-04 01:11:49 +08:00
hypercross
32509d7812
chore: add tests
2026-04-04 00:48:44 +08:00
hypercross
3395a315a6
refactor: simplify input handling?
2026-04-04 00:17:52 +08:00
hypercross
7501b5f592
fix: fix bugs
2026-04-04 00:10:26 +08:00
hypercross
656c33cb59
update: various improvements
2026-04-03 19:39:07 +08:00
hypercross and Qwen-Coder
cb7f492bea
chore: add gitignore rules to prevent compiled files in src
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-03 19:16:45 +08:00
hypercross
febb9fb256
chore: fix ts output
2026-04-03 19:16:11 +08:00
hypercross
5d4c169fea
fix: update according to boardgame-core
2026-04-03 19:13:12 +08:00
hypercross
cbee709a27
docs: sync updated boardgame-core
2026-04-03 17:45:56 +08:00
hypercross
4d4889f825
docs: fix doc api
2026-04-03 16:19:33 +08:00
hypercross
df2b839e07
fix: fix entrance rig and details
2026-04-03 16:18:44 +08:00
hypercross
01407b5ede
fix: usage compliance
2026-04-03 16:18:11 +08:00
hypercross
771afaa053
docs: add usage docs
2026-04-03 16:02:05 +08:00
hypercross
ccd39dcce4
fix: phaser container doesn't exist
2026-04-03 15:36:15 +08:00
hypercross
6daa77f6f9
refactor: use link instead of file for local dependency
2026-04-03 15:31:29 +08:00
hypercross
b93cd2c3f9
feat: add agents.md
2026-04-03 15:28:02 +08:00
hypercross
588d28ff07
init: board game phaser start
2026-04-03 15:18:47 +08:00