teaching machines

CS 491 Lecture 13 – Text-based Level Editor

October 14, 2015 by . Filed under fall 2015, gamedev2, lectures.

Agenda

TODO

Program This

You have a level described in a plain text file in this format, with walls represented by #, passages by ., and tanks by 1 and 2:

###.#####.###
...........2.
#.....#.....#
#..#####....#
#....#####..#
#.....#.....#
.1...........
###.#####.###

We plan on generating a cube for each wall. Where will each cube be positioned? How big will it be? You want the level to fill the viewport when the game is played.

Let’s complete this in two steps:

  1. What do we need to know? (1 minute)
  2. In pseudocode, how do we compute the sizes and positions? (more than 1 minute)

Code

Haiku

Text is liquid thought
Poured from brain A to brain B
Want some? Just ASCII