Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.
/ wgpu-simple-fps Public archive

A simple FPS game created to learn wgpu.

License

Notifications You must be signed in to change notification settings

Tengu712/wgpu-simple-fps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wgpu Simple FPS

What is this?

This is a simple FPS game created to learn wgpu. As such, it isn't polished as a game.

What I learned

About wgpu:

  • Surface clearing
  • Polygon drawing
  • Instancing
  • Multiple render pipelines
  • Depth testing
  • Image texture sampling
  • Alpha blending

About other aspects:

  • Creating cuboids, rectangles, spheres
  • First-person movement
  • Wall collisions
  • Target shooting

Build

On Windows, macOS or Linux:

  1. install Rust
  2. compile and run model/create.rs
  3. cargo build