# exampleboard.brd - An Example Breakout Boardfile # This is an example gameboard file, suitable for being loaded by the July 2003 # version of Breakout. # # The format is defined in depth in the javadoc for breakout.Loader, but # the basics are as follows: # # 1. Define a single-character symbol for a brick class using the [symbol] tag. # The [symbol] tag must define a character(char="b"), fully-qualified # class(class="breakout.BasicBrick"), and constructor arguments(args="61,15"). # Arguments are comma-delimited. Arguments may be integers, or may indicate # the Board they are to be added to as one of their constructors by using # %board as an argument. A no-args constructor is indicated by an empty # string(""). # 2. Define the board's starting Ball and Paddle, and start the list of # bricks, using the [board] tag. # The [board] tag must define a ball(ball="breakout.BasicBall"), ball # constructor arguments(ballargs=""), a paddle(paddle="breakout.BasicPaddle"), # and paddle constructor arguments(paddleargs="%board"). Same rules # for arguments apply. # 3. List bricks in order, using the symbols you defined. No spaces, unless you # defined them as a symbol for a brick. Note that just because you put # a carriage return somewhere, doesn't mean the row will end there. # FYI, 5 bricks of width 61 will fit fairly snugly in a row. # 4. Close the brick list with a closing board tag([/board]). # # If you've done something wrong, Loader should tell you about it in a # fairly readable way. [symbol char="b" class="breakout.BasicBrick" args="61, 15"] [symbol char="h" class="breakout.HitpointsBrick" args="61, 15"] [board ball="breakout.BasicBall" ballargs="" paddle="breakout.BasicPaddle" paddleargs="%board"] bhbhb hbhbh [/board]