Talk
Nostalgia Meets Technology: Super Mario with TypeScript
Slides of the talk (33)
Slides, code & links
Slide text (all slides)
- Nostalgia Meets Technology Super Mario with TypeScript ANGULARarchitects.io
- –
- Why? 1) Just for Fun! 2) Learning/ Repeating Typical Patterns Exercise 3) •Nice Programming
- Agenda 1) Game Loop 2) Tiles & Coordinates 3) •Gravity 4) Side Scrolling & View Port 5) Collision Detection
- About Me Manfred Steyer, ANGULARarchitects.io (Remote) Angular Workshops and Consulting Google Developer Expert for Angular Blog, Books, Articles, and Talks about Angular
- DEMO
- Loading Images bearbeiten const response = await fetch('/hero.png'); const blob = await response.blob(); •const heroTile = await createImageBitmap( blob, 0, // x 8, // y 16, // width 16 // height );
- Game Loop
- A Simple Game Loop function tick(ctx: HeroContext, timeStamp: number): void { •[…]Textmasterformat bearbeiten }
- A Simple Game Loop function tick(ctx: HeroContext, timeStamp: number): void { timeStamp); •console.log('timeStamp', […] }
- A Simple Game Loop function tick(ctx: HeroContext, timeStamp: number): void { timeStamp); •console.log('timeStamp', if (keyboard.right) { ctx.x += 1; } […] }
- A Simple Game Loop function tick(ctx: HeroContext, timeStamp: number): void { timeStamp); •console.log('timeStamp', if (keyboard.right) { ctx.x += 1; } ctx.context.clearRect(0, 0, 1000, 1000); ctx.context.drawImage(ctx.heroTile, ctx.x, ctx.y, 16, 16); […] }
- A Simple Game Loop function tick(ctx: HeroContext, timeStamp: number): void { timeStamp); •console.log('timeStamp', if (keyboard.right) { ctx.x += 1; } ctx.context.clearRect(0, 0, 1000, 1000); ctx.context.drawImage(ctx.heroTile, ctx.x, ctx.y, 16, 16); requestAnimationFrame((timeStamp) => tick(ctx, timeStamp)); }
- DEMO
- Tiles & Coordinates
- (Cols, Rows) vs. (x,bearbeiten y)
- GameGrid gameGrid[0][0] = { tile: skyTile }; gameGrid[1][0] = { tile: skyTile }; •[…]Textmasterformat bearbeiten
- Gravity
- –
- Idea WHILE not at ground Increase y by velocity Increase velocity
- DEMO
- Side Scrolling & View Port
- Scroll Offset View Port x - renderX renderX x Scroll Offset + View Port Width
- DEMO
- Collision Detection
- Bounding Boxes bearbeiten
- First, in 1D < <
- First, in 1D < <
- Bounding Boxes bearbeiten a b a.left < b.right b.left < a.right a.top < b.bottom b.top < a.bottom
- DEMO
- Modern Angular bearbeiten Architecture, Concepts, Implementation 400+ pages, PDF, EPUB Regular Free Updates! Q1/2026 Waiting List: angular-book.com
- Conclusion 1) Game Loop: Take Care of Time Delta 2) Tiles & Coordinates ZweiteIncrease/ Ebene Decrease Velocity 3) •Gravity: 4) Side Scrolling & View Port: Change Offset i/o Hero Coordinates 5) Collision Detection: Bounding Boxes 6) We had fun!
- Manfred Steyer [Social Media] Manfred Steyer [web] ANGULARarchitects.io Slides, Examples, Book Remote Company Workshops and Consulting http://angulararchitects.io @ Manfred Steyer

Book tip
Modern Angular
Architecture, Concepts, Implementation: practical guidance for modern Angular – Signals, Signal Forms, the NgRx Signal Store, AI and architecture.
More talks
- 30 Jun 2026 · DWX 2026 Nostalgia Meets Technology: Super Mario with TypeScript Manfred Steyer Talk in English
- 9 Jul 2026 · We Are Developers 2026 Generative UI & AI-Assistants for Your Angular Solutions Manfred Steyer Talk in English
- 1 Oct 2026 · BASTA! AI-Ready Angular Architectures Architecture as Executable Contract Manfred Steyer Talk in English
- 30 Jun 2026 · DWX 2026 Generative UI & AI-Assistants for Your Angular Solutions Manfred Steyer Talk in English
- 28 Oct 2026 · iJS 2026 AI-Ready Angular Architectures Architecture as Executable Contract Manfred Steyer Talk in English
































