mabre / team61

Other
2 stars 4 forks source link

create level editor [6000 P] #87

Closed mabre closed 10 years ago

mabre commented 10 years ago

“draw” level grid using terrain types as “colors,” save them to level folder (if new level format is ready in time: choose background image/music)

Jessypet commented 10 years ago

Basic level editor on branch level-editor. You can choose background music (not yet), background picture and the fluid that is supposed to be in the bottom of the map (water/lava). Left to do:

mabre commented 10 years ago

edges: having material buttons for left edge / right edge would be a simple solution

Would be cool if the material buttons were previews of the material and no ordinary buttons.

OT: Why did you remove a branch?

Jessypet commented 10 years ago

I have to change the buttons anyway, they cannot look like this, will put a preview in there.

And to clean things up a bit.

Jessypet commented 10 years ago

@DiniiAntares Are the json-levels ready? Lost track of that.

DiniiAntares commented 10 years ago

@Jessypet Yup. Works finde and are in master.

Am 22.06.2014 20:11, schrieb Jessypet:

@DiniiAntares https://github.com/DiniiAntares Are the json-levels ready? Lost track of that.

— Reply to this email directly or view it on GitHub https://github.com/ProPra14/team61/issues/87#issuecomment-46788191.

Jessypet commented 10 years ago

Okay, level editor works now. Don't know if my laptop is just not in a good mood right now, but could someone try it out and tell me if the drawing of the map is really so damn slow? With the old method for building the terrain (before using renderTerrainBlock) it was much faster..

mabre commented 10 years ago

First thing I see: In setOnMouseClicked, the code after levelTerrain.replaceBlock(x, y, chosenTerrainType); is not necessary any more, since replaceBlock already calls renderTerrainBlock.

wish: being able to set “stroke width”

Jessypet commented 10 years ago

ahh thanks, better now! Could do that, but not today