SubRogue: the build so far

What is SubRogue? ⚔

Design Goals 🎮

The build: steps to replicate🔨

Python Roguelike 💻

Python Roguelike Tutorial Revised

This is a screenshot after Step 3. No combat here: only dungeon generation and movement.
This is a screenshot after Step 3. No combat here yet, but now have the field-of-view.
def hasher_range(range_min, range_max, seed):
# want to get a pseudo-random number in some range(min, max)
hash_the_seed = hasher(seed) # blake2b hash to integer

modulus = range_max - range_min + 1
fn_output_pre = hash_the_seed % modulus
fn_output = fn_output_pre + range_min
return fn_output
Left: the purple spot is the trigger tile. Right: How the dungeon looked after further generation and exploration.

Connecting to Substrate chains ⛓

substrate = SubstrateInterface(
url="wss://kusama-rpc.polkadot.io/",
address_type=2,
type_registry_preset='kusama'
)

substrate.get_chain_head()
Left: code for getting latest Kusama block hash. Right: the first room show 2 orcs and the yellow field-of-view.

Acknowledgements 🏅

About me🎯

Questions / Comments?❓

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store