Skip to content

pama1234/just-some-other-libgdx-game

Repository files navigation

Libgdx游戏合集

logo

jitpack-badge

使用Protobuf

应当先从https://github.com/protocolbuffers/protobuf/releases/latest下载protoc并加入path环境变量,否则gradle运行build和generateProto的任务时会报错

如何上手

创建新的草图

  1. 阅读游戏合集
  2. 打开对应项目(例如game0001)的pama1234.gdx.launcher.MainApp
  3. 创建新的Screen0xxx
  4. 将你的Screen0xxx继承ScreenCore2DScreenCore3D

配置settings.gradle

众所周知,gradle很慢,这个托管内有至少40个子项目,这会产生9000多个甚至更多的tasks,因此,我们开发时会将一部分用不上的项目在settings.gradle文件内注释掉,如果需要使用请取消注释

创建新项目

如果各位开发者想要创建新的项目,则需要在项目的根目录下的build.gradle的(目前)第35行的configure(subprojects.findAll {位置添加

|| it.name == '项目名-android'

用于排除这个以及其他不能使用gradle的java plugin的子项目

教程和文档

(未完善,整理中)https://github.com/Java-Game-Engine-Merger/libgdx-processing-website

如何使用我们的的框架

我们的框架通过jit进行打包

https://jitpack.io/#pama1234/just-some-other-libgdx-game/

注意,菱形依赖的问题并没有解决,因此在其他项目内使用framework0001和其他内容时可能会需要配置一大堆exclude规则,尤其是在打包安卓的时候,推荐只使用以下两个基础框架

Gradle

implementation "com.github.pama1234.just-some-other-libgdx-game:server-framework:$pama1234Version"
implementation "com.github.pama1234.just-some-other-libgdx-game:framework:$pama1234Version"

或直接标明版本

implementation 'com.github.pama1234.just-some-other-libgdx-game:server-framework:bf0a359313'
implementation 'com.github.pama1234.just-some-other-libgdx-game:framework:bf0a359313'

Maven

 <dependency>
     <groupId>com.github.pama1234.just-some-other-libgdx-game</groupId>
     <artifactId>framework</artifactId>
     <version>bf0a359313</version>
 </dependency>

游戏合集

  1. 空想世界1
  2. 粒子系统【暂停维护】
  3. 几何决斗【从FAL的学生时期作品移植过来,已火】
  4. 高维塔防【3D游戏模板】
  5. 杂项
  6. 中心IDE
  7. 填满正方形
  8. 粒子生命:升天(魔改版2D processing粒子系统)
  9. 异星征途
  10. 聊天室
  11. 数值膨胀,以及矢量天空,以及TRPG系统【移动到ce4kotlin】
  12. 光遇2,流浪遇球,别太荒谬了【ce4kotlin】
  13. 物品管理和其他同类游戏【galgame】
  14. 天顶语言
  15. MBTI模拟器

中文 | English

空想世界

《空想世界》开源游戏项目系列的托管库

QQ群:589219461

配置环境:

  1. 确保自己使用的电脑可以直接访问需要访问的以下网站,推荐此方案
  2. 下载并安装jdk-17,配置javahome和path环境变量,推荐此版本(graalvm-22.1.0)
  3. 下载并安装gradle-8,配置gradle和gradle-javahome环境变量,链接
  4. 下载并安装Android studio Canary build,配置AndroidSDK环境变量(也就是内测版,在页面的右侧,总之哪个新就安装哪个好啦)链接

使用的库:libgdx,kryo,vecmath

主要类位置:pama1234.gdx.launcher.MainApp

项目代码帮助文档:doc\codeHelp.txt

代码格式化请使用doc\eclipse.formatter.xml,如果不愿意使用此格式化方案,那么请勿提交四格缩进的代码,其他随意

局部变量的命名规则:

类型 总维度数 维度数 英文字符
位置 3 1 x
位置 3 2 y
位置 3 3 z
体积 3 1 w
体积 3 2 h
体积 3 3 l
整数 ? 1 i
浮点数 ? 1 f
布尔值 ? 1 b
父实例 ? 1 p
翻译包 ? 1 bd,ld

简写示例:

类型 示例
位置 tx, tx1, tx_1, tx2, tx_2
父实例 p, pc, pw, pg

(tx是temp-x的缩写)

待办事项请看doc文件的todo.txt,若完成了某一项,请将其剪切粘贴到solved.txt,编译安卓项目请用自己的签名文件, 可以使用中英文或其他语言作为待办项,但不能修改已有待办项的语言类型

安卓版改native依赖项的时候记得手动删除android\libs\内的文件和文件夹

Game-With-Java

Please note that the English version README is outdated

The git repo of the open-source game project series of Game-With-Java (the english name is to be determined)

Configure environment:

  1. Download and install jdk-17 and configure javahome and path environment variables. This version is recommended→ https://github.com/graalvm/graalvm-ce-builds/releases/tag/vm-22.1.0
  2. Download and install gradle-8, configure gradle and gradle-javahome environment variables https://gradle.org/releases
  3. Download and install Android studio Canary build and configure the Android SDK environment variables (The preview version, or whatever that is on the right side of the page, whatever is new should be installed) https://developer.android.com/studio/preview

Libraries used: libgdx, kryo, vecmath, aparapi

Main class location: pama1234.gdx.launcher.MainApp

Code help doc: doc\codeHelp.txt

Please use doc\eclipse.formatter.xml for code format. If you do not want to use this format scheme, please do not submit four-space indented code

Naming rules of local variables:

Type Total dimensions Dimensions English characters
Position 3 1 x
Position 3 2 y
Position 3 3 z
Volume 3 1 w
Volume 3 2 h
Volume 3 3 l
Integer ? 1 i
Float ? 1 f
Boolean ? 1 b
Parent ? 1 p
Translation package ? 1 bd,ld

example:

Type Example
Position tx, tx1, tx_1, tx2, tx_2
Parent p, pc, pw, pg

(tx is short for temp-x)

For to-do items, please view /doc/todo.txt file, when you finished a to-do item ,please move it to /doc/solved.txt. You can write to-do items freely with different languages , but you cannot change the language of existing to-do items.

Please use your own signature file to compile Android sub-project

Please delete files and folders in android\libs\ manually when changing native dependencies in Android sub-project