Programbling
  • Home
  • Tools
  • Games
  • Reference
  • Links
Sign in Subscribe

rogue

A collection of 2 posts
The Return of caseNext
rogue

The Return of caseNext

Rogue has a conditional called which [https://github.com/AbePralle/Rogue/wiki/which] that is analogous to C's switch conditional. It has the added perks of allowing any kind of expression (not just literal integers), allowing multiple expressions to match a single case, and the arguable improvement of
17 Nov 2019 2 min read
2D light and shadow using offscreen rendering
rogue

2D light and shadow using offscreen rendering

Shadows are drawn first in white and then lights are drawn in black. Once we switch to the custom shader, the grayscale value of each pixel becomes the alpha value of a black pixel that will be drawn on top of the background.
28 Oct 2019 4 min read
Page 1 of 1
Programbling © 2025
Powered by Ghost