Skip to content

Latest commit

 

History

87 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockingdom

is a game

Technical info

  • Language: LuaJIT 5.1
  • Graphics library: Love2D
  • Game engine: a proprietary ECS heavily inspired by esper for Python (added chunk support)
  • World generation:
    • Resource management: chunking N × N areas (currently 16 × 16)
    • Cave generation: 2D simplex noise / 2D ridge noise
  • Lighting: iterative BFS every N frames. The lower the N, the smoother light updates feel, but the slower it is. An N > 1 is also harder to profile. The lightmap is then converted to an imageData object, which is then converted to a GPU texture. This texture is mapped onto the main window as a fragment shader, which also takes care of smoothing.
  • Color grading: color quantization in the fragment shader using shortest distance from a Nx1 pixel. This can be done after drawing the lighting (chiaroscuro) or after.

Preview

About

2D pixel art survival-fighting game

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages