Search found 5 matches
- Wed Jan 10, 2024 6:28 pm
- Forum: Programming
- Topic: How to set text color in text mode?
- Replies: 2
- Views: 19173
How to set text color in text mode?
My code sets to color to render the player as a text character and the enemy. SETUP: COLOR 1,0 X = 5 Y = 5 EX = 14 EY = 14 MS = 1 CLS SCREEN 3 GOTO GAME GAME: IF INT(EX) = INT(X) AND INT(EY) = INT(Y) THEN GOTO GAMEOVER TILE X,Y,96 V=JOY(0) IF V AND 8 THEN Y = Y - MS IF V AND 4 THEN Y = Y + MS IF V A...
- Tue Jan 09, 2024 9:10 pm
- Forum: Programming
- Topic: How to set color for rectangles in graphics mode in x16 basic?
- Replies: 1
- Views: 13390
How to set color for rectangles in graphics mode in x16 basic?
I have some code to draw a grid of rects:
But using the color command seems to not change the color of the rect color in graphics mode.
Code: Select all
start:
screen 128
goto loop
loop:
for i=1 to 5
for j=1 to 5
color rnd(1)*15
rect i*25,j*25,i+15, j+15
next j
next i
goto loop
- Sat Dec 09, 2023 1:28 am
- Forum: Programming
- Topic: How to use the video registers in Assembly?
- Replies: 7
- Views: 13417
Re: How to use the video registers in Assembly?
I'm gonna make a macro for poking to the video memory, (named pvr). Can you please give me an example of poking to the vram? NOTE: I'm using DASM
- Fri Dec 08, 2023 6:37 pm
- Forum: Programming
- Topic: How to use the video registers in Assembly?
- Replies: 7
- Views: 13417
How to use the video registers in Assembly?
In X16 Basic, you can use VPoke to poke to the VERA registers, like this:
But in 6502 assembly, you use LDX and STA. How do we poke to the VERA in assembly?
Code: Select all
VPOKE 1,1
VPOKE 2,2
- Sun Sep 17, 2023 8:08 pm
- Forum: Programming
- Topic: How to set background color in X16 Basic?
- Replies: 1
- Views: 1026
How to set background color in X16 Basic?
You can set text color by using COLOR. How do I do background color?