Skip to content
forked from cocos/cocos-engine

Cocos Creator is a complete package of game development tools and workflow, including a game engine, resource management, scene editing, game preview, debug and publish one project to multiple platforms.

Notifications You must be signed in to change notification settings

winnchen/engine

Repository files navigation

Cocos Creator Engine Framework

This repo is the engine framework for Cocos Creator, Cocos Creator is a game development tool focused on content creation, which has realized features like thorough scriptability, componentization and data driven, etc. on the basis of Cocos2d-x.

Cocos Creator's in-editor scene view and web runtime share the same framework, which is the content of this repo. It's originally forked from Cocos2d-html5, we build up an Entity Component architecture on it to meet the needs of Cocos Creator.

This framework is a cross-platform game engine written in Javascript and licensed under MIT. It supports major desktop and mobile browsers, it's also compatible with Cocos2d Javascript Binding engine to support native platforms like iOS, Android, Win32, Mac OS X.

The framework is naturally integrated with Cocos Creator, so it's not designed to be used independently.

Developer

Prerequisite

Install

In cloned project folder, run the following command to setup dev environment:

# Initialize gulp task dependencies
# npm is a builtin CLI when you install Node.js
npm install

This is all you have to do to set engine development environment.

Build

gulp build

Unit Test

Install test environment

npm install gulp-qunit

Test in CLI

npm test

Test in browser

  1. Build for testing.

    gulp build-test
  2. Start a http server in cloned project folder.

  3. Open http://127.0.0.1:8511/bin/qunit-runner.html in your browser.

Visual Test

  1. Build for testing.

    gulp build-test
  2. Start a http server in cloned project folder.

  3. Open http://127.0.0.1:8512/test/visual-tests/index.html in your browser.

Links

About

Cocos Creator is a complete package of game development tools and workflow, including a game engine, resource management, scene editing, game preview, debug and publish one project to multiple platforms.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 85.5%
  • TypeScript 13.4%
  • C++ 0.8%
  • CSS 0.1%
  • Pascal 0.1%
  • HTML 0.1%