Coder Social home page Coder Social logo

wmltogether / simple-sprite-tile-2d Goto Github PK

View Code? Open in Web Editor NEW
37.0 6.0 7.0 3.27 MB

This extension can auto-generate tile prefabs with texture.You can quickly make tiles that automatically find neighbors around them, and Auto-Update sprites to fit tiles just like the RPG - Maker tile map.

License: MIT License

C# 97.75% GLSL 2.25%
unity sprites extension 2d-tile top-down sprite sprite-management tilemap tilemap-editor

simple-sprite-tile-2d's Introduction

#Simple Sprite Tile 2D

Unity Extension Type: 2D & Sprite Management

moogle's simple sprite tile 2D Unity Editor Extension

This extension is Requires Unity 5.x or higher. I didn't test it under lower unity versions. But you can test it by yourself.

I decided to make a tile-based top-down game with Unity. But unfortunately, Unity's default sprite-tile system are too hard to use in Editor Mode. So ,This extension can auto-generate tile prefabs with one simple texture.You can quickly make tiles that automatically find neighbors around them, and Auto-Update sprites to fit tiles just like the RPG - Maker tile map.

Preview

  • Auto snap & adjust Tiles

Extension Preview

  • Sorting Layer Management

Extension Preview 2

Features

  • Auto snap tiles to grid and adjust child sprites for tile
  • Esay Drag & Drop Editor Window for tile prefab creation
  • Support JSON template for prefab batch creation.
  • Add Custom material for 2D pixel Games.
  • Auto update Z-order (sorting order) in scene
  • Randomize tiles creation
  • Lower Draw call

HOW TO MAKE A TILE MAP IN Unity

It is very easy to create RPG Maker - STYLE tiles for Unity.

  1. Draw A bitmap like the RPG Maker tilemap.
  2. Click [Tools/Simple Sprite Tiles 2D /Tile Prefab Creator] in Unity and drag texture on the editor panel
  3. Toggle [Tile ] and Write the tile size and pixel per unit values. Then press [Edit Texture], make sure the sprites are correct.
  4. If you want to add custom material , drag your material to the material field.
  5. Create Prefab, Add Tile Panel, set the tile-layer name and drag tiles to your game scene.

Advance Usage

This extension supports tiles auto-generation with json. You could write your own json files (see sample.json) and load it with your texture.

I wrote a sample code to show how to make a json (see : /Scprits/JsonBuilder/TestGenJSON.cs). Itβ€˜s a simple class.

Click [Tools/Simple Sprite Tiles 2D /Tile Prefab Creator] ,toggle [Load From JSON] and add your texture & json files.

About Sorting Order

Thanks

Unity Engine

Newtonsoft.Json

License

The MIT License (MIT)

Copyright (c) 2017 moogle / wmltogether

simple-sprite-tile-2d's People

Contributors

wmltogether avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

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.