Skip to content

Commit 34cc8b4

Browse files
committed
after part 1
0 parents  commit 34cc8b4

9 files changed

+1223
-0
lines changed

.gitignore

+24
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?

README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Build a Game Engine in TypeScript
2+
3+
## TODO
4+
5+
-[x] Decide what kind of game we're making
6+
- top-down tile-based game (like Legends of Zelda: Link to the Past)
7+
-[x] Set up canvas rendering
8+
-[x] Set up a loop to repaint the canvas
9+
-[x] Decide on the size and render map (camera/viewport)
10+
-[x] Render a character on the map
11+
-[x] Set up event messaging system
12+
13+
-[x] Characters
14+
-[x] Movement
15+
- Actions (e.g. attack, jump)
16+
- Enemy AI
17+
-[x] Collision detection
18+
- Start/restart
19+
- Death/damage
20+
-[x] Map tiles
21+
-[x] Aspect ratio

index.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<title>Build a Game Engine</title>
9+
</head>
10+
11+
<body>
12+
<div id="app"></div>
13+
<script type="module" src="/src/main.ts"></script>
14+
</body>
15+
16+
</html>

0 commit comments

Comments
 (0)