cocos2d/cocos2d-js-tests

Name: cocos2d-js-tests

Owner: cocos2d

Description: cocos2d JavaScript test cases and games.

Created: 2012-09-06 16:24:17.0

Updated: 2018-01-17 10:28:01.0

Pushed: 2015-04-22 09:57:29.0

Homepage:

Size: 119535

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

cocos2d JavaScript tests and games

These tests and games are shared by the following projects:

If you modify the a test, please test it with all the projects to ensure 100% API compatibility between all the projects.

Tests

cocos2d JS tests

Running the tests and games
For cocos2d-html5
t clone git://github.com/cocos2d/cocos2d-html5.git
 cocos2d-html5
t submodule update --init
thon -m SimpleHTTPServer

… and run a brower and open it in localhost:8000/samples

For cocos2d-iphone
t clone git://github.com/cocos2d/cocos2d-iphone.git
 cocos2d-iphone
t checkout develop-v2
t submodule update --init
en cocos2d-tests-ios.xcodeproj

Xcode JS-Tests

For cocos2d-x
t clone git://github.com/cocos2d/cocos2d-x.git
 cocos2d-x
t checkout gles20
t submodule update --init
run on iOS
en samples/Javascript/TestJavascript/proj.ios/TestJavascript.xcodeproj
run on Android
 Samples/TestJavascript/proj.android
build.native.sh
Generating Published files

Before running Crystal Craze and Cocos Dragon, you need to open the CocosBuilder project file and press publish.

  1. Open the CrystalCraze.ccbproj file with CocosBuilder (located here: games/CrystalCraze/CrystalCraze.ccbproj )
  2. CocosBuilder -> File -> Publish
  3. Repeat those steps for CocosDragon
Automated tests

Automated tests are not ready yet. In the meantime use the obsolete method of updating the following spreadsheet:

Multiplatform

Code once, run everywhere. These tests can be run unmodified in the following platforms:

Games

Crystal Craze

Crystal Craze

It is a simple puzzle game. It uses:

Play it online: Web version

Licensed under MIT.

Watermelon with Me

Watermelon With Me

It is a simple physics game. It uses:

Play it online: Web version

Licensed under MIT.

CocosDragon

CocosDragon

It is a simple platformer game. It uses:

Play it online: Web version

Licensed under MIT.

Moon Warriors

Moon Warriors

It is a simple shooter game. It uses:

Play it online: Web version

Art and audio is copyrighted by Enigmata Genus Revenge, you may not use any copyrighted material without permission.

This showcase is licensed under GPL

Authors
Website

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.