Git Product home page Git Product logo

zplovexyh / engine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cocos/cocos-engine

0.0 1.0 0.0 58.24 MB

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.

Home Page: https://www.cocos.com/en/products

JavaScript 85.78% HTML 0.06% CSS 0.07% Shell 0.01% C++ 0.79% Pascal 0.07% Pawn 0.01% TypeScript 13.22%

engine's Introduction

stars forks version license twitter

Cocos Creator

2.2.0 Main Window

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. Cocos Creator focused on content creation, which has realized features like thorough scriptability, componentization and data driven, etc. on the basis of Cocos2d-x. With JavaScript, you can scripting your component in no time. The editor and engine extension is also made with JavaScript so you can make games and refine your tool in a single programming language. Cocos Creator is an provides an innovative, easy to use toolset such as the UI system and Animation editor. The toolset will be expanding continuously and quickly, thanks to the open editor extension system.

This repo is the engine framework for Cocos Creator. 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, macOS.

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

If the compilation process encounters a "JavaScript heap out memory" warning, you can use the following command line

gulp build --max-old-space-size=8192

Test

Prerequisite

  • Install express: npm install express.
  • Install gulp-qunit: npm install gulp-qunit.

Unit Test

DebugInfos

View EngineErrorMap.md
All the debug infos are defined in file EngineErrorMap.md.
The file DebugInfos.json will be generated based on EngineErrorMap.md, when run gulp build command.

For details below:

  1. Define log in EngineErrorMap.md

    example:

    ### 1001  
      
    cocos2d: removeAction: Target not found  
    
  2. Define deprecated log in EngineErrorMap.md
    The log should be marked as DEPRECATED when then logId is no longer referenced in the project.

    example:

    ### 1000
      
    <!-- DEPRECATED -->
    cc.ActionManager.addAction(): action must be non-null  
    

Useful links

engine's People

Contributors

jareguo avatar pandamicro avatar 2youyou2 avatar nantas avatar knoxhuang avatar zilongshanren avatar pppro avatar dabingnn avatar holycanvas avatar caryliu1999 avatar sunnylanwanjun avatar visualsj avatar colincollins avatar cocos-robot avatar minggo avatar jwu avatar zhefengzhang avatar fusijie avatar marssssssss avatar wuzhiming avatar xianyinchen avatar xunyi0 avatar feijing566 avatar devhacker520 avatar finscn avatar drelaptop avatar patricejiang avatar benloong avatar razgrizhsu avatar zty8023ys avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.