Giter Club home page Giter Club logo

rpgmapeditor's Introduction

RpgMapEditor

Disclaimer: I've had requests to make my old 2D map editor open source, it was sloppily coded a few years back when I didn't know better.
The project is also literally copied from code I wrote for the game it was supposed to be used for, so a lot of classes are not even used in this project.

Editor code is in Editor.cs (huge surprise there), UI code is in Modules\Controls (UI is entirely written by me, it's also not an example of great code)

Artwork I used in the video showcasing it: https://elysianfieldsrpg.wordpress.com/about/
Said video: https://www.youtube.com/watch?v=ydekR0tCbPs

Improvements:
- Can now place tiles by holding down the mouse button instead of clicking it every time
- Dragging the map by right clicking is now smoother in the top left corner

Files essential to starting the map editor:
- All files in Content\Graphics\UI
- All _files_ in Content\ 
- All _folders_ in Content\
- At least 1 spritesheet file in Content\Creatures, Content\Items, Content\Tiles
- Content\scripts\sprites.lua (every lua table needs at least one entry)

Folder/file structure (* = folder, - = file)
*Content
--BEFont.xnb (big font)
--EFont.xnb (regular font)
--settings.dat
**scripts
---sprites.lua
**Graphics
***Creatures
----Spritesheet_Monster1.xnb
***Items
----Spritesheet_Items.xnb
***Tiles
----Spritesheet_House.xnb
----Spritesheet_Inside.xnb
----Spritesheet_Inside_Borders.xnb
----Spritesheet_Outside.xnb
----Spritesheet_Terrain.xnb
----Spritesheet_Water.xnb
***UI
----Spritesheet_UI.xnb
----UI_Arrow_Down.xnb
----UI_Arrow_Up.xnb
----UI_Background.xnb
----UI_Big_Background.xnb
----UI_Black_Stroke.xnb
----UI_MapEditorBackground.xnb
----UI_MapEditorBackground2.xnb
----UI_Scrollbar.xnb
----UI_Small_Background.xnb
----UI_Textbox.xnb
----UI_White_Pixel.xnb

rpgmapeditor's People

Contributors

szune avatar

Stargazers

Glowstudent avatar  avatar libz avatar Rishabh avatar dev-c avatar Markus Zhang avatar Damien Kusters avatar

Watchers

James Cloos 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.