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

Book tip
Modern Angular
Architecture, Concepts, Implementation: practical guidance for modern Angular – Signals, Signal Forms, the NgRx Signal Store, AI and architecture.
More talks
- 29 Sept 2026 · BASTA! Nostalgia Meets Technology: Super Mario with TypeScript Manfred Steyer Talk in English
- 15 Jun 2026 · enterJS 2026 Signal Forms: Details & Live Coding Manfred Steyer Talk in English
- 30 Jun 2026 · DWX 2026 Generative UI & AI-Assistants for Your Angular Solutions Manfred Steyer Talk in English
- 10 Jun 2026 · DDD Europe 2026 Strategic Design in the Frontend: Moduliths & Micro Frontends 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































![Slide 32 of 32: [Social Media] Manfred Steyer](/uploads/slides/nostalgia-meets-technology-super-mario-with-typescript/c1753bf8/32.webp)