Jump to content
IGNORED

Why do not the colors appear in the game I'm doing?


JorgeLiborinho

Recommended Posts

I'm only making a simple game, this is one of my first games that I'm doing!

I ultilize Batari Basic to write the codes and creating the game!

 

Look at the code I wrote:

 

------------------------------------------------------------------------------

 

main

 

COLUBK=02

 

player0color:

$00

$F4

$F4

$88

$98

$F6

$F6

$F6

end

 

player0:

%01101100

101000

111000

%10111010

%11111110

111000

111000

111000

end

 

player0x=50

player0y=50

 

drawscreen

 

goto main

 

main2

 

COLUBK=02

 

player0color:

$00

$F4

$F4

$88

$98

$F6

$F6

$F6

end

 

player0:

%01101100

101000

111000

%10111010

%11111110

111000

111000

111000

end

 

player0x=50

player0y=50

 

drawscreen

 

goto main2

 

----------------------------------------------------------------------

 

I wrote this code here:

 

player0color:

$ 00

$ F4

$ F4

$ 88

$ 98

$ F6

$ F6

$ F6

end

 

With this code the player should be colorful, but because when I tested it gets all black? :?

Link to comment
Share on other sites

hey, you really should post topics like that inside the batari Basic sub-forum, once they are related to bB - it's over here

 

To have multicolored players you need to set a kernel option for that... Random Terrain has it all:

 

1. kernel options

2. player colors

3. plus, you have two game loops... I mean, when will the program reach "main2"? It will keep on going forever inside "main".

 

...something like the attached files

 

Cheers

default.bas

default.bas.bin

Edited by diogoandrei
  • Like 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...