This is a recording of my teaching at HTL Leonding (htl-leonding.at).
This lecture is in a class that I did not know before. So we did a recap on selected JavaScript/TypeScript-, HTML-, and CSS-topics by building a simple Minesweeper game. In the end, we also covered the basics about Vite. This will become important when we switch to Angular (also with Vite) in the upcoming weeks.
00:00:00 Creating the project, setup of environment (Liveserver)
00:17:04 First steps of game logic in JavaScript
00:24:06 Creating the game grid with CSS Grid
00:33:48 Click handling (talking about closures)
00:54:07 Truthy/falsy
00:58:16 Randomly placing mines
01:07:56 Converting JS to TS
01:27:26 Adding Vite for dev server and build
01:33:07 Closing
21 сен 2024