You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
429 B
CoffeeScript
14 lines
429 B
CoffeeScript
13 years ago
|
class AsciiIo.PlayerView
|
||
|
|
||
|
constructor: (@element, cols, lines, data, timing) ->
|
||
|
terminalElement = $('<pre class="terminal">')
|
||
|
hudElement = $('<div class="hud">')
|
||
|
|
||
|
@element.append(terminalElement)
|
||
|
@element.append(hudElement)
|
||
|
|
||
|
# @interpreter ?
|
||
|
@terminal = new AsciiIo.TerminalView(terminalElement[0], cols, lines)
|
||
|
@hud = new AsciiIo.HudView(hudElement[0])
|
||
|
@movie = new AsciiIo.Movie(data, timing)
|