Giter Site home page Giter Site logo

level_editor's Introduction

Level Editor

This program is intended to help you create level scenery data easily so you don't have to hard-code arrays to represent levels. You should modify the code to suit your needs and build the kind of levels you need. You can do this by either cloning this repository and pushing it to a different remote or you can fork the repository. Forking is best way.

Setup

  1. Fork the project and clone it to your local computer
  2. Create a new Eclipse project in the folder you cloned into
  3. Place all tile images you want to use into the images/ folder (they can be any size and will scale automatically to the grid size)

Tools

  • Paint mode Left and right buttons paint the tiles chosen in the dropdown menus
  • Erase mode Either button paints a null image into the chosen location
  • Select mode Draws a selection to be copied
  • Move mode Moves the current selection as a copy of the selection
  • Copy Copies a selection to the clipboard
  • Paste Pastes whatever is in the clipboard and changes to Move mode

Controls and Features

  • Mouse Wheel zooms in/out (or use the menu commands)
  • The clipboard is shared among all windows so you can copy and paste from one editor window to another
  • Ctrl + left_click sets a tile's isWalkable() property. This property is recorded for each tile when saving a level.
  • You can select a group of tiles and then use Ctrl + left_click to change the isWalkable() property for the entire selection
  • You must write the code to load levels yourself

Suggestions

  • For larger images, use a Paint Editor to chop them up into smaller tiles.
  • Once you have level loading working, use a separate window to save all the things you build that are multi-tile objects. Then you can paste them into your levels from one source.
  • The Level Editor is designed for background scenery but you could add a Sprite layer to add items, objects, characters, etc on top of the background layer. At that point, you would have a complete level editor that literally sets up the complete levels in your game.

level_editor's People

Contributors

mrferrante avatar eric-ferrante avatar tedmcleod avatar

Watchers

phani 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.