在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):libktx/ktx开源软件地址(OpenSource Url):https://github.com/libktx/ktx开源编程语言(OpenSource Language):Kotlin 100.0%开源软件介绍(OpenSource Introduction):Kotlin extensions for libGDX. IntroductionKTX is a Kotlin game framework built on libGDX. It aims to make libGDX as Kotlin-friendly as possible without completely rewriting the API. It provides modular utilities and extensions for selected parts of libGDX with poor Kotlin support. Examples of Kotlin language features used to improve usability, performance, and readability of libGDX include:
See the Choosing KTX article for pros and cons of this framework. ModulesKTX was designed to be modular from day one - in fact, many of its libraries are just a single Kotlin file. You can include selected KTX modules based on the needs of your application.
InstallationKTX modules are uploaded to Maven Central and are fully compatible with the Gradle build tool, which is used in libGDX projects by default. All libraries follow the same naming schema: api "io.github.libktx:$module:$ktxVersion" Replace For example, including the app module with the // Groovy DSL:
ext {
// Update this version to match the latest KTX release:
ktxVersion = '1.11.0-rc1'
}
dependencies {
api group: 'io.github.libktx', name: 'ktx-app', version: ktxVersion
} // Kotlin DSL:
// Update this version to match the latest KTX release:
val ktxVersion = "1.11.0-rc1"
dependencies {
api(group = "io.github.libktx", name = "ktx-app", version = ktxVersion)
} You can find the latest KTX version on Maven Central: KTX modules should generally be added to the dependencies of the shared
VersioningKTX versions match the libGDX versions that they were compiled against. You can browse through our official releases on Maven and on GitHub. Unfortunately, libGDX does not follow the semantic versioning guidelines. Both minor and patch versions can introduce breaking changes. Please read the libGDX and KTX change logs before updating. Although KTX still uses beta release tags, the official releases are stable enough for production use. All modules are thoroughly tested with unit tests. Latest changesThe The newest changes can be found on the You do not have to compile the sources manually to use the latest features. The preview snapshot releases are uploaded
to the // Groovy DSL:
repositories {
// Include your other repositories here.
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
ext {
// Update this version to match the latest libGDX release:
ktxVersion = '1.11.0-SNAPSHOT'
} // Kotlin DSL:
repositories {
// Include your other repositories here.
maven("https://oss.sonatype.org/content/repositories/snapshots/")
}
// Update this version to match the latest libGDX release:
val ktxVersion = "1.11.0-SNAPSHOT" The latest snapshot version name can be found on the Even the snapshots are rather stable, as the libraries are not pushed to Maven Central unless they pass their extensive test suites. However, the public APIs in snapshot releases might be changed prior to a stable release. DocumentationOfficial guidesEach module contains a Source documentationAll functionalities are documented with Kotlin KDocs. You can access the source documentation by:
LinksKTX wiki lists some useful resources that can help you get started. Most official guides and code examples in this repository assume that the reader is at least a bit familiar with the libGDX API. If you are just getting to know the framework, it might be helpful to go through the official libGDX wiki, and convert some Java examples to Kotlin. ContributionSuggestions, questions, typo fixes, documentation improvements and code contributions are always welcome. Do not hesitate to start a discussion with questions about the framework. Feel free to advertise your KTX project, propose new features, discuss game jams, or even create a personal devlog. If you would like to contribute, please read the contribution guideline, and browse through
the active issues. The You can check the list of the contributors via GitHub insights and on the contributors list. LicensingThis project is dedicated to public domain. Working from sourcesSee this section of the contribution guideline to get started. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论