Wolfensvelte 3D

screenshot of Wolfensvelte 3D
svelte
vite
scss

Wolfenstein 3D, reimagined in Svelte - rendered with the DOM

Overview:

Wolfensvelte 3D is a reimagining of the classic PC game Wolfenstein 3D using the Svelte framework. The game is rendered using HTML DOM elements with CSS 3D transforms. The project was created for Svelte Hack 2023 and aims to push the limits of Svelte and the DOM. The game includes features such as enemies, weapons, secrets, item pickups, and a full map.

Features:

  • Enemies (Guards + Guard Dogs)
  • Weapons and ammo system
  • Secrets (pushwalls)
  • Item pickups
  • Full E1M1 map
  • Player Health

Summary:

Wolfensvelte 3D is an impressive project that showcases the capabilities of the Svelte framework and CSS 3D transforms. The game successfully recreates the experience of playing Wolfenstein 3D, albeit with some differences. The use of Svelte components for each game object and the management of state through props and functions is commendable. The project also includes a well-optimized game loop and code dedicated to managing game objects and assets. Overall, Wolfensvelte 3D is a unique and interesting take on a classic game.

svelte
Svelte

Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

scss
SCSS

SCSS is a preprocessor scripting language that extends the capabilities of CSS by adding features such as variables, nesting, and mixins. It allows developers to write more efficient and maintainable CSS code, and helps to streamline the development process by reducing repetition and increasing reusability.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.