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 converted shader that has been given its derived WGSL twin is still the importer's own, so a re-import updates it instead of keeping it as the creator's edit
9e806af yhh committed 18 days ago
fix(cocos): a converted effect's uniform that properties are lanes of starts as those lanes put together, so a fragment that scales by it no longer draws black
89bfc1e yhh committed 18 days ago
feat(cocos): a scene's ambient light becomes an Ambient light entity, so a lit mesh is no longer black
2c79d84 yhh committed 18 days ago
fix(cocos): a converted effect declares the tangent varying it reads again: without it every effect failed its glslang check (294 not converted in the Cocos client) and its materials came out empty
2eccc41 yhh committed 18 days ago
fix(cocos): Material.setProperty takes a texture a script hands it by name, from an image or the frame that holds one, so the fog's region mask reaches its shader
fea78b3 yhh committed 18 days ago
test(renderer): a sprite pivot outside 0..1 puts the box where the pivot says, in simple, tiled and nine-slice draws, turned or not
de847d4 yhh committed 18 days ago
feat(cocos): renderer.scene.CameraProjection has Cocos's numbers, so a script that tells an orthographic camera from a perspective one by it gets the right answer
c8239e0 yhh committed 18 days ago
fix(camera): a full-frame camera that clears no colour is drawn over the main view instead of competing to be it, so a UI camera no longer hides the world camera's picture
029b26c yhh committed 18 days ago
fix(cocos): a camera keeps what it clears: the UI camera clears depth only, so the world camera's picture is no longer wiped by it
fe04983 yhh committed 18 days ago
fix(cocos): onLoad waits for the node to be active in the hierarchy, a base of the built-in views (UIRenderer) is found through the one the node holds, and Node.insertChild
6ff8195 yhh committed 19 days ago
chore: desktop points at the rebased commit that prints a failed play's compile errors to the log
68d57c9 yhh committed 19 days ago
chore: desktop points at the commit that prints a failed play's compile errors to the log
e5545d5 yhh committed 19 days ago
feat(cocos): Node.setWorldRotation, setWorldRotationFromEuler, setWorldScale, rotate, translate, lookAt, inverseTransformPoint, walk and NodeSpace, as a script calls them
f2b532c yhh committed 19 days ago
fix(cocos): a prefab is handed over with the prefabs its scripts hold in Prefab fields, and Material.recompileShaders sets the shader's switches
5e48605 yhh committed 19 days ago
fix(cocos): a @ccclass class that is not a component is not driven as a script, so the frame loop no longer calls timers it does not have
5828127 yhh committed 19 days ago
feat(cocos): PhysicsSystem.instance.raycast and raycastClosest cross the world's box colliders as oriented boxes, nearest first, with the point and face met
5090001 yhh committed 19 days ago
feat(cocos): BoxCollider and Collider are views on the engine's BoxCollider3D, in the node's units, with the static body a collider without a rigid body is
c1e65b6 yhh committed 19 days ago
chore(release): the contact point and Cocos tangent commits are covered by release notes
bfb6af9 yhh committed 19 days ago
docs: a 2D box collider has a fixed corner radius and a sub-viewport camera draws only into its own rectangle
12a63dc yhh committed 19 days ago
fix(cocos): a converted effect reads the tangent varying the engine fragment prelude declares, instead of declaring it again
e81b485 yhh committed 19 days ago
fix(physics3d): a contact point is given in the units of Transform, as a ray hit is, so the debug draw crosses land where the bodies met
3061dab yhh committed 19 days ago
chore(release): the TextureAtlas commit is covered by its release note
4a571fd yhh committed 19 days ago
feat(render): TextureAtlas packs several textures onto one canvas at run time, and RectAnchors, AnchorFlag and AnchorMode are exported from the package root
ad31a61 yhh committed 19 days ago
chore: point the editor submodule at the commit that drops its own CI
c4d9548 yhh committed 20 days ago
docs: retake every guide picture, add the Cocos import page, RectAnchors, UIPages, the Runtime settings and the other pages the notes left out, and fix a front matter, a component summary and a link that kept the site from building
011614f yhh committed 20 days ago
docs(changelog): the rain note gives the slope angles the old weighting stopped at
263433d yhh committed 20 days ago