• Stars
    star
    489
  • Rank 89,365 (Top 2 %)
  • Language
    JavaScript
  • Created almost 6 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Cocos Creator Example Projects

Introduction

This repository contains several highly requested examples to demonstrate how to use certain feature in Cocos Creator, each folder is a separated project.

Example Cases

  • native-plugin: demonstrates how to create a native plugin and use it in a native project template.
  • native-script-bridge: The native script bridge demonstrates the interaction between the native C++ code and the script code.
  • npm-case: demonstrates how to use a valid NPM module.
  • occlusion-query: demonstrates how to setup occlusion query feature for better culling in complex projects.
  • physics-3d: demonstrates all features of 3d physics module, including simple physics games and feature usage cases.
  • protobuf: demonstrates how to successfully use protobuf module in your project.

Contribution

For future contributors and maintainers, please apply to the same rigorous examination and documentation style as we have established so far.

It is the only way for us to reach far.

If some bug is forcing you to do some hacking, workaround, or any kind of strange logic that is not immediately comprehensible, be sure to add clear explanation comments at obvious places nearby.

Every 'unpleasant surprise' encountered along the road is a big deal:

Either something is not working, or some designed feature is far less intuitive than what the designer thought it would be.

So make sure to do all the followings:

  • Try to classify the problem: is it editor-related or engine-originated? Which module(s) were involved?
  • File an issue to the relevant team
  • If it is a bug, clearly document it in code (usually near your temporary workaround) with the issue number.
  • If it is a feature(or lack of one) and looks/feels strange/awkward no matter how you design the relevant system, make sure to write it down in the issue ticket with detailed explanation on your design decisions and why the engine API is not a good fit.
  • Remove all the workaround or temporary designs once the bug is fixed or new feature is introduced.

More Repositories

1

cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
C++
5,558
star
2

example-projects

Example project to guide users through how to create game with Cocos Creator
JavaScript
1,284
star
3

tutorial-blackjack-deprecated

Blackjack game made with Cocos Creator.
JavaScript
798
star
4

engine-native

Native engine for Cocos Creator v2.x
C++
693
star
5

cocos-awesome-tech-solutions

Cocos' Awesome Technical Solutions
TypeScript
615
star
6

cocos-docs

Manual docs content for Cocos Creator
TypeScript
290
star
7

cocos-example-dark-slash

PLSQL
290
star
8

cocos-tutorial-first-game

Quick start game for Fireball
JavaScript
236
star
9

cocos-test-projects

TypeScript
212
star
10

cocomat

C
186
star
11

cocos-example-ball

A jumping ball demo created by Cocos Creator 3D
TypeScript
173
star
12

cocos-example-cartoon-vegetation

TypeScript
160
star
13

cocos-example-ui

TypeScript
144
star
14

cocos-tutorial-taxi-game

TypeScript
144
star
15

cocos-tutorial-duang-sheep

tutorial repo
JavaScript
120
star
16

creator-lua-deprecated

Cocos Creator 的 Lua 支持
Lua
117
star
17

cocos-tutorial-airplane

video tutorial airplane
TypeScript
109
star
18

awesome-cocos

⚡️ Delightful Cocos Creator show cases, utilities, documents and more!
103
star
19

cocos-tutorial-mind-your-step

Cocos Creator learning tutorial
TypeScript
70
star
20

firedoc-deprecated

API Doc generator based on YUIDoc
JavaScript
70
star
21

cocos-example-process-build-textures

A build plugin to help you process textures in Creator 2.x after build
JavaScript
66
star
22

FBX-glTF-conv

A FBX to glTF file format converter.
C++
61
star
23

example-camera-deprecated

Camera demo for Cocos Creator
JavaScript
48
star
24

cocos-engine-external

external 3rd party modules for cocos-engine
C++
44
star
25

cocos-creator-extensions

TypeScript
38
star
26

cocos-example-physics

Samples for 3d physics
TypeScript
24
star
27

cocos-example-marionette

This project is to demonstrate the use of Cocos Creator Marionette animation system.
TypeScript
24
star
28

example-instant-games-deprecated

JavaScript
20
star
29

example-combat-animation-deprecated

turn based action rpg
JavaScript
19
star
30

i18n-example-deprecated

showcase how to implement i18n to your game.
JavaScript
19
star
31

smart-merge-tool-deprecated

JavaScript
17
star
32

cocos-tutorial-storage

Cocos Creator Demo: Save and load user profile with encryption using sys.localStorage
JavaScript
17
star
33

example-team-build-ui-deprecated

Team build ui demo for Cocos Creator
JavaScript
16
star
34

creator-api-docs-2.x

Host generated Cocos Creator 2.x API
JavaScript
15
star
35

cocos-plugin-import-2.x

plugin for migrating cocos creator 2.x projects.
TypeScript
14
star
36

helloworld-typescript-legacy

Typescript helloworld project template for Cocos Creator
TypeScript
13
star
37

google-game-sdk

C++
13
star
38

gulp-fontello-import-deprecated

Import svg files to fontello icon font project, use svg filename as glyph name. Also provide task for auto download exported css and font files into desinated folder.
JavaScript
12
star
39

cocos-example-materials

TypeScript
11
star
40

example-responsive-ui-deprecated

Cocos Creator - Responsive UI demo
JavaScript
11
star
41

divine-vanity-deprecated

JavaScript
9
star
42

cocos-example-open-data-context

TypeScript
9
star
43

cocos-google-admob

Objective-C
9
star
44

cocos-example-render-pipeline

TypeScript
8
star
45

cocos-template-taxi-game

TypeScript
8
star
46

cocos-benchmark

EJS
7
star
47

cocos-tutorial-video-src

JavaScript
6
star
48

ui-kit-deprecated

JavaScript
6
star
49

cocos-effect

VSCode Syntax highlight support for Cocos Effect file
TypeScript
6
star
50

avg-examples

5
star
51

cocos-web-extension-detect-engine

A Chrome extension to detect the engine running in web.
JavaScript
4
star
52

example-packages-deprecated

HTML
4
star
53

overhead-benchmark-deprecated

Creator 架构层性能损耗 Benchmark
C++
4
star
54

cocos-ccbuild

TypeScript
4
star
55

cocomat-docs

3
star
56

firedoc-theme-notab-deprecated

A new theme without tab in navigation sidebar
HTML
3
star
57

devops-workflows

Workflows for creator team.
JavaScript
3
star
58

v8

C++
3
star
59

cocos-gameplay

cocos creator gameplay
TypeScript
3
star
60

cocos-example-custom-pipeline

TypeScript
3
star
61

gulp-download-fire-shell-deprecated

gulp plugin to download atom-shell
2
star
62

node-font-lib-deprecated

built for https://github.com/fireball-x/font-editor
JavaScript
2
star
63

hello-world-legacy

Hello world new project template.
JavaScript
2
star
64

fireball-engine-core-deprecated

The basic classes used in fireball engine and editors
JavaScript
2
star
65

runtime-pixi-deprecated

A pixi runtime for test basic fireball features
JavaScript
2
star
66

gulp-fb-deprecated

utilities for gulp
JavaScript
1
star
67

fire-watch-deprecated

A watch module based on node-pathwatcher, the module is implemented for syncing changes between file system and asset db in fireball
JavaScript
1
star
68

tests-3d-deprecated

engine-3d test framework
HTML
1
star
69

fireball-runtime-cocos-deprecated

JavaScript
1
star
70

firedoc-theme-default-deprecated

Optimized theme for firedoc
Handlebars
1
star
71

cocos-fire-path

node's path module with some helpful additions.
JavaScript
1
star
72

cocos-fire-fs

node's fs module with some helpful additions.
JavaScript
1
star
73

preview-template-deprecated

JavaScript
1
star
74

font-editor-angular-deprecated

Font Editor
JavaScript
1
star
75

atlas-editor-polymer-deprecated

Atlas Editor for 2D games
JavaScript
1
star
76

cocos-scripting

TypeScript
1
star
77

creator-types

TypeScript
1
star