Search results
help with colored sprites in basic wanted
Score: 107.97 %,
Type: Forum topic , Comments: 16 comments
made out of zeros and ones, then with 2 sprites there're 4 combinations.. (0 0, 0 1, 1 0, 1 1) .. ... colorsprite multi colored sprites (per line though)
100 SCREEN5,1:COLOR15,0,0
110 FORX=0TO15:LINE(X*16,40)-STEP(16,120),15-X,BF:NEXT
120 B$=""
130 FORI=1TO8:READA$:B$=B$+CHR$(VAL("&B+A$)):NEXT
140 ...
incedibly simple assembly problems
Score: 107.9 %,
Type: Forum topic , Comments: 10 comments
boh...
ld a,0 vs. xor a ;) boh...
ld a,0 vs. xor a
or a/and a instead of cp 0 or a/and a instead of cp 0
idd, those two came before OUTI.... I can't believe I forgot idd, ...
out of memory problems working in basic
Score: 108.02 %,
Type: Forum topic , Comments: 23 comments
the ammount of ram used ( use fre(0) btw: a way to minimise the ammount of ram used ( use fre(0 ... line
- NO SPACES
- TINY varnames
- maxfiles = 0
its all about keeping the sources as small ... (like V(0) to V(31) or so) and array strings (F$(0);F$(1) are special to NBASIC, but F$(2) to F$(~) can ...
software sprites examples
Score: 108.01 %,
Type: Forum topic , Comments: 18 comments
copy(50,50)-(60,70),1 to (x,y),0
110 d=stick(0)
120 if d=1 then y=y-1
130 if d=2 then y=y-1:x=x+1
..
..
.
.
190 if d=8 ... background you may have. Try something like this instead:
10 SCREEN 5
20 SET PAGE 0,1:BLOAD "BACKGRND.SC5",S: COLOR=RESTORE
30 SET PAGE 1,0:COPY (0,0)-(255,211),1 TO (0,0),0
40 SET PAGE 0 ...
color+restore problems
Score: 108.06 %,
Type: Forum topic , Comments: 25 comments
into a red color spectrum. resulting into this:
DarQ
fori=0to7 : forj=0to31 : x=vpeek(&h7680+j)-17 : x=x+(xand&h88)/8 : vpoke&h7680+j,x : nextj : ... is faster ..
if in basic:
DATA 0,0,7, 1,0,6, 2,0,5, 3,0,4, 4,0,3, 5,0,2, 6,0,1, 7,0,0
Read ...
.bas file combined with .bin file
Score: 107.97 %,
Type: Forum topic , Comments: 10 comments
fadeout could be at #c000
fadein could be at #c010
defusr(0)=&hc000:a=usr(0) to fadeout.. ...
fori=0to7:forj=0to31:x=vpeek(&h7680+j)-17:x=x+(xand&h88)/8:vpoke&h7680+j,x:nextj:color=restore:nexti:cls
dont forget _turboon:<code>:_turbooff or it'll be very slow
oh, using more ... defusr(0)=&hc000
40 a=usr(0)
is this the way to combine basic and assembly....
or to be more precies, ...
more basic to bin
Score: 108.1 %,
Type: Forum topic , Comments: 31 comments
Hola !
I am looking for a way to make a .bin file which reads the d=stick(0) and moves
the sprite using basic.
something like this:
10 d=stick(0)
20 ifd=1theny=y-1 etc......
30 ... (this is the above programm)
6 defusr0=&hc000
10 screen 5
20 sprite$(1)=chr$( bla bla bla ) ...
nplayer in basic
Score: 108.09 %,
Type: Forum topic , Comments: 3 comments
e.g. for passing files to NBASIC
40 PRINT "Loading replayer..."
50 P(0)=0: E=USR(71) ... F$(0)="song.mbm": E=USR(31) 'Open song file, leaves file id in P(0)
80 P(2)=6: P(3)=0: P(4)=&H4000: E=USR(33) 'Read 16384 bytes from file P(0) to segment 6, address 0
90 E=USR(32) 'Close song file, ...
background scrolling
Score: 108.01 %,
Type: Forum topic , Comments: 11 comments
I read somebody talking about background scrolling, but cannot seem to find it anymore.
I would like to experiment much more techniques of background scrolling, because I have had to limit the size of the scrolling background in my game due to speed ...
Mayor speed problems Emulator v.s. Msx
Score: 108.21 %,
Type: Forum topic , Comments: 8 comments
Help !!!
I have been working on a spacemanbow clone in basic for a while now.
So far, everything was perfect, speed was fast (nbasic), music was there.
However I have been working on emulators only (Nlmsx and RuMsx)
Having compared other ...
