hmm...I guess he tried out animated spritescrzyrbl wrote:kevin's done it again!
xLIB Examples
Moderator: tr1p1ea
- dysfunction
- Calc Master
- Posts: 1454
- Joined: Wed 22 Dec, 2004 3:07 am
- Location: Through the Aura
- Jim e
- Calc King
- Posts: 2457
- Joined: Sun 26 Dec, 2004 5:27 am
- Location: SXIOPO = Infinite lives for both players
- Contact:
Basicly(hehe) this creates a random map(8,1) on the fly and after scrolling 8pixels fills in the missing colomn. If a large map is randomized before hand it's even faster, but predictable.
On the fly:
pre-randomizing
Of course in practical use you could make a neat asteroids game or have an overhead map scroll video.
On the fly:
Code: Select all
AxesOff
real(0
For(X,8,15
For(Y,0,7
Pxl-On(Y,X
End
End
StorePic 0
real(0
{8,1}->dim([A]
While 1
2rand->[A](1,1
2rand->[A](2,1
real(4,2,2,1
2rand->[A](3,1
2rand->[A](4,1
real(4,2,2,1
2rand->[A](5,1
2rand->[A](6,1
real(4,2,2,1
2rand->[A](7,1
2rand->[A](8,1
real(4,2,2,0
real(2,0,0,0,1,8,11,12,0,8,0,0,1
End
Code: Select all
AxesOff
real(0
For(X,8,15
For(Y,0,7
Pxl-On(Y,X
End
End
StorePic 0
real(0
abs(randM(8,30)).2->[A]
While 1
For(A,0,18
real(4,2,2,1
real(4,2,2,1
real(4,2,2,1
real(4,2,2,0
real(2,0,A,0,30,8,11,12,0,8,0,0,1
End
End
- Madskillz
- Calc Wizard
- Posts: 745
- Joined: Fri 17 Dec, 2004 10:22 pm
- Location: Wandering around in the Jungle...
- Contact:
Wow Jim awesome...you too tr1p! Does this mean I will go back to BASIC probably not, but it does at least ensure a bright future for our little BASIC developers...
The Revolution is here...
crzybl is making a Zelda game with xLib, asked for help with scrolling, so I made some programs, and posted them at his Omnimaga forum (link)... But I figured I might as well show them here as well... The scrolling idea is very similar to Jim e's...
Ok, here's what I've done with Zelda style scrolling...
This one has six programs, is faster (can't tell much of a difference in the scree shot, but on calc you can), and is 33 bytes larger (not a whole lot):
This one has three programs, is slower (can't tell much of a difference in the scree shot, but on calc you can), and is 33 bytes smaller (not a whole lot):
And here are the files (one is .rar compressed, one is .zip compressed, both have all files):
Click which one you want on the page...
Ok, here's what I've done with Zelda style scrolling...
This one has six programs, is faster (can't tell much of a difference in the scree shot, but on calc you can), and is 33 bytes larger (not a whole lot):
This one has three programs, is slower (can't tell much of a difference in the scree shot, but on calc you can), and is 33 bytes smaller (not a whole lot):
And here are the files (one is .rar compressed, one is .zip compressed, both have all files):
Click which one you want on the page...
Shaun
- dysfunction
- Calc Master
- Posts: 1454
- Joined: Wed 22 Dec, 2004 3:07 am
- Location: Through the Aura