T.B.A.G. a (t)ext (b)ased (a)dventure (g)ame language Intro - - PowerPoint PPT Presentation

t b a g
SMART_READER_LITE
LIVE PREVIEW

T.B.A.G. a (t)ext (b)ased (a)dventure (g)ame language Intro - - PowerPoint PPT Presentation

T.B.A.G. a (t)ext (b)ased (a)dventure (g)ame language Intro Optimized for text based adventure games, can be used for others Easy to define rooms, NPCS, items Event-driven system Why Events? mouse_cat.tbag AST, Program


slide-1
SLIDE 1

T.B.A.G.

a (t)ext (b)ased (a)dventure (g)ame language

slide-2
SLIDE 2

Intro

  • Optimized for text based adventure games, can be used for others
  • Easy to define rooms, NPCS, items
  • Event-driven system
  • Why Events?
slide-3
SLIDE 3

mouse_cat.tbag

slide-4
SLIDE 4

AST, Program Structure

slide-5
SLIDE 5

Parser

slide-6
SLIDE 6

Semantic Checker

  • Abandoned a typed SAST
  • Semantically correct AST
  • Symbol Table - scope
  • Environment

○ Symbol Table ○ Return type ○ Current function ○ Global variables ○ Global functions ○ Room, Item, NPC defs ○ Room, Item, NPC decl’s ○ Predicate statements/handlers

  • Built-in functions (challenge)
slide-7
SLIDE 7

Java Builder

TBAG World Java World

Room Definition Room Declarations Adjacency Declarations Start Declaration NPC Definition NPC Declarations Item Definition Item Declarations Variable Declarations Predicates / Handlers Function Declarations Room.java NPC.java Item.java Driver.java Room Definition NPC Definition Item Definition Variable Declarations Room Declarations Adjacency Declarations Start Declaration NPC Declarations Item Declarations Predicates / Handlers Function Declarations main

slide-8
SLIDE 8

Code Gen

slide-9
SLIDE 9

Testing

slide-10
SLIDE 10

fib_func.tbag fib_event.tbag

slide-11
SLIDE 11

Gameplay tests

simulate user input

slide-12
SLIDE 12

Planning, Processes, Development, Challenges

  • Roles were fluid
  • Version control
  • Internal deadlines

○ More helpful for planning than for actual results!

  • Changes in early December
  • Code integration challenges
  • Constant group feedback
slide-13
SLIDE 13

What We Feared

slide-14
SLIDE 14

What Really Happened

EVERYONE IS BRADLEY COOPER