Skip to content

Instantly share code, notes, and snippets.

@darkf
Created May 7, 2012 02:59
Show Gist options
  • Select an option

  • Save darkf/2625598 to your computer and use it in GitHub Desktop.

Select an option

Save darkf/2625598 to your computer and use it in GitHub Desktop.
Data-driven rougelike description DSL
merchant Tom
inventory: 3x Pistol Rounds @ $5, 1x SMG Rounds @ $10
on talk {
say "Hello! Welcome to Tom's Ammunition Supply!"
}
end
enemy Boar
inventory: 1x Boar Meat
on attack {
say "Grr I'm a boar!"
}
end
prop Trashcan
inventory: 1x Used Condom
end
map Map1
Tom @ (10, 25)
Boar @ (5, 5)
Trashcan @ (10, 10)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment