Skip to content

Commit 9afceb7

Browse files
committed
Initial commit. Adds map, character, and pull to move mechanic.
0 parents  commit 9afceb7

29 files changed

+1903
-0
lines changed

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + TS</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<canvas id="game"></canvas>
12+
<script type="module" src="/src/main.ts"></script>
13+
</body>
14+
</html>

nobuild/aseprite/bad-guy.ase

888 Bytes
Binary file not shown.

nobuild/aseprite/heart.ase

1.37 KB
Binary file not shown.

nobuild/aseprite/kirk.ase

2.91 KB
Binary file not shown.

nobuild/aseprite/tiles.ase

4.15 KB
Binary file not shown.

nobuild/aseprite/ui-heart.ase

730 Bytes
Binary file not shown.

nobuild/maps/map1.tmx

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="80" height="40" tilewidth="16" tileheight="16" infinite="0" nextlayerid="3" nextobjectid="1">
3+
<tileset firstgid="1" name="tiles" tilewidth="16" tileheight="16" tilecount="25" columns="5">
4+
<image source="tiles.png" width="80" height="80"/>
5+
<tile id="0">
6+
<properties>
7+
<property name="collides" type="bool" value="true"/>
8+
</properties>
9+
</tile>
10+
<tile id="1">
11+
<properties>
12+
<property name="collides" type="bool" value="true"/>
13+
</properties>
14+
</tile>
15+
<tile id="2">
16+
<properties>
17+
<property name="collides" type="bool" value="true"/>
18+
</properties>
19+
</tile>
20+
<tile id="3">
21+
<properties>
22+
<property name="collides" type="bool" value="true"/>
23+
</properties>
24+
</tile>
25+
<tile id="4">
26+
<properties>
27+
<property name="collides" type="bool" value="true"/>
28+
</properties>
29+
</tile>
30+
<tile id="5">
31+
<properties>
32+
<property name="collides" type="bool" value="true"/>
33+
</properties>
34+
</tile>
35+
<tile id="6">
36+
<properties>
37+
<property name="collides" type="bool" value="true"/>
38+
</properties>
39+
</tile>
40+
<tile id="7" probability="0.15">
41+
<properties>
42+
<property name="collides" type="bool" value="true"/>
43+
</properties>
44+
</tile>
45+
<tile id="8" probability="5">
46+
<properties>
47+
<property name="collides" type="bool" value="true"/>
48+
</properties>
49+
</tile>
50+
<tile id="9">
51+
<properties>
52+
<property name="collides" type="bool" value="true"/>
53+
</properties>
54+
</tile>
55+
</tileset>
56+
<layer id="1" name="ground" width="80" height="40">
57+
<data encoding="csv">
58+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,2,2,0,0,
59+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,9,9,9,9,0,0,
60+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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