Easy Map Making
toolbar-separator.png This article is currently in development. You can help TI-Basic Developer by expanding it. This article seems to lack info. Needs attending.

Map making is a key part of making many types of games.

Most maps are created use pre-drawn images on the graph screen, while a select few make use of the home screen. The graph screen is more versatile with its larger size and compatibility. Pxl-test( is often used to keep a character on or within the boundaries of a map.


pxl-Test( is what the whole programs runs off.
The command pxl-Test( returns either 1 or 0, indicating whether a pixel is activated or not. Using this, you can use a movement loop where the character will not move onto (5,2) If Pxl-Test(5,2)->A. If A=1 then the program will not move onto the spot.


Type in this code into your calculator:

RecallPic 1
Repeat A=45
Repeat Ans
X-(Ans=24 and not(pxlTest(Y,X-1)))+(Ans=26 and not(pxl-Test(Y,X+1→X
Y-(A=25 and not(pxlTest(Y-1,X)))+(A=34 and not(pxl-Test(Y+1,X→Y


Make any random map that pleases you and press [2ND] + [DRAW] + [LEFT] + [ENTER] + [1] + [ENTER] (Storepic 1). This will override Pic1 with whatever map you created. The movement loop will need to be customized for your map though. A simple maze game is easier to make then a platformer that requires jumping, shooting, moving, etc.

Things to make sure of

1) Make sure that the pixel at (55,2) is not activated (black)
2) Make sure that your window settings are as follows: Xmin=0, Xmax=94, Ymin=0, Ymax=62. This makes sure that the resolution on the screen fits the Pt-On( command (this makes life easier)
3) Remember that Pxl-On( follows the syntax of Output where it is Pxl-On(Row, Column).


Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License