Coder Social home page Coder Social logo

baidwwy / browedit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from borf/browedit

0.0 0.0 0.0 293.93 MB

仙境传说 地图 A mapeditor

JavaScript 1.19% C++ 41.56% C 51.85% Objective-C 1.11% Makefile 0.55% QMake 0.39% CMake 2.95% GLSL 0.34% Batchfile 0.05%

browedit's Introduction

     ____                    ______    _ _ _
    |  _ \                  |  ____|  | (_) |
    | |_) |_ __ _____      _| |__   __| |_| |_
    |  _ <| '__/ _ \ \ /\ / /  __| / _` | | __|
    | |_) | | | (_) \ V  V /| |___| (_| | | |_
    |____/|_|  \___/ \_/\_/ |______\__,_|_|\__| 2.0




Browedit is used to edit maps for Ragnarok Online. This is a superbrief readme



Global Keys:

Space			brings up the radial menu
O			shows/hides objects
G			shows/hides grids


Editmodes:

Texture Edit (F1)
-----------------
Used to edit textures. 
First select a texture in the texturewindow by dragging the area you want to use
After selecting a texture (or part of it), you can click in the map to paste it somewhere
then there's the following things:
Numpad +		Increase Texture Size
Numpad -		Decrease Texture Size
H			Flip texture horizontally
V			Flip texture vertically
R			Rotate texture

In the texture window is a little > button. Click it to expand this window. This will open the texture browser. 
Click on the list of categories to browse through categories. In the window
Delete				delete selected texture
doubleclick			add selected texture



Object edit (F2)
----------------
In object edit mode you can edit models, sounds, effects and lights
Click on an object to select it, drag to select multiple, doubleclick on an object to view its properties
This editmode has different tools

Move (1)
Used to move selected objects. Drag to move the object. Shift+drag to move the object up and down

Scale (2)
Used to move scale objects. Drag to scale the object. 

Rotate (3)
Used to move rotate objects. Drag to rotate the object. 

Keys:
G		grabs the object and moves in on the XZ plane
R		rotates the object
S		scales the object
F		makes objects stick to the floor when grabbing



Height Edit (F3)
----------------
Leftdrag			select an area
ctrl+leftdrag		select an area in a lassoshape
rightdrag			move the selected area up and down
C					connects tiles together
R					adds a random value to the height of tiles
F					flattens an area

menu:
use the heighttools/connect to connect the raised area to the surrounding area


Detailed height Edit (F4)
-------------------------
Gives you really precise control over vertices
with the heighttools/connect menu to select a single vertex or the 4 vertices on the corner of a quad

leftdrag			moves currently highlighted vertex up or down


Wall edit (F5)
--------------
leftdrag			add a wall
ctrl+leftdrag		remove a wall

shift+leftclick		paste selected texture on walls
left/right arrow	scale selected texture output
H					flip texture horizontally
V					flip texture vertically



Gat Edit ()
-------------
not implemented yet





=============================================================

Plugin Interface
----------------

browedit :
{
	version,	//contains browedit version
	'map' :
	{
		save(),																			//TODO
		load(string filename),															//TODO

		getName();

		'gnd' : // API related to the floor height, textures & shadows
		{
			getWidth(),		/returns the width of the map
			getHeight(),	//returns the height of the map
			getCell(int x, int y),

			getTexture(int index),
			setTexture(int index, std::string filename),
		},
		'rsw' :	// API related to objects
		{
			'water' :
			{
				getHeight(),
				getType(),
				getAmplitude(),
				getPhase(),
				getSurfaceCurve(),
				getAnimSpeed()
			},
			objectSize(),
			getObject(int id)
		}
	},
	'camera' : //camera controls
	{
	
	}
	'wm' : 																			//TODO
	{
		showMessage(text),															//TODO
	}
}



cell
{
	float heights[4]
	int tiles[3]
}

tile
{
	float texcoords[4][2]
	int texIndex
	int lightmapIndex
	float color[3]
}

object
{
	getType(),
	getPosition(), // [ x, y, z]
	getRotation(), // [ x, y, z]

}

browedit's People

Contributors

borf avatar psychonaut04 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.