Merge pull request #37 from progtime-net/hot_fix2
fix 2, removed blue lines, but still glitching tiles
This commit is contained in:
commit
450e8d28b0
8 changed files with 1079 additions and 101 deletions
|
@ -175,18 +175,6 @@
|
||||||
/processorParam:TextureFormat=Color
|
/processorParam:TextureFormat=Color
|
||||||
/build:Textures/GUI/background/waiting.png
|
/build:Textures/GUI/background/waiting.png
|
||||||
|
|
||||||
#begin Textures/GUI/checkboxs_off-on.png
|
|
||||||
/importer:TextureImporter
|
|
||||||
/processor:TextureProcessor
|
|
||||||
/processorParam:ColorKeyColor=255,0,255,255
|
|
||||||
/processorParam:ColorKeyEnabled=True
|
|
||||||
/processorParam:GenerateMipmaps=False
|
|
||||||
/processorParam:PremultiplyAlpha=True
|
|
||||||
/processorParam:ResizeToPowerOfTwo=False
|
|
||||||
/processorParam:MakeSquare=False
|
|
||||||
/processorParam:TextureFormat=Color
|
|
||||||
/build:Textures/GUI/checkboxs_off-on.png
|
|
||||||
|
|
||||||
#begin Textures/GUI/checkboxs_off.png
|
#begin Textures/GUI/checkboxs_off.png
|
||||||
/importer:TextureImporter
|
/importer:TextureImporter
|
||||||
/processor:TextureProcessor
|
/processor:TextureProcessor
|
||||||
|
@ -199,6 +187,18 @@
|
||||||
/processorParam:TextureFormat=Color
|
/processorParam:TextureFormat=Color
|
||||||
/build:Textures/GUI/checkboxs_off.png
|
/build:Textures/GUI/checkboxs_off.png
|
||||||
|
|
||||||
|
#begin Textures/GUI/checkboxs_off-on.png
|
||||||
|
/importer:TextureImporter
|
||||||
|
/processor:TextureProcessor
|
||||||
|
/processorParam:ColorKeyColor=255,0,255,255
|
||||||
|
/processorParam:ColorKeyEnabled=True
|
||||||
|
/processorParam:GenerateMipmaps=False
|
||||||
|
/processorParam:PremultiplyAlpha=True
|
||||||
|
/processorParam:ResizeToPowerOfTwo=False
|
||||||
|
/processorParam:MakeSquare=False
|
||||||
|
/processorParam:TextureFormat=Color
|
||||||
|
/build:Textures/GUI/checkboxs_off-on.png
|
||||||
|
|
||||||
#begin Textures/GUI/checkboxs_on.png
|
#begin Textures/GUI/checkboxs_on.png
|
||||||
/importer:TextureImporter
|
/importer:TextureImporter
|
||||||
/processor:TextureProcessor
|
/processor:TextureProcessor
|
||||||
|
@ -235,18 +235,6 @@
|
||||||
/processorParam:TextureFormat=Color
|
/processorParam:TextureFormat=Color
|
||||||
/build:Textures/GUI/mouse.png
|
/build:Textures/GUI/mouse.png
|
||||||
|
|
||||||
#begin Textures/GUI/Switch_backgrownd.png
|
|
||||||
/importer:TextureImporter
|
|
||||||
/processor:TextureProcessor
|
|
||||||
/processorParam:ColorKeyColor=255,0,255,255
|
|
||||||
/processorParam:ColorKeyEnabled=True
|
|
||||||
/processorParam:GenerateMipmaps=False
|
|
||||||
/processorParam:PremultiplyAlpha=True
|
|
||||||
/processorParam:ResizeToPowerOfTwo=False
|
|
||||||
/processorParam:MakeSquare=False
|
|
||||||
/processorParam:TextureFormat=Color
|
|
||||||
/build:Textures/GUI/Switch_backgrownd.png
|
|
||||||
|
|
||||||
#begin Textures/GUI/switch.png
|
#begin Textures/GUI/switch.png
|
||||||
/importer:TextureImporter
|
/importer:TextureImporter
|
||||||
/processor:TextureProcessor
|
/processor:TextureProcessor
|
||||||
|
@ -259,7 +247,7 @@
|
||||||
/processorParam:TextureFormat=Color
|
/processorParam:TextureFormat=Color
|
||||||
/build:Textures/GUI/switch.png
|
/build:Textures/GUI/switch.png
|
||||||
|
|
||||||
#begin Textures/TileSets/TilesetFloor.png
|
#begin Textures/GUI/Switch_backgrownd.png
|
||||||
/importer:TextureImporter
|
/importer:TextureImporter
|
||||||
/processor:TextureProcessor
|
/processor:TextureProcessor
|
||||||
/processorParam:ColorKeyColor=255,0,255,255
|
/processorParam:ColorKeyColor=255,0,255,255
|
||||||
|
@ -269,5 +257,17 @@
|
||||||
/processorParam:ResizeToPowerOfTwo=False
|
/processorParam:ResizeToPowerOfTwo=False
|
||||||
/processorParam:MakeSquare=False
|
/processorParam:MakeSquare=False
|
||||||
/processorParam:TextureFormat=Color
|
/processorParam:TextureFormat=Color
|
||||||
/build:Textures/TileSets/TilesetFloor.png;Textures/TileSets/TileSet 1.png
|
/build:Textures/GUI/Switch_backgrownd.png
|
||||||
|
|
||||||
|
#begin Textures/TileSetImages/TilesetFloor.png
|
||||||
|
/importer:TextureImporter
|
||||||
|
/processor:TextureProcessor
|
||||||
|
/processorParam:ColorKeyColor=255,0,255,255
|
||||||
|
/processorParam:ColorKeyEnabled=True
|
||||||
|
/processorParam:GenerateMipmaps=False
|
||||||
|
/processorParam:PremultiplyAlpha=True
|
||||||
|
/processorParam:ResizeToPowerOfTwo=False
|
||||||
|
/processorParam:MakeSquare=False
|
||||||
|
/processorParam:TextureFormat=Color
|
||||||
|
/build:Textures/TileSetImages/TilesetFloor.png
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
"height": 4300,
|
"height": 4300,
|
||||||
"width": 2
|
"width": 2
|
||||||
},
|
},
|
||||||
"activeFile": "TileMaps/main.tmj",
|
"activeFile": "TileSets/TileSet 1.tsj",
|
||||||
"expandedProjectPaths": [
|
"expandedProjectPaths": [
|
||||||
|
"TileMaps",
|
||||||
".",
|
".",
|
||||||
"TileSets",
|
"TileSets"
|
||||||
"TileMaps"
|
|
||||||
],
|
],
|
||||||
"fileStates": {
|
"fileStates": {
|
||||||
"TileMaps/TileSets/TileSet 1.tsj": {
|
"TileMaps/TileSets/TileSet 1.tsj": {
|
||||||
|
@ -17,27 +17,33 @@
|
||||||
"scale": 1,
|
"scale": 1,
|
||||||
"selectedLayer": 0,
|
"selectedLayer": 0,
|
||||||
"viewCenter": {
|
"viewCenter": {
|
||||||
"x": 256,
|
"x": 534.5,
|
||||||
"y": 255.5
|
"y": 441
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"TileSets/TileSet 1.tsj": {
|
"TileSets/TileSet 1.tsj": {
|
||||||
"scaleInDock": 1,
|
"scaleInDock": 1,
|
||||||
"scaleInEditor": 1
|
"scaleInEditor": 3
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"last.externalTilesetPath": "D:/C#/Я смотрел ваши ХАКАТОНЫ/ZoFo/ZoFo/Content/MapData/TileSets",
|
"last.externalTilesetPath": "D:/C#/Я смотрел ваши ХАКАТОНЫ/ZoFo/ZoFo/Content/MapData/TileSets",
|
||||||
"last.imagePath": "D:/C#/Я смотрел ваши ХАКАТОНЫ/ZoFo/ZoFo/Content/Textures/Background",
|
"last.imagePath": "D:/C#/Я смотрел ваши ХАКАТОНЫ/ZoFo/ZoFo/Content/Textures/TileSet",
|
||||||
"map.fixedSize": false,
|
"map.fixedSize": false,
|
||||||
"map.lastUsedFormat": "json",
|
"map.lastUsedFormat": "json",
|
||||||
"map.tileHeight": 16,
|
"map.tileHeight": 16,
|
||||||
"map.tileWidth": 16,
|
"map.tileWidth": 16,
|
||||||
"openFiles": [
|
"openFiles": [
|
||||||
"TileMaps/main.tmj"
|
"TileMaps/main.tmj",
|
||||||
|
"TileSets/TileSet 1.tsj"
|
||||||
],
|
],
|
||||||
"project": "MapSession.tiled-project",
|
"project": "MapSession.tiled-project",
|
||||||
"recentFiles": [
|
"recentFiles": [
|
||||||
"TileMaps/main.tmj",
|
"TileMaps/main.tmj",
|
||||||
"TileSets/TileSet 1.tsj"
|
"TileSets/TileSet 1.tsj"
|
||||||
]
|
],
|
||||||
|
"tileset.lastUsedFormat": "json",
|
||||||
|
"tileset.tileSize": {
|
||||||
|
"height": 16,
|
||||||
|
"width": 16
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -7,16 +7,16 @@
|
||||||
"orientation":"orthogonal",
|
"orientation":"orthogonal",
|
||||||
"width":24
|
"width":24
|
||||||
},
|
},
|
||||||
"image":"..\/..\/Textures\/Background\/TilesetFloor.png",
|
"image":"..\/..\/Textures\/TileSet\/TilesetFloor.png",
|
||||||
"imageheight":416,
|
"imageheight":832,
|
||||||
"imagewidth":352,
|
"imagewidth":704,
|
||||||
"margin":0,
|
"margin":0,
|
||||||
"name":"TileSet 1",
|
"name":"TileSet 1",
|
||||||
"objectalignment":"topleft",
|
"objectalignment":"topleft",
|
||||||
"spacing":0,
|
"spacing":0,
|
||||||
"tilecount":572,
|
"tilecount":572,
|
||||||
"tiledversion":"1.10.2",
|
"tiledversion":"1.10.2",
|
||||||
"tileheight":16,
|
"tileheight":32,
|
||||||
"tiles":[
|
"tiles":[
|
||||||
{
|
{
|
||||||
"id":27,
|
"id":27,
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
"id":112,
|
"id":112,
|
||||||
"probability":0.100000001490116
|
"probability":0.100000001490116
|
||||||
}],
|
}],
|
||||||
"tilewidth":16,
|
"tilewidth":32,
|
||||||
"type":"tileset",
|
"type":"tileset",
|
||||||
"version":"1.10",
|
"version":"1.10",
|
||||||
"wangsets":[
|
"wangsets":[
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 31 KiB |
Binary file not shown.
Before Width: | Height: | Size: 29 KiB |
|
@ -62,12 +62,14 @@ namespace ZoFo.GameCore.GameManagers.MapManager
|
||||||
Rectangle sourceRectangle = new Rectangle(relativeColumn * tileSet.TileWidth, relativeRow * tileSet.TileHeight,
|
Rectangle sourceRectangle = new Rectangle(relativeColumn * tileSet.TileWidth, relativeRow * tileSet.TileHeight,
|
||||||
tileSet.TileWidth, tileSet.TileHeight);
|
tileSet.TileWidth, tileSet.TileHeight);
|
||||||
|
|
||||||
Vector2 position = new Vector2((i % chunk.Width) * tileSet.TileWidth + chunk.X * tileSet.TileWidth, (i / chunk.Height)*tileSet.TileHeight + chunk.Y * tileSet.TileHeight) ;
|
Vector2 position = new Vector2((i % chunk.Width) * tileSet.TileWidth + chunk.X * tileSet.TileWidth,
|
||||||
|
(i / chunk.Height) * tileSet.TileHeight + chunk.Y * tileSet.TileHeight) ;
|
||||||
|
|
||||||
switch (layer.Class)
|
switch (layer.Class)
|
||||||
{
|
{
|
||||||
case "Tile":
|
case "Tile":
|
||||||
AppManager.Instance.server.RegisterGameObject(new MapObject(position, new Vector2(tileSet.TileWidth, tileSet.TileHeight), sourceRectangle, "Textures\\TileSets\\"+tileSet.Name)); //fix naming
|
AppManager.Instance.server.RegisterGameObject(new MapObject(position, new Vector2(tileSet.TileWidth, tileSet.TileHeight),
|
||||||
|
sourceRectangle, "Textures/TileSetImages/" + Path.GetFileName(tileSet.Image).Replace(".png", "")));
|
||||||
break;
|
break;
|
||||||
case "StopObject":
|
case "StopObject":
|
||||||
// new StopObject(position, new Vector2(tileSet.TileWidth * _scale, tileSet.TileHeight * _scale), sourceRectangle, tileSet.Name);
|
// new StopObject(position, new Vector2(tileSet.TileWidth * _scale, tileSet.TileHeight * _scale), sourceRectangle, tileSet.Name);
|
||||||
|
|
|
@ -24,7 +24,7 @@ namespace ZoFo.GameCore.ZoFo_graphics
|
||||||
private List<Texture2D> textures;
|
private List<Texture2D> textures;
|
||||||
public List<string> texturesNames; //rethink public and following that errors
|
public List<string> texturesNames; //rethink public and following that errors
|
||||||
private AnimationContainer currentAnimation;
|
private AnimationContainer currentAnimation;
|
||||||
static public int scaling = 2;
|
static public int scaling = 1;
|
||||||
public int parentId;
|
public int parentId;
|
||||||
public AnimationContainer CurrentAnimation
|
public AnimationContainer CurrentAnimation
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue