X Tutup
Skip to content

tommyettinger/JavaAutoTile

 
 

Repository files navigation

Java Auto Tile Implementation

This is a java Bit Masking auto-tile implementation in pure java based on a tutorial by Sonny Bone.

This library can be used in both a 2D and 3D context. Just import this project into your game and then implement the getters and setters for your map implementation. The library will take care of the rest in terms of selecting the correct tile to place on your map.

This project uses Lombok getters and setters to make our life easier. You may need to install a plugin in your IDE to use it properly.

What is BitMasking Auto Tiling?

"Tile bitmasking is a method for automatically selecting the appropriate sprite from a defined tileset. This allows you to place a generic placeholder tile everywhere you want a particular type of terrain to appear instead of hand placing a potentially enormous selection of various tiles." - Sonny Bone

Program-Preview01 Program-Preview02

Major TODOS:

  • Fix the HTML demo
  • Implement brush sizes
  • Finish the tile-editor

Clone to test the demo!

The demo was created with libGDX.

Demo Controls:

  • Left-Click to drawl a tile
  • Right-Click to remove a tile

Usage

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>com.github.unenergizer.javaautotile</groupId>
        <artifactId>autotile</artifactId>
        <version>${version}</version>
    </dependency>
</dependencies>

License

This project is licenced under the Apache 2.0 license.

About

This is a java Bit Masking auto-tile implementation in pure java. It can be used in both a 2D and 3D context in your game engine of choice.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Java 100.0%
X Tutup