IGNORED

# Moving from screen to screen

## Recommended Posts

I'm building an Adventure-ish game in Batari BASIC. How do you add multiple screens?

##### Share on other sites

Piders7,

Attached is what I used and learned from. If side scrolling that is smooth like Super Mario then http://atariage.com/forums/topic/215171-princess-rescue-batari-basic-source-code/?hl=%2Bprincess+%2Brescue&do=findComment&comment=3177516 has the source code. Also the game I made from all the examples I could find here in the forum is at:

Pac_Man Eat n Run

http://atariage.com/forums/topic/257359-pac-man-ean-n-run/page-2?hl=%2Bpacman&do=findComment&comment=3617489

There are some tutorials the Random Terrain maintains that I think almost everyone refers to at:

http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html

Hopes this helps, thanks.

##### Share on other sites

This " move around rooms " demo by seaGTruff was also improved by Spiceware using lookup tables

##### Share on other sites

In this demo's source code, how exactly does the room data work?

##### Share on other sites

Piders7,

This what I used to make the data statements that are from the thread that Ultima posted. The excel sheet is where I did the calculations based off of Stargunner's example. Also to move just left and right and not move all directions maybe a little easier to start with. That is what I started with and then moved up to this example.

rem player changes screen left and right
if player0x=135 then player0x=15 : canal = canal-1
if player0x=10 then player0x=130 : canal = canal+1
if canal > 5 then canal = 5

rem which screen is next left or right
if canal = 0 then gosub draw_canal_shape_3 bank6
if canal = 1 then gosub draw_canal_shape_1 bank6
if canal = 2 then gosub draw_canal_shape_2 bank6
if canal = 3 then gosub draw_canal_shape_1 bank6
if canal = 4 then gosub draw_canal_shape_2 bank6
if canal = 5 then gosub draw_canal_shape_0 bank6

The code above is just to move left and right. Hope this helps, thanks.

Game Data - Legends Unite.xls

move around rooms DPC+.txt

move_around_rooms.bas

##### Share on other sites

I think I'm beginning to understand. I'll get back to you with my game's renovated code soon.

##### Share on other sites

Hold on, I want there to be items in the game. How do I that?

##### Share on other sites

Piders7,

Hopefully this will help. What I did was used a collection of codes I could find here and there and compiled them into one game. I put as many remarks in there to help explain what I was doing. Hopefully this will help.

Save Earth - 22 Aug 16 - DPC+.txt

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.