Skip to content

Commit cb66266

Browse files
Merge pull request #38 from justindujardin/feat/tiled-intro
Feat/tiled intro
2 parents 7c9017f + 39e3650 commit cb66266

File tree

4 files changed

+51
-2
lines changed

4 files changed

+51
-2
lines changed

.data/tiled.png

202 KB
Loading

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,17 @@ Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app w
2121

2222
Run `npm run storybook` to run the local storybook UI development server. Navigate to `http://localhost:6006/`. The app will automatically reload if you change any of the source files.
2323

24-
![World Map](.data/storybook.png)
24+
![Storybook](.data/storybook.png)
25+
26+
## Map Editor 🎨
27+
28+
Use the free [Tiled map editor](https://mapeditor.org) to edit existing maps and create new adventures.
29+
30+
Download and run the Tiled editor, then choose "Open File or Project" from the "File" menu, and select the `angular-rpg.tiled-project` file in the root of this project.
31+
32+
You should now be viewing the town map, and any changes you make will be shown when you refresh the page on your dev server.
33+
34+
![Tiled Editor](.data/tiled.png)
2535

2636
## Build 🔨
2737

angular-rpg.tiled-project

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"commands": [],
44
"extensionsPath": "src/tiled",
55
"folders": [
6-
"src"
6+
"src/assets/maps/"
77
],
88
"propertyTypes": [
99
{
@@ -127,6 +127,7 @@
127127
"type": "enum",
128128
"values": [
129129
"potion",
130+
"potion-large",
130131
"ether"
131132
],
132133
"valuesAsFlags": true

angular-rpg.tiled-session

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"activeFile": "src/assets/maps/town.tmx",
3+
"expandedProjectPaths": [
4+
"src",
5+
"src/assets/maps/templates",
6+
"src/art/sprites/characters/punch",
7+
"src/assets/maps",
8+
"src/art/sprites",
9+
"src/tiled/createdialogtool",
10+
".",
11+
"src/art",
12+
"src/tiled",
13+
"src/assets/maps/tiles",
14+
"src/art/sprites/characters/magic",
15+
"src/assets/test",
16+
"src/assets"
17+
],
18+
"file.lastUsedOpenFilter": "All Files (*)",
19+
"fileStates": {},
20+
"openFiles": [
21+
"src/assets/maps/town.tmx"
22+
],
23+
"project": "angular-rpg.tiled-project",
24+
"recentFiles": [
25+
"src/assets/maps/town.tmx",
26+
"src/assets/maps/castle.tmx",
27+
"src/assets/maps/village.tmx",
28+
"src/assets/maps/isle.tmx",
29+
"src/assets/maps/combat.tmx",
30+
"src/assets/maps/ruins.tmx",
31+
"src/assets/maps/wilderness.tmx",
32+
"src/assets/maps/lair.tmx",
33+
"src/assets/maps/port.tmx",
34+
"src/assets/maps/sewer.tmx",
35+
"src/assets/maps/tower1.tmx",
36+
"src/assets/maps/tower2.tmx"
37+
]
38+
}

0 commit comments

Comments
 (0)