Library

A gallery of runnable examples for McRogueFace: bite-sized playground snippets, full engine demo screens, and games. Snippet links open the code straight in the playground; demo/game source links are pinned to a specific commit.

Short snippets carry their source inline in the link; longer ones load the raw file pinned to engine 77dd0fc (jmccardle/McRogueFace). Demos/games pinned to engine 0.2.8. Generated by tools/build_library.py.

Playground Snippets

282 focused, copy-paste examples covering the whole mcrfpy API. Each snippet fills the 1024x768 playground canvas.

Open in Playground opens the exact code shown here in the playground — press Run (Ctrl+Enter). Short snippets travel inline in the URL (LZString-compressed #src=); longer ones load the raw file from the pinned commit (#url=). No copy-paste either way.

Hello

Snippet Preview Source
Hello Frame
Hello Frame - The simplest UI element
Hello Frame preview ▶ Open in Playground
Hello Caption
Hello Caption - Display text on screen
Hello Caption preview ▶ Open in Playground
Hello Sprite
Hello Sprite - Display a textured sprite
Hello Sprite preview ▶ Open in Playground
Hello Grid
Hello Grid - Create a tile-based grid
Hello Grid preview ▶ Open in Playground
Hello Entity
Hello Entity - Add entities to a grid
Hello Entity preview ▶ Open in Playground

Frame

Snippet Preview Source
Frame Colors
Frame Colors - Fill and outline colors
Frame Colors preview ▶ Open in Playground
Frame Opacity
Frame Opacity - Transparency levels
Frame Opacity preview ▶ Open in Playground
Frame Outline
Frame Outline - Border thickness
Frame Outline preview ▶ Open in Playground
Frame Children
Frame Children - Nested UI elements
Frame Children preview ▶ Open in Playground
Frame Clip Children
Frame Clipping - clip_children property
Frame Clip Children preview ▶ Open in Playground
Frame Z Index
Frame Z-Index - Control rendering order
Frame Z Index preview ▶ Open in Playground
Frame Visible
Frame Visibility - Show and hide elements
Frame Visible preview ▶ Open in Playground
Frame Name
Frame Name - Named elements for lookup
Frame Name preview ▶ Open in Playground
Frame Rotation
Frame Rotation - Rotate UI elements
Frame Rotation preview ▶ Open in Playground
Frame Origin
Frame Origin - Rotation pivot point
Frame Origin preview ▶ Open in Playground
Frame Alignment
Frame Alignment - Automatic positioning
Frame Alignment preview ▶ Open in Playground

Caption

Snippet Preview Source
Caption Styling
Caption Styling - Text colors and fonts
Caption Styling preview ▶ Open in Playground
Caption In Frame
Caption in Frame - Text inside containers
Caption In Frame preview ▶ Open in Playground
Caption Dimensions
Caption Dimensions - Text width and height
Caption Dimensions preview ▶ Open in Playground

Sprite

Snippet Preview Source
Sprite Atlas
Sprite Atlas - Browse texture atlas
Sprite Atlas preview ▶ Open in Playground
Sprite Scale
Sprite Scale - Resize sprites
Sprite Scale preview ▶ Open in Playground
Sprite Tint
Sprite Tint - Note: Sprite tinting requires shader
Sprite Tint preview ▶ Open in Playground
Sprite Rotation
Sprite Rotation - Rotate sprite images
Sprite Rotation preview ▶ Open in Playground

Grid

Snippet Preview Source
Grid Tiles
Grid Tiles - Different tile types
Grid Tiles preview ▶ Open in Playground
Grid Walkable
Grid Walkable - Walkable vs blocked tiles
Grid Walkable preview ▶ Open in Playground
Grid Cell Color
Grid Cell Colors - Use color layer for cell colors
Grid Cell Color preview ▶ Open in Playground
Grid Camera Center
Grid Camera Center - Pan the view
Grid Camera Center preview ▶ Open in Playground
Grid Zoom
Grid Zoom - Scale the grid view
Grid Zoom preview ▶ Open in Playground
Grid Layers
Grid Layers - Multiple tile layers
Grid Layers preview ▶ Open in Playground
Grid Point State
Grid Point State - Cell properties
Grid Point State preview ▶ Open in Playground
Grid Fill Color
Grid Fill Color - Background color
Grid Fill Color preview ▶ Open in Playground
Grid Camera Rotation
Grid Camera Rotation - Rotate the view
Grid Camera Rotation preview ▶ Open in Playground
Grid Size
Grid Display Size - Viewport dimensions
Grid Size preview ▶ Open in Playground
Grid Interaction Patterns 1
Scene setup
Grid Interaction Patterns 1 preview ▶ Open in Playground
Grid Interaction Patterns 2
Scene setup
Grid Interaction Patterns 2 preview ▶ Open in Playground
Grid Interaction Patterns 3 Grid Interaction Patterns 3 preview ▶ Open in Playground
Grid Interaction Patterns 4 Grid Interaction Patterns 4 preview ▶ Open in Playground
Grid Interaction Patterns 5 Grid Interaction Patterns 5 preview ▶ Open in Playground
Grid Interaction Patterns 6 Grid Interaction Patterns 6 preview ▶ Open in Playground
Grid Interaction Patterns 7 Grid Interaction Patterns 7 preview ▶ Open in Playground
Grid Cell Highlighting 1 Grid Cell Highlighting 1 preview ▶ Open in Playground
Grid Cell Highlighting 2 Grid Cell Highlighting 2 preview ▶ Open in Playground
Grid Dijkstra 1 Grid Dijkstra 1 preview ▶ Open in Playground
Grid Dijkstra 2 Grid Dijkstra 2 preview ▶ Open in Playground
Grid Dijkstra Heightmap 1
Create a grid with walkable cells
▶ Open in Playground
Grid Dijkstra Heightmap 2 Grid Dijkstra Heightmap 2 preview ▶ Open in Playground
Grid Dungeon Generator
Tile indices (adjust for your tileset)
Grid Dungeon Generator preview ▶ Open in Playground
Grid Fog Of War 1
Create scene and grid
Grid Fog Of War 1 preview ▶ Open in Playground
Grid Fog Of War 2
Scene setup
Grid Fog Of War 2 preview ▶ Open in Playground
Grid Multi Layer 1 Grid Multi Layer 1 preview ▶ Open in Playground
Grid Multi Layer 2 Grid Multi Layer 2 preview ▶ Open in Playground
Grid System 1
Create a scene first
Grid System 1 preview ▶ Open in Playground
Grid System 2
Setup scene
Grid System 2 preview ▶ Open in Playground

Entity

Snippet Preview Source
Entity Movement
Entity Movement - Move entities on grid
Entity Movement preview ▶ Open in Playground
Entity Multiple
Multiple Entities - Several entities on one grid
Entity Multiple preview ▶ Open in Playground
Entity Draw Pos
Entity Draw Position - Smooth sub-tile positioning
Entity Draw Pos preview ▶ Open in Playground
Entity Collection
Entity Collection - Manage grid entities
Entity Collection preview ▶ Open in Playground
Entity Visibility
Entity Visibility - Check what entities can see
Entity Visibility preview ▶ Open in Playground
Entity Die
Entity Die - Remove entity from grid
Entity Die preview ▶ Open in Playground
Entity Index
Entity Index - Get entity position in collection
Entity Index preview ▶ Open in Playground
Entity At
Entity At - Query entity’s view of grid
Entity At preview ▶ Open in Playground

Animation

Snippet Preview Source
Animation Basic
Animation Basic - Animate position
Animation Basic preview ▶ Open in Playground
Animation Easing Linear
Easing: LINEAR - Constant speed
Animation Easing Linear preview ▶ Open in Playground
Animation Easing Ease In
Easing: EASE_IN - Slow start, fast end
Animation Easing Ease In preview ▶ Open in Playground
Animation Easing Ease Out
Easing: EASE_OUT - Fast start, slow end
Animation Easing Ease Out preview ▶ Open in Playground
Animation Easing Ease In Out
Easing: EASE_IN_OUT - Smooth both ends
Animation Easing Ease In Out preview ▶ Open in Playground
Animation Easing Bounce
Easing: BOUNCE - Bouncy effect
Animation Easing Bounce preview ▶ Open in Playground
Animation Easing Elastic
Easing: ELASTIC - Springy overshoot
Animation Easing Elastic preview ▶ Open in Playground
Animation Easing Back
Easing: BACK - Anticipation/overshoot
Animation Easing Back preview ▶ Open in Playground
Animation Easing Comparison
Easing Comparison - Multiple easings side by side
Animation Easing Comparison preview ▶ Open in Playground
Animation Color
Animation Color - Animate fill_color
Animation Color preview ▶ Open in Playground
Animation Opacity
Animation Opacity - Fade in/out
Animation Opacity preview ▶ Open in Playground
Animation Size
Animation Size - Grow and shrink
Animation Size preview ▶ Open in Playground
Animation Sprite Index
Animation Sprite Index - Sprite animation
Animation Sprite Index preview ▶ Open in Playground
Animation Callback
Animation Callback - Run code when animation ends
Animation Callback preview ▶ Open in Playground
Animation Chain
Animation Chain - Sequential animations
Animation Chain preview ▶ Open in Playground
Animation Multiple
Animation Multiple - Several animations at once
Animation Multiple preview ▶ Open in Playground
Animation Pos Vector
Animation Position - Animate x and y along a path
Animation Pos Vector preview ▶ Open in Playground
Animation Delta
Animation Delta - Relative animation
Animation Delta preview ▶ Open in Playground
Animation Complete
Animation Complete Check - Monitor animation state
Animation Complete preview ▶ Open in Playground
Animation Stop
Animation Stop/Complete - Control running animations
Animation Stop preview ▶ Open in Playground

Timer

Snippet Preview Source
Timer Basic
Timer Basic - Periodic callback
Timer Basic preview ▶ Open in Playground
Timer Once
Timer Once - Single-shot timer
Timer Once preview ▶ Open in Playground
Timer Control
Timer Control - Pause, resume, stop
Timer Control preview ▶ Open in Playground
Timer Remaining
Timer Remaining - Check time until next tick
Timer Remaining preview ▶ Open in Playground
Timer Restart
Timer Restart - Reset and start timer
Timer Restart preview ▶ Open in Playground

Input

Snippet Preview Source
Input Keyboard
Input Keyboard - Key press handling
Input Keyboard preview ▶ Open in Playground
Input Mouse Click
Input Mouse Click - Click on frames
Input Mouse Click preview ▶ Open in Playground
Input Mouse Hover
Input Mouse Hover - Enter/exit/move events
Input Mouse Hover preview ▶ Open in Playground
Input Grid Cell Click
Input Grid Cell Click - Click on grid cells
Input Grid Cell Click preview ▶ Open in Playground
Input Grid Cell Hover
Input Grid Cell Hover - Hover over grid cells
Input Grid Cell Hover preview ▶ Open in Playground

Pathfinding

Snippet Preview Source
Pathfinding Astar
Pathfinding A* - Find path between points
Pathfinding Astar preview ▶ Open in Playground
Pathfinding Entity
Entity Pathfinding - Entity path_to method
Pathfinding Entity preview ▶ Open in Playground
Pathfinding Dijkstra
Dijkstra Map - Distance-based pathfinding
Pathfinding Dijkstra preview ▶ Open in Playground
Pathfinding
Setup
Pathfinding preview ▶ Open in Playground

Fov

Snippet Preview Source
Fov Basic
FOV Basic - Field of view computation
Fov Basic preview ▶ Open in Playground
Fov Algorithms
FOV Algorithms - Compare different algorithms
Fov Algorithms preview ▶ Open in Playground
Fov Perspective
FOV Perspective Entity - View from entity’s perspective
Fov Perspective preview ▶ Open in Playground
Fov
Setup
Fov preview ▶ Open in Playground

Bsp

Snippet Preview Source
Bsp Basic
BSP Basic - Binary space partition for dungeon generation
Bsp Basic preview ▶ Open in Playground
Bsp Traversal
BSP Traversal - Different traversal orders
Bsp Traversal preview ▶ Open in Playground

Scene

Snippet Preview Source
Scene Switching
Scene Switching - Multiple scenes
Scene Switching preview ▶ Open in Playground
Scene Transition Fade
Scene Transition Fade - Smooth scene transitions
Scene Transition Fade preview ▶ Open in Playground
Scene Transition Slide
Scene Transition Slide - Sliding transitions
Scene Transition Slide preview ▶ Open in Playground
Scene Lifecycle
Scene Lifecycle - on_enter/on_exit callbacks
Scene Lifecycle preview ▶ Open in Playground
Scene Pos
Scene Position - Offset all scene content
Scene Pos preview ▶ Open in Playground
Scene Update
Scene Update - Per-frame update method
Scene Update preview ▶ Open in Playground

Vector

Snippet Preview Source
Vector Basics
Vector Basics - 2D vector operations
Vector Basics preview ▶ Open in Playground
Vector Normalized
Vector Normalized - Unit vectors
Vector Normalized preview ▶ Open in Playground

Color

Snippet Preview Source
Color Components
Color Components - RGBA color manipulation
Color Components preview ▶ Open in Playground
Color Animation Channels
Color Channel Animation - Animate individual RGBA
Color Animation Channels preview ▶ Open in Playground

Find

Snippet Preview Source
Find Elements
Find Elements - Locate UI by name
Find Elements preview ▶ Open in Playground

Collection

Snippet Preview Source
Collection Iteration
Collection Iteration - Loop through UI children
Collection Iteration preview ▶ Open in Playground

Window

Snippet Preview Source
Window Properties
Window Properties - Access window settings
Window Properties preview ▶ Open in Playground

Keyboard

Snippet Preview Source
Keyboard State
Keyboard State - Track key presses
Keyboard State preview ▶ Open in Playground

Mouse

Snippet Preview Source
Mouse State
Mouse State - Track mouse position and buttons
Mouse State preview ▶ Open in Playground

Ui

Snippet Preview Source
Ui Button
UI Button - Interactive button with hover
Ui Button preview ▶ Open in Playground
Ui Health Bar
UI Health Bar - Animated health display
Ui Health Bar preview ▶ Open in Playground
Ui Tooltip
UI Tooltip - Hover tooltip display
Ui Tooltip preview ▶ Open in Playground
Ui Message Log
UI Message Log - Scrolling text messages
Ui Message Log preview ▶ Open in Playground
Ui Modal
UI Modal Dialog - Popup confirmation
Ui Modal preview ▶ Open in Playground
Ui Widget Patterns 1
Setup Template - the basic scaffold shared by all widget patterns on this page.
Ui Widget Patterns 1 preview ▶ Open in Playground
Ui Widget Patterns 2
Button pattern - a clickable frame with label and hover feedback.
Ui Widget Patterns 2 preview ▶ Open in Playground
Ui Widget Patterns 3
Toggle / Checkbox pattern - a button that toggles state and updates its appearance.
Ui Widget Patterns 3 preview ▶ Open in Playground
Ui Widget Patterns 4
Vertical Menu pattern - a list of selectable options with keyboard navigation.
Ui Widget Patterns 4 preview ▶ Open in Playground
Ui Widget Patterns 5
Modal Dialog pattern - a dialog that captures all input until dismissed.
Ui Widget Patterns 5 preview ▶ Open in Playground
Ui Widget Patterns 6
Hotbar / Quick Slots pattern - number keys (1-9) mapped to inventory slots.
Ui Widget Patterns 6 preview ▶ Open in Playground
Ui Widget Patterns 7
Draggable Window pattern - a frame that can be dragged by its title bar.
Ui Widget Patterns 7 preview ▶ Open in Playground
Ui Alignment 1
Create parent container
Ui Alignment 1 preview ▶ Open in Playground
Ui Alignment 2 Ui Alignment 2 preview ▶ Open in Playground
Ui Alignment 3 Ui Alignment 3 preview ▶ Open in Playground
Ui Alignment 4 Ui Alignment 4 preview ▶ Open in Playground
Ui Alignment 5
Full-screen container
Ui Alignment 5 preview ▶ Open in Playground
Ui Alignment 6
Overlay background
Ui Alignment 6 preview ▶ Open in Playground
Ui Alignment 7 Ui Alignment 7 preview ▶ Open in Playground
Ui Health Bar 1 Ui Health Bar 1 preview ▶ Open in Playground
Ui Health Bar 2 Ui Health Bar 2 preview ▶ Open in Playground
Ui Health Bar 3 Ui Health Bar 3 preview ▶ Open in Playground
Ui Health Bar 4 Ui Health Bar 4 preview ▶ Open in Playground
Ui Menu 1 Ui Menu 1 preview ▶ Open in Playground
Ui Menu 2 Ui Menu 2 preview ▶ Open in Playground
Ui Menu 3 Ui Menu 3 preview ▶ Open in Playground
Ui Message Log 1 Ui Message Log 1 preview ▶ Open in Playground
Ui Message Log 2
Predefined message categories with colors
Ui Message Log 2 preview ▶ Open in Playground
Ui Message Log 3 Ui Message Log 3 preview ▶ Open in Playground
Ui Modal Dialog 1 Ui Modal Dialog 1 preview ▶ Open in Playground
Ui Modal Dialog 2 Ui Modal Dialog 2 preview ▶ Open in Playground
Ui Tooltip 1 Ui Tooltip 1 preview ▶ Open in Playground
Ui Tooltip 2 Ui Tooltip 2 preview ▶ Open in Playground
Ui Tooltip 3 Ui Tooltip 3 preview ▶ Open in Playground
Ui Tooltip 4
Background
Ui Tooltip 4 preview ▶ Open in Playground

Effect

Snippet Preview Source
Effect Screen Shake
Effect Screen Shake - Impact feedback
Effect Screen Shake preview ▶ Open in Playground
Effect Damage Flash
Effect Damage Flash - Hit feedback on frame
Effect Damage Flash preview ▶ Open in Playground
Effect Floating Text
Effect Floating Text - Damage numbers
Effect Floating Text preview ▶ Open in Playground
Effect Pulse
Effect Pulse - Pulsing highlight
Effect Pulse preview ▶ Open in Playground

Game

Snippet Preview Source
Game Turn Based
Game Turn-Based - Simple turn system
Game Turn Based preview ▶ Open in Playground
Game Inventory
Game Inventory - Grid-based inventory UI
Game Inventory preview ▶ Open in Playground
Game Minimap
Game Minimap - Small overview map
Game Minimap preview ▶ Open in Playground
Game Collision
Game Collision - Simple collision detection
Game Collision preview ▶ Open in Playground

Bresenham

Snippet Preview Source
Bresenham Line
Bresenham Line - Draw lines on grid
Bresenham Line preview ▶ Open in Playground

Procgen

Snippet Preview Source
Procgen Cellular
Procgen Cellular - Cave generation
Procgen Cellular preview ▶ Open in Playground
Procgen Cellular Caves Procgen Cellular Caves preview ▶ Open in Playground
Procgen Wfc Procgen Wfc preview ▶ Open in Playground

Camera

Snippet Preview Source
Camera Follow
Camera Follow - Camera tracks entity
Camera Follow preview ▶ Open in Playground

Metrics

Snippet Preview Source
Metrics Display
Metrics Display - Performance monitoring
Metrics Display preview ▶ Open in Playground

Global

Snippet Preview Source
Global Pos
Global Position - World coordinates
Global Pos preview ▶ Open in Playground

Parent

Snippet Preview Source
Parent Reference
Parent Reference - Access parent from child
Parent Reference preview ▶ Open in Playground

Hovered

Snippet Preview Source
Hovered State
Hovered State - Check if element is hovered
Hovered State preview ▶ Open in Playground

Complete

Snippet Preview Source
Complete Game
Complete Mini-Game - Putting it all together
Complete Game preview ▶ Open in Playground

Texture

Snippet Preview Source
Texture Properties
Texture Properties - Texture information
Texture Properties preview ▶ Open in Playground

Scenes

Snippet Preview Source
Scenes Dict
Scenes Tuple - Access all scenes
Scenes Dict preview ▶ Open in Playground
Scenes 1
Create scene with object reference
Scenes 1 preview ▶ Open in Playground
Scenes 2
Background
Scenes 2 preview ▶ Open in Playground

Timers

Snippet Preview Source
Timers List
Timers List - View all active timers
Timers List preview ▶ Open in Playground

Animations

Snippet Preview Source
Animations List
Animations List - View all active animations
Animations List preview ▶ Open in Playground

Cache

Snippet Preview Source
Cache Subtree
Cache Subtree - Performance optimization
Cache Subtree preview ▶ Open in Playground

Realign

Snippet Preview Source
Realign
Realign - Reapply alignment after changes
Realign preview ▶ Open in Playground

Version

Snippet Preview Source
Version Info
Version Info - Engine version and info
Version Info preview ▶ Open in Playground

Alignment

Snippet Preview Source
Alignment Margins
Alignment Margins - Spacing from edges
Alignment Margins preview ▶ Open in Playground

Easing

Snippet Preview Source
Easing Cubic
Easing Cubic - Cubic easing functions
Easing Cubic preview ▶ Open in Playground
Easing Sine
Easing Sine - Sinusoidal easing
Easing Sine preview ▶ Open in Playground
Easing Expo
Easing Exponential - Dramatic acceleration
Easing Expo preview ▶ Open in Playground
Easing Circ
Easing Circular - Circular motion curve
Easing Circ preview ▶ Open in Playground
Easing Quart
Easing Quartic - Strong power easing
Easing Quart preview ▶ Open in Playground

Default

Snippet Preview Source
Default Fov
Default FOV - Set default algorithm
Default Fov preview ▶ Open in Playground

Exit

Snippet Preview Source
Exit Game
Exit Game - Clean shutdown
Exit Game preview ▶ Open in Playground

Combat

Snippet Preview Source
Combat Melee
Melee combat cookbook recipe - Fighter stats, attack resolution, CombatEntity,
Combat Melee preview ▶ Open in Playground

Effects

Snippet Preview Source
Effects Color Pulse 1 Effects Color Pulse 1 preview ▶ Open in Playground
Effects Color Pulse 2 Effects Color Pulse 2 preview ▶ Open in Playground
Effects Color Pulse 3 Effects Color Pulse 3 preview ▶ Open in Playground
Effects Color Pulse 4 Effects Color Pulse 4 preview ▶ Open in Playground
Effects Color Pulse 5 Effects Color Pulse 5 preview ▶ Open in Playground
Effects Damage Flash 1 Effects Damage Flash 1 preview ▶ Open in Playground
Effects Damage Flash 2 Effects Damage Flash 2 preview ▶ Open in Playground
Effects Damage Flash 3 Effects Damage Flash 3 preview ▶ Open in Playground
Effects Floating Text
Create the caption
Effects Floating Text preview ▶ Open in Playground
Effects Path Animation Effects Path Animation preview ▶ Open in Playground
Effects Scene Transitions 1
Create scenes, then switch between them with activate()
▶ Open in Playground
Effects Scene Transitions 2 Effects Scene Transitions 2 preview ▶ Open in Playground
Effects Scene Transitions 3 Effects Scene Transitions 3 preview ▶ Open in Playground
Effects Scene Transitions 4 Effects Scene Transitions 4 preview ▶ Open in Playground
Effects Scene Transitions 5 Effects Scene Transitions 5 preview ▶ Open in Playground
Effects Screen Shake 1 Effects Screen Shake 1 preview ▶ Open in Playground
Effects Screen Shake 2 Effects Screen Shake 2 preview ▶ Open in Playground
Effects Screen Shake 3 Effects Screen Shake 3 preview ▶ Open in Playground

Headless

Snippet Preview Source
Headless Mode 1 Headless Mode 1 preview ▶ Open in Playground
Headless Mode 2 Headless Mode 2 preview ▶ Open in Playground

Rendering

Snippet Preview Source
Rendering And Visuals 1
Create scene
Rendering And Visuals 1 preview ▶ Open in Playground
Rendering And Visuals 2
Background layer (z=0)
Rendering And Visuals 2 preview ▶ Open in Playground

Astarpath

Snippet Preview Source
Astarpath Astarpath preview ▶ Open in Playground

Alignment

Snippet Preview Source
Alignment Alignment preview ▶ Open in Playground

Animation

Snippet Preview Source
Animation 1 Animation 1 preview ▶ Open in Playground
Animation 2 Animation 2 preview ▶ Open in Playground
Animation 3 Animation 3 preview ▶ Open in Playground
Animation 4 Animation 4 preview ▶ Open in Playground
Animation 5 Animation 5 preview ▶ Open in Playground
Animation 6 Animation 6 preview ▶ Open in Playground
Animation 7 Animation 7 preview ▶ Open in Playground
Animation 8 Animation 8 preview ▶ Open in Playground
Animation 9 Animation 9 preview ▶ Open in Playground
Animation 10 Animation 10 preview ▶ Open in Playground

Arc

Snippet Preview Source
Arc 1
Create a simple arc
Arc 1 preview ▶ Open in Playground
Arc 2
Animated loading spinner
Arc 2 preview ▶ Open in Playground

Bsp

Snippet Preview Source
Bsp 1
BSP Quick Reference - create a tree, split, and iterate leaves
Bsp 1 preview ▶ Open in Playground
Bsp 2
BSP traversal - iterate leaves and all nodes in various orders
▶ Open in Playground
Bsp 3
BSP adjacency - connect rooms with corridors via the wall-tile map
▶ Open in Playground

Caption

Snippet Preview Source
Caption
Create a caption
Caption preview ▶ Open in Playground

Circle

Snippet Preview Source
Circle 1
Create a filled circle
Circle 1 preview ▶ Open in Playground
Circle 2
Interactive button circle
Circle 2 preview ▶ Open in Playground

Colorlayer

Snippet Preview Source
Colorlayer 1 Colorlayer 1 preview ▶ Open in Playground
Colorlayer 2 Colorlayer 2 preview ▶ Open in Playground

Color

Snippet Preview Source
Color
Create colors
Color preview ▶ Open in Playground

Dijkstramap

Snippet Preview Source
Dijkstramap Dijkstramap preview ▶ Open in Playground

Drawable

Snippet Preview Source
Drawable
Drawable is abstract - use subclasses
Drawable preview ▶ Open in Playground

Easing

Snippet Preview Source
Easing Easing preview ▶ Open in Playground

Entity

Snippet Preview Source
Entity Entity preview ▶ Open in Playground

Fov

Snippet Preview Source
Fov 1
Create grid and set algorithm
Fov 1 preview ▶ Open in Playground
Fov 2 Fov 2 preview ▶ Open in Playground

Font

Snippet Preview Source
Font 1
Load a font
Font 1 preview ▶ Open in Playground
Font 2
Load font
Font 2 preview ▶ Open in Playground

Frame

Snippet Preview Source
Frame
Create a styled panel
Frame preview ▶ Open in Playground

Grid

Snippet Preview Source
Grid Grid preview ▶ Open in Playground

Heightmap

Snippet Preview Source
Heightmap Heightmap preview ▶ Open in Playground

Inputstate

Snippet Preview Source
Inputstate Inputstate preview ▶ Open in Playground

Key

Snippet Preview Source
Key Key preview ▶ Open in Playground

Keyboard

Snippet Preview Source
Keyboard Keyboard preview ▶ Open in Playground

Line

Snippet Preview Source
Line 1
Create a simple line
Line 1 preview ▶ Open in Playground
Line 2
Draw a triangle using three lines
Line 2 preview ▶ Open in Playground

Mousebutton

Snippet Preview Source
Mousebutton 1 Mousebutton 1 preview ▶ Open in Playground
Mousebutton 2 Mousebutton 2 preview ▶ Open in Playground

Mouse

Snippet Preview Source
Mouse 1 ▶ Open in Playground
Mouse 2
Create a custom cursor sprite (uses the default texture atlas)
Mouse 2 preview ▶ Open in Playground

Music

Snippet Preview Source
Music
Load and play background music
▶ Open in Playground

Noisesource

Snippet Preview Source
Noisesource 1
Create a noise source
▶ Open in Playground
Noisesource 2
Create terrain with multiple noise layers
▶ Open in Playground

Scene

Snippet Preview Source
Scene 1
Create a scene
Scene 1 preview ▶ Open in Playground
Scene 2
Create and populate a scene
Scene 2 preview ▶ Open in Playground

Sprite

Snippet Preview Source
Sprite
Sprite Quick Reference - create, scale, animate a sprite
Sprite preview ▶ Open in Playground

Texture

Snippet Preview Source
Texture 1
Load a sprite sheet
Texture 1 preview ▶ Open in Playground
Texture 2
Load texture
Texture 2 preview ▶ Open in Playground

Tilelayer

Snippet Preview Source
Tilelayer Tilelayer preview ▶ Open in Playground

Timer

Snippet Preview Source
Timer Timer preview ▶ Open in Playground

Transition

Snippet Preview Source
Transition 1
Create scenes
Transition 1 preview ▶ Open in Playground
Transition 2 Transition 2 preview ▶ Open in Playground

Traversal

Snippet Preview Source
Traversal
Traversal - BSP traversal order enumeration, including string shortcuts
▶ Open in Playground

Vector

Snippet Preview Source
Vector 1
Create vectors
Vector 1 preview ▶ Open in Playground
Vector 2 Vector 2 preview ▶ Open in Playground

Window

Snippet Preview Source
Window
Get window instance
▶ Open in Playground

Part

Snippet Preview Source
Part 00 Setup
Create a Scene object - this is the preferred approach
Part 00 Setup preview ▶ Open in Playground
Part 01 Grid Movement
Sprite indices for CP437 tileset
Part 01 Grid Movement preview ▶ Open in Playground
Part 02 Tiles Collision 1
=============================================================================
Part 02 Tiles Collision 1 preview ▶ Open in Playground
Part 02 Tiles Collision 2
Constants
Part 02 Tiles Collision 2 preview ▶ Open in Playground
Part 03 Dungeon Generation Part 03 Dungeon Generation preview ▶ Open in Playground
Part 04 Fov Part 04 Fov preview ▶ Open in Playground
Part 05 Enemies Part 05 Enemies preview ▶ Open in Playground
Part 06 Combat Part 06 Combat preview ▶ Open in Playground
Part 07 Ui Part 07 Ui preview ▶ Open in Playground
Part 08 Items Part 08 Items preview ▶ Open in Playground
Part 09 Ranged Part 09 Ranged preview ▶ Open in Playground
Part 10 Save Load Part 10 Save Load preview ▶ Open in Playground
Part 11 Levels Part 11 Levels preview ▶ Open in Playground
Part 13 Equipment Part 13 Equipment preview ▶ Open in Playground

Engine Demo Screens

25 interactive demo screens from the engine test harness (tests/demo/screens/). Run them with ./mcrogueface ../tests/demo/demo_main.py.

Screen Thumbnail Source
animation_demo ❌ missing view · raw
billboard_building_demo ❌ missing view · raw
caption_demo ❌ missing view · raw
color_demo ❌ missing view · raw
entity3d_demo ❌ missing view · raw
focus_system_demo ❌ missing view · raw
frame_demo ❌ missing view · raw
grid_demo ❌ missing view · raw
integration_demo ❌ missing view · raw
ldtk_demo ❌ missing view · raw
model_loading_demo ❌ missing view · raw
navigation_demo ❌ missing view · raw
navigation_screenshot ❌ missing view · raw
pathfinding_demo ❌ missing view · raw
primitives_demo ❌ missing view · raw
skeletal_animation_demo ❌ missing view · raw
terrain_demo ❌ missing view · raw
tiled_analysis ❌ missing view · raw
tiled_demo ❌ missing view · raw
village_demo ❌ missing view · raw
voxel_core_demo ❌ missing view · raw
voxel_dungeon_demo ❌ missing view · raw
voxel_meshing_demo ❌ missing view · raw
voxel_navigation_demo ❌ missing view · raw
voxel_serialization_demo ❌ missing view · raw

Games

Full games built on McRogueFace. Web/desktop packaging is pending — these are listed from the engine repo’s games/ directory and are not yet downloadable builds.

Game Source Status
unwritten browse packaging pending