All Projects → mingwuyun → cocos2d-java

mingwuyun / cocos2d-java

Licence: Apache-2.0 license
cocos2d java api base libgdx

Programming Languages

java
68154 projects - #9 most used programming language
GLSL
2045 projects

Projects that are alternatives of or similar to cocos2d-java

gdx-sqlite
A cross-platform extension for database handling in Libgdx
Stars: ✭ 61 (+306.67%)
Mutual labels:  libgdx
gdx-gltf
GLTF 2.0 3D format support and PBR shader implementation for LibGDX
Stars: ✭ 156 (+940%)
Mutual labels:  libgdx
thelegendofericc
Single player roguelike tile-based game written in Java using LibGDX and Ashley
Stars: ✭ 22 (+46.67%)
Mutual labels:  libgdx
pathfinding
Java pathfinding framework.
Stars: ✭ 94 (+526.67%)
Mutual labels:  libgdx
libgdx-screenmanager
A screen manager for libgdx supporting transitions
Stars: ✭ 69 (+360%)
Mutual labels:  libgdx
gdx-backend-bytecoder
Libgdx Kotlin app with Bytecoder
Stars: ✭ 24 (+60%)
Mutual labels:  libgdx
GDX-lazy-font
auto self-generate BitmapFont for libgdx 1.5.0 +
Stars: ✭ 26 (+73.33%)
Mutual labels:  libgdx
miniscript
A scripting library for Java-based games
Stars: ✭ 33 (+120%)
Mutual labels:  libgdx
myxy
用libGDX开发的梦幻西游
Stars: ✭ 24 (+60%)
Mutual labels:  libgdx
blockbunny
Libgdx-based game for Android, iOS, and PC following the tutorial by ForeignGuyMike on youtube channel. Read more on README.md
Stars: ✭ 25 (+66.67%)
Mutual labels:  libgdx
omo
Kotlin port with changes and improvements for omo originally by ForeignGuyMike
Stars: ✭ 22 (+46.67%)
Mutual labels:  libgdx
gdx-deploy-sample
Sample Gradle configurations for LibGDX for preparing and deploying release builds
Stars: ✭ 28 (+86.67%)
Mutual labels:  libgdx
ZapTap
Cross Platform Game made in libGDX. Live on Google Play: https://play.google.com/store/apps/details?id=com.betterclever.zaptap
Stars: ✭ 49 (+226.67%)
Mutual labels:  libgdx
WurfelEngineSDK
Isometric game engine. Open world, block/voxel based and sprite rendering.
Stars: ✭ 96 (+540%)
Mutual labels:  libgdx
TextureUnPacker
This is reverse engineering of Texture Packer used in LibGdx Projects.
Stars: ✭ 36 (+140%)
Mutual labels:  libgdx
bialjam17
💫 The game that won the BialJam'17 event
Stars: ✭ 55 (+266.67%)
Mutual labels:  libgdx
odb-arktrail
Artemis-ODB + LibGDX game
Stars: ✭ 16 (+6.67%)
Mutual labels:  libgdx
SpaceProject
A top-down 2D, procedurally generated space exploration and shooter game using libGDX. Kinda like Asteroids, only a little bigger.
Stars: ✭ 28 (+86.67%)
Mutual labels:  libgdx
Particle-Park
A LibGDX particles showcase.
Stars: ✭ 46 (+206.67%)
Mutual labels:  libgdx
HitKlack LibGDX
🎮 Retro console game remake of Mephisto Hit Klack
Stars: ✭ 23 (+53.33%)
Mutual labels:  libgdx

cocos2d-java

cocos2d java api base libgdx

特别说明

作者最近用unity去了,暂时不更新了

环境部署

目录结构调整:
src/ —— 引擎代码
platform/{platform}/src —— 引擎与平台相关的代码,各平台对应的ApplicationStartup
tests/src —— 测试工程的代码
tests/src-{platform} —— 测试工程在指定平台上的启动代码
({platform} = desktop,android)

桌面版本运行

source: 导入src/,platform/desktop/src,tests/src,tests/src-desktop;运行位于src-desktop中的Main启动函数
libs: 导入libs/下jar包,所有platform/desktop中的jar包

android版本运行

source: 导入src/,platform/android/src,tests/src,tests/src-android; 继承Activity启动类或者直接设置为mainActivity启动;
libs: 导入libs/下jar包,所有platform/android中的jar包,导入所有会指定平台的 **/*.so文件夹

模块系统

Cocos2dJava引擎自带了一套模块系统,可以方便的进行扩展。模块系统位于src/com/cocos2dj/module/路径下。引擎自带的模块源码在该目录下面;扩展模块的相关代码在external/com/cocos2dj/module/路径下。
当前引擎自带模块:gdxui/base2d/typefactory
扩展模块:visui/btree(behaviorTree)/box2d(未完成)/spine(计划中)

模块系统已经集成到了s2d/scene中,直接在scene的onEnter方法或者回调中添加模块即可,切换场景时引擎负责清理模块。
详细用法之后我会在wiki中补充。

gdxui

该模块封装了gdx的scene2d相关内容。可以直接应用libgdx提供的组件。除此之外,引擎提供了两个方便调试的组件:GdxUIConsole和GdxUIDebugInfo。console添加后可以按下~按键呼叫。具体的用法在tests/TestAppDelegate_GdxUI中有例子

base2d

该模块是系统默认的物理引擎。与box2d不同,该物理引擎基本不提供物理模拟功能,可以方便的制作平台类游戏。我在tests/testcase/Base2dTests中添加了几个例子。分别是:使用node的action驱动物理引擎;地面判定以及斜面跳跃解决方案;碰撞监听和对象休眠。该引擎适合非物理类但需要碰撞检测的游戏。

TypeFactory

该模块是系统提供的原生对象池管理类。NodeType对象定义了一个对象池,调用getInstance()从池中回去对象,所有的node都可以调用pushBack将对象放回对象池中。该机制的使用在tests/testcase/TypeFactoryTests中有演示

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].