bB Reference Page


batari Basic (bB) is the language written by Fred "batari" Quimby that I used to create a number of homebrew 2600 games. If you write games in bB, you'll want to use this forum. You'll also need to use the bible of bB on RT's site along with his music and sound bB reference.

Links:
Slashdot Article on bB


Decimal Deltas for x/y Direction for Use in bB

Here is something I came up with a little while back. It isn't rocket science, but there are no sin or cos functions in bB so a lookup table is in order. I used this in Ultimate Indy 500 (a.k.a. my primary bB embarassment/a.k.a. they said it couldn't be done/a.k.a. one of the most disappointing games I failed to finish).
Direction x delta y delta
1 0 -1
2 0.38 -0.92
3 0.71 -0.71
4 0.92 -0.38
5 1 0
6 0.92 0.38
7 0.71 0.71
8 0.38 0.92
9 0 1
10 -0.38 0.92
11 -0.71 0.71
12 -0.92 0.38
13 -1 0
14 -0.92 -0.38
15 -0.71 -0.71
16 -0.38 -0.92
Note: These numbers were determined by the following: cos(0), sin(0), cos(pi/8), sin(pi/8), cos(pi*2/8), sin(pi*2/8), cos(pi*3/8), sin(pi*3/8), cos(pi*4/8), sin(pi*4/8), cos(pi*5/8), sin(pi*5/8), cos(pi*6/8), sin(pi*6/8), cos(pi*7/8), sin(pi*7/8).

wolfram alpha - 1st half
wolfram alpha - 2nd half
Make a Free Website with Yola.