{"repo":"shixiangxi0/Cobweb","free":true,"listed":false,"github":"https://github.com/shixiangxi0/Cobweb","clone":"git clone https://github.com/shixiangxi0/Cobweb.git","description":"Cobweb: An AI-native game development framework based on Dual-World Theory. View = f(State) for complex game logic.","language":"JavaScript","stars":112,"topics":["ai-native","cqrs","event-sourcing","framework","game-development","game-engine","headless","state-machine","state-management","unidirectional-data-flow"],"license":"MIT","category":"game-templates","readme_excerpt":"中文 An Event-Driven Game State Engine for the AI Era Design Philosophy In the broad discussion of game architecture, Game Loop and Event-driven can be seen as the two most fundamental top-level driving philosophies. Modern game engines typically adopt Game Loop as the top-level design. Input collection, logic advancement, animation updates, physics simulation, and rendering submission are mostly organized along the same frame timeline. Event mechanisms certainly exist, but they serve more as an internal communication method within the loop, rather than the supreme driver of world state. Cobweb takes a different approach by placing event-driven design above the Game Loop . It views a game first and foremost as a deterministic state machine : player inputs, rule triggers, phase transitions, and numerical changes are all essentially definable and verifiable state transitions. Logic and presentation must be loosely coupled; the Game Loop still exists, but primarily serves the presentation world, while the entire game is driven forward in units of events that produce state changes. It advocates abandoning the decades-old \"What You See Is What You Get\" engineering paradigm in game development, and establishing a system that is fully perceivable, computable, and automatable by generative AI: define computable event rules first, then assemble rendering components. The essence of a game is a deterministic state machine; the Logic Layer becomes the sole authority, and the Presentation L","default_branch":null,"files":null,"tree":[],"storefront":"/r/shixiangxi0","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shixiangxi0/Cobweb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}