Jump to content

Photo

What is player0x? It's not a register. Is it a keyword?


4 replies to this topic

#1 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 28,245 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Wed Jul 19, 2017 8:53 PM

What is player0x? It's not a register. Is it a keyword? A variable? Or is it called something else? I'd like to know the official name for things like player0x, player1x, player0y, player1y, missile0x, missile1x, missile0y, and missile1y.

 

 

Thanks.



#2 RevEng ONLINE  

RevEng

    River Patroller

  • 4,704 posts
  • Bitnik
  • Location:Canada

Posted Wed Jul 19, 2017 9:57 PM

It's a variable. If you want to differentiate them from the game's own variables, you could call them kernel variables.

#3 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • Topic Starter
  • 28,245 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Wed Jul 19, 2017 10:47 PM

It's a variable. If you want to differentiate them from the game's own variables, you could call them kernel variables.

 
Thanks. Kernel variable sounds good.



#4 gauauu OFFLINE  

gauauu

    Moonsweeper

  • 332 posts
  • Location:Illinois

Posted Thu Jul 27, 2017 8:08 PM

Is there a doc somewhere that explains how bb's special variables are laid out in memory?

(Are player0x and player1x consecutive so I can access them as an array?)

#5 bogax OFFLINE  

bogax

    Dragonstomper

  • 718 posts

Posted Thu Jul 27, 2017 8:18 PM

Is there a doc somewhere that explains how bb's special variables are laid out in memory?

(Are player0x and player1x consecutive so I can access them as an array?)

 

it depends  on the kernel

they're defined in the header files

see eg 2600basic.h 






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users