Giter Club home page Giter Club logo

javaautotile's Introduction

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

Clone to test the demo!

Try the HTML Demo or clone the project to test the desktop demo. Check out the Demo Source code. The demo was created with libGDX.

Demo Controls:

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

Major TODOS:

  • Implement brush sizes
  • Finish the tile-editor

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.

javaautotile's People

Contributors

unenergizer avatar tommyettinger avatar

Stargazers

Majick Tek avatar Rondeo Balos avatar arbitrary hexcode avatar

Watchers

 avatar

Forkers

tommyettinger

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.