Updated assets tree

This commit is contained in:
Ulysse Cura 2025-08-15 23:00:37 +02:00
parent c5222020fb
commit 165fd7fcb2
13 changed files with 46 additions and 7 deletions

View File

@ -1,8 +1,8 @@
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
# 2D_Engine_Casio_Tool
This tool is used to make game data for the 2D_Engine_Casio [Gitea](https://gitea.skadubpc.net/ulysse/2D_Engine_Casio).
## Description
This tool is used to make game data for the 2D_Engine_Casio [Gitea](https://gitea.skadubpc.net/ulysse/2D_Engine_Casio).
## Licences
- This program is open-source : you can redistribute and/or modify it under the term of the **GNU GPLv3**.

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.11.1" orientation="orthogonal" renderorder="left-up" width="25" height="14" tilewidth="16" tileheight="16" infinite="0" nextlayerid="3" nextobjectid="1">
<tileset firstgid="1" source="tileset.tsx"/>
</map>

View File

@ -1,3 +0,0 @@
{
}

View File

@ -0,0 +1,33 @@
from tiled import *
class Example(Plugin):
@classmethod
def nameFilter(cls):
return "Example files (*.example)"
@classmethod
def shortName(cls):
return "example"
@classmethod
def write(cls, tileMap, fileName):
with open(fileName, 'w') as fileHandle:
for i in range(tileMap.layerCount()):
if isTileLayerAt(tileMap, i):
tileLayer = tileLayerAt(tileMap, i)
for y in range(tileLayer.height()):
tiles = []
for x in range(tileLayer.width()):
if tileLayer.cellAt(x, y).tile() != None:
tiles.append(str(tileLayer.cellAt(x, y).tile().id()))
else:
tiles.append(str(-1))
line = ','.join(tiles)
if y == tileLayer.height() - 1:
line += ';'
else:
line += ','
print(line, file=fileHandle)
return True

4
assets/maps/tileset.tsx Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.10" tiledversion="1.11.1" name="tileset" tilewidth="16" tileheight="16" tilecount="1000" columns="1000">
<image source="../tileset/tileset.png" width="16000" height="16"/>
</tileset>

View File

@ -1,3 +0,0 @@
*.png:
type: bopti-image
name_regex: (.*)\.png img_\1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

BIN
assets/tileset/tileset.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.10" tiledversion="1.11.1" name="tileset" tilewidth="16" tileheight="16" tilecount="1000" columns="1000">
<image source="tileset.png" width="16000" height="16"/>
</tileset>