Skip to content

wolpert/sample-game

Repository files navigation

Sample

This project shows how to the gamelib repository.

Setup

The project here is setup to function like a normal libGDX project. If you supported android you would have an android directory like you do a desktop. (I'll add one example soon.) Core has the main game files.

How to run examples

There four setup examples.

Default libGDX project

gradle :desktop:run

This setup basically does one thing, uses Dagger as the client-side injection library. And the result is the default libGDX startup screen.

Entity only project

gradle :desktop:entity

This is similar to the libGDX default project, except the components are rendered using the Ashley entity library. (Ashley is used in the other examples too.)

Using the hex library

gradle :desktop:hex

This shows how to do a layout with the Nex library. The library was model pretty heavy on the article from the RedBlob Game's hexagons project. I've used this twice and it's pretty good.

Using box2d

gradle :desktop:box2d

This shows how to setup a physics engine in your game, with Ashley and Dagger.

Coming soon!

NetBattle sample

Building out an example using the gamelibNet client.

About

An example game showing the gamelib-net library usage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages