Jump to content

Photo

Moving from screen to screen

screen playfield moving adventure help

7 replies to this topic

#1 piders7 OFFLINE  

piders7

    Space Invader

  • 32 posts
  • Location:USA

Posted Wed Dec 14, 2016 8:49 AM

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



#2 Lewis2907 OFFLINE  

Lewis2907

    Chopper Commander

  • 120 posts
  • Location:Senatobia, MS

Posted Wed Dec 14, 2016 10:50 AM

Piders7,

 

Attached is what I used and learned from. If side scrolling that is smooth like Super Mario then http://atariage.com/...ue#entry3177516 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/...an#entry3617489

 

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

 

http://www.randomter...c-commands.html

 

Hopes this helps, thanks.



#3 ultima OFFLINE  

ultima

    Chopper Commander

  • 116 posts
  • Location:West Los Angeles, CA USA

Posted Wed Dec 14, 2016 3:06 PM

Read this thread http://atariage.com/...e/?fromsearch=1
This " move around rooms " demo by seaGTruff was also improved by Spiceware using lookup tables

#4 piders7 OFFLINE  

piders7

    Space Invader

  • Topic Starter
  • 32 posts
  • Location:USA

Posted Wed Dec 14, 2016 3:50 PM

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



#5 Lewis2907 OFFLINE  

Lewis2907

    Chopper Commander

  • 120 posts
  • Location:Senatobia, MS

Posted Wed Dec 14, 2016 6:39 PM

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.

Attached Files



#6 piders7 OFFLINE  

piders7

    Space Invader

  • Topic Starter
  • 32 posts
  • Location:USA

Posted Wed Dec 14, 2016 8:02 PM

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



#7 piders7 OFFLINE  

piders7

    Space Invader

  • Topic Starter
  • 32 posts
  • Location:USA

Posted Sun Dec 18, 2016 6:30 PM

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



#8 Lewis2907 OFFLINE  

Lewis2907

    Chopper Commander

  • 120 posts
  • Location:Senatobia, MS

Posted Mon Dec 19, 2016 7:02 PM

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.

Attached Files







Also tagged with one or more of these keywords: screen, playfield, moving, adventure, help

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users