-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add jpg support to asset loader Signed-off-by: Sam Biggins <[email protected]> * refactor: move assets to named folder for future re-skinning feature * feat(assets): add sample tileset Signed-off-by: Sam Biggins <[email protected]> * feat(assets): support tilemaps, resource replacement, tiles as sprites Signed-off-by: Sam Biggins <[email protected]> * feat(assets): support 2-tile wide sprites Signed-off-by: Sam Biggins <[email protected]> * refactor(assets): break bootScene loader down in to simpler functions Signed-off-by: Sam Biggins <[email protected]> * feat(assets): support n by n sized tiles for sprites Signed-off-by: Sam Biggins <[email protected]> * fix(assets): support single tile texture replacement Signed-off-by: Sam Biggins <[email protected]> * feat(assets): handle multiple tilesets Signed-off-by: Sam Biggins <[email protected]> * refactor(assets): create types for assets and tilesets Signed-off-by: Sam Biggins <[email protected]> * refactor(assets): create tileProcessor and assetLoader classes to simplify bootScene Signed-off-by: Sam Biggins <[email protected]> * refactor(assets): use logger instead of console for logging Signed-off-by: Sam Biggins <[email protected]> --------- Signed-off-by: Sam Biggins <[email protected]>
- Loading branch information
Showing
63 changed files
with
4,745 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
VITE_VERBOSE=false | ||
VITE_GRAPHICS_SET=kennynl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
|
||
Roguelike Modern City (2.0) | ||
|
||
Created/distributed by Kenney (www.kenney.nl) | ||
Creation date: 29-10-2022 | ||
|
||
------------------------------ | ||
|
||
License: (Creative Commons Zero, CC0) | ||
http://creativecommons.org/publicdomain/zero/1.0/ | ||
|
||
This content is free to use in personal, educational and commercial projects. | ||
|
||
Support us by crediting Kenney or www.kenney.nl (this is not mandatory) | ||
|
||
------------------------------ | ||
|
||
Donate: http://support.kenney.nl | ||
Patreon: http://patreon.com/kenney/ | ||
|
||
Follow on Twitter for updates: | ||
http://twitter.com/KenneyNL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Tilesheet information: | ||
|
||
Tile size • 16px × 16px | ||
Space between tiles • 1px × 1px | ||
--- | ||
Total tiles (horizontal) • 37 tiles | ||
Total tiles (vertical) • 28 tiles | ||
--- | ||
Total tiles in sheet • 1036 tiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
{ "compressionlevel":-1, | ||
"editorsettings": | ||
{ | ||
"chunksize": | ||
{ | ||
"height":32, | ||
"width":32 | ||
} | ||
}, | ||
"height":20, | ||
"infinite":true, | ||
"layers":[ | ||
{ | ||
"chunks":[], | ||
"height":0, | ||
"id":1, | ||
"name":"Tile Layer 1", | ||
"opacity":1, | ||
"startx":0, | ||
"starty":0, | ||
"type":"tilelayer", | ||
"visible":true, | ||
"width":0, | ||
"x":0, | ||
"y":0 | ||
}], | ||
"nextlayerid":2, | ||
"nextobjectid":1, | ||
"orientation":"orthogonal", | ||
"renderorder":"right-down", | ||
"tiledversion":"1.10.1", | ||
"tileheight":32, | ||
"tilesets":[ | ||
{ | ||
"columns":37, | ||
"firstgid":1, | ||
"image":"roguelike-city.png", | ||
"imageheight":896, | ||
"imagewidth":1184, | ||
"margin":0, | ||
"name":"roguelike-city", | ||
"spacing":0, | ||
"tilecount":1036, | ||
"tileheight":32, | ||
"tiles":[ | ||
{ | ||
"id":401, | ||
"properties":[ | ||
{ | ||
"name":"type", | ||
"type":"string", | ||
"value":"tree-1x1" | ||
}] | ||
}, | ||
{ | ||
"id":438, | ||
"properties":[ | ||
{ | ||
"name":"type", | ||
"type":"string", | ||
"value":"tree-2x1" | ||
}] | ||
}, | ||
{ | ||
"id":572, | ||
"properties":[ | ||
{ | ||
"name":"type", | ||
"type":"string", | ||
"value":"bench-1x1" | ||
}] | ||
}, | ||
{ | ||
"id":573, | ||
"properties":[ | ||
{ | ||
"name":"type", | ||
"type":"string", | ||
"value":"bench-1x2" | ||
}] | ||
}, | ||
{ | ||
"id":888, | ||
"properties":[ | ||
{ | ||
"name":"type", | ||
"type":"string", | ||
"value":"grass" | ||
}] | ||
}, | ||
{ | ||
"id":889, | ||
"properties":[ | ||
{ | ||
"name":"type", | ||
"type":"string", | ||
"value":"grass2" | ||
}] | ||
}, | ||
{ | ||
"id":892, | ||
"properties":[ | ||
{ | ||
"name":"type", | ||
"type":"string", | ||
"value":"dirt" | ||
}] | ||
}, | ||
{ | ||
"id":893, | ||
"properties":[ | ||
{ | ||
"name":"type", | ||
"type":"string", | ||
"value":"dirt2" | ||
}] | ||
}], | ||
"tilewidth":32 | ||
}, | ||
{ | ||
"columns":16, | ||
"firstgid":1037, | ||
"image":"survival-items.png", | ||
"imageheight":256, | ||
"imagewidth":512, | ||
"margin":0, | ||
"name":"survival-items", | ||
"spacing":0, | ||
"tilecount":128, | ||
"tileheight":32, | ||
"tiles":[ | ||
{ | ||
"id":16, | ||
"properties":[ | ||
{ | ||
"name":"type", | ||
"type":"string", | ||
"value":"hammer" | ||
}] | ||
}], | ||
"tilewidth":32 | ||
}], | ||
"tilewidth":32, | ||
"type":"map", | ||
"version":"1.10", | ||
"width":30 | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.