Original: Taste of Little Sister (wechat official ID: XjjDog), welcome to share, please reserve the source.

Eat, drink and play are basic human needs, only hard work, life is not fun at all, not different from the slaves of the last century. Game as a kind of life of relief, occupy most people’s life. Always too much of a good thing, all the work | | all play will be indelible damage to individuals. If you’re tired of your work, make your own game using a familiar development language. It was rough, but it was my own work – something I wanted to say to the world.

The open source game engine is called C2D-Engine, which is based on Libgdx, the most popular game framework in Java. Although not as functional as some professional game engines, it can be used to make some cross-platform complex games.

This game, for example, can achieve some really cool effects and logic.

You can download it to your computer and try it.

https://gitee.com/xjjdog/download/raw/master/digger-desktop.jar
Copy the code

Below is the Box2d physics engine scene editor built into the game engine. It can simulate all physical movements in a 2-dimensional world.

The experience link is here:

https://gitee.com/xjjdog/download/raw/master/c2d-box2d-tools.jar
Copy the code

Here is some information about the game engine.

Git address:

https://github.com/xjjdog/c2d-engine
Copy the code

The current version is 2.0.0, which can be introduced using Maven:

<dependency>
      <groupId>com.github.xjjdog</groupId>
      <artifactId>c2d-core</artifactId>
      <version>2.0.0</version>
</dependency>
Copy the code

The main functional modules are:

  • cross-platform
  • Resource management: images, sound effects, music
  • Custom resource loading, resource encryption
  • Event management, ready to receive and send events
  • More gamesscenarioManagement, game scene switching effects (built-in 16)
  • Multilayer parallax, infinite loop layer support
  • Startup interface customization (built-in 5 types)
  • Camera follow, 3D effect
  • Multiple background effects: GIF, Mesh, Surface
  • Analog control module
  • UI Design System
  • Simple particle system
  • Physics engine Box2d editor
  • Multiple effect examples (water waves, lightning, gradients, etc.)
  • GLSL support

Say something about your feelings. Game client development although there is no challenge such as high concurrency, but there are also requirements for the organizational ability of the code, it is easy to cause the expansion of the code, reuse is particularly important here.

Of course, a game is all about planning, graphics, and sound; the programmers just code the words; it’s a team effort.

I’ve been working on the service side for a long time, and I’m a big fan of game development. The game engine was created many years ago, before IDEA was popular. Recently, a friend wanted to develop a 2D game, so XjjDog took the opportunity to spend a weekend refactoring the code, and now runs smoothly in maven environment, Idea no pressure.

Considering that many students also have their own dream of making a game, but also can improve their coding level, so put it out.

At the same time, I appreciate the code I wrote many years ago. I can’t bear to look at it!

Xjjdog is a public account that doesn’t allow programmers to get sidetracked. Focus on infrastructure and Linux. Ten years architecture, ten billion daily flow, and you discuss the world of high concurrency, give you a different taste. My personal wechat xjjdog0, welcome to add friends, further communication.