A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
Commits on master
fix(cocos): a Label takes a game's replaced string setter (the engine's _string and friends land on the Text), and an EditBox shows its text label while it holds text
2a07ad9 yhh committed 21 days ago
fix(cocos): a play session that follows another in the same script runtime gets the layer's systems again and none of what the last one loaded
a9daba9 yhh committed 21 days ago
fix(cocos): a Label with no overflow rule does not wrap and is laid out from its anchor, as the node grows to the text in Cocos
1cb24ad yhh committed 21 days ago
feat(render): layers painted in hierarchy order, so a panel covers the text of the panel under it; the Cocos UI layer uses it. Text takes an underline field; resources.load finds an image's spriteFrame and texture by path suffix
21e0ee8 yhh committed 21 days ago
fix(cocos): a node's scripts load and enable as it joins an active parent or is switched, not a frame later; a converted script component's dropped fields are ignored quietly
b4e23de yhh committed 21 days ago
feat(cocos): resources.load gives images, sprite frames and audio by path, Sprite takes a spriteFrame, Node has getParent; the script entry leaves out the editor's own scripts
9098a5c yhh committed 21 days ago
feat(cocos): the generated script entry loads every component class of the project, since a game opens its views by class name
d6fa33e yhh committed 21 days ago
fix(cocos): the session check also runs when a prefab is asked for
03820d7 yhh committed 21 days ago
fix(cocos): the layer drops what it kept of a session when the asset loader gives everything back
d5daa35 yhh committed 21 days ago
fix(cocos): a loaded asset is named for its file, and what the layer kept of a play session is dropped when the next begins
a8c4a50 yhh committed 21 days ago
fix(cocos): a directory load leaves out what the layer cannot load instead of failing, and Component.EventHandler exists
6c1cda8 yhh committed 21 days ago
feat(assets): a scan reports how many documents it has read of how many
53fcd1e yhh committed 21 days ago
perf(assets): a scan keeps what each document refers to by what the file was, so a second scan of a large project reads nothing it has read; fix(cocos): a component is found by its cc. name and can be named by a script
01932c0 yhh committed 21 days ago
feat(shaders): the canonical vertex stage hands a mesh second uv set to a material, and a converted effect is one shader per macro combination, compiled and given its WGSL twin before it is written
73bd01a yhh committed 21 days ago
feat(shaders): a material vertex hook gets a derived WGSL twin, and an effect that displaces its vertices is converted with the displacement as that hook
de28ed8 yhh committed 21 days ago
feat(cocos): a particle effect is converted on the engine particle stage, and a particle takes the converted material
7fc2d1b yhh committed 21 days ago
fix(cocos): the sprite texture is no parameter of a converted material, and a material blend state it does not set is the effect's
add61c3 yhh committed 21 days ago
feat(cocos): an effect includes its chunks and its vertex program is carried into the fragment, so the project materials convert for meshes as well as sprites
522b2a9 yhh committed 21 days ago
feat(cocos): a project's own effect is converted to an Estella shader and material, so a sprite or mesh that wore it keeps its look
a16c352 yhh committed 21 days ago
feat(cocos): a sprite, a label and a graphics are UIRenderers, which accept the rebuild requests scripts send
2cbbf8d yhh committed 21 days ago
feat(cocos): the importer records its revision, so a project it wrote earlier is re-imported on open
bfbce86 yhh committed 21 days ago
feat(cocos): director has a scheduler and fires its frame events, setSiblingIndex reorders through the engine entity order, loadAny takes a uuid, and an asset counts its holders
606f306 yhh committed 21 days ago
feat(cocos): a root pinned to the screen is stored where the engine places it in the design box, so the document and the viewport agree
968a445 yhh committed 21 days ago