Help with DATA graphics
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
Ok, Z!re talking about a Library but its a BAS file.
The Def. of Library is a collection of functions (or Subs) without no Main program...
This is good so all I have to do is link to one of my external BAS Libs and I'm all set cause most of my program is Subs...
No really 16MB!!! That's awsome...He he!!
And No I'm not even done my core! I got to do my seeker missles (still), enemies, collision routines, blowup routines, bosses, and txt file level loader routines...Then I Start making it a game....hehe....Then finally music/SFX....
*Mit catches something out of the corner of his eye*
Its..its...Horrible!!! Its inhuman!!! Its immoral!!! Its...Its...Z!re's avitar!!! *Lightning flashes and loud suspenseful music plays*
Ahhhh!!!! *Mit runs around in a circle like a chicken with its head cut off*
LOL
The Def. of Library is a collection of functions (or Subs) without no Main program...
This is good so all I have to do is link to one of my external BAS Libs and I'm all set cause most of my program is Subs...
No really 16MB!!! That's awsome...He he!!
And No I'm not even done my core! I got to do my seeker missles (still), enemies, collision routines, blowup routines, bosses, and txt file level loader routines...Then I Start making it a game....hehe....Then finally music/SFX....
*Mit catches something out of the corner of his eye*
Its..its...Horrible!!! Its inhuman!!! Its immoral!!! Its...Its...Z!re's avitar!!! *Lightning flashes and loud suspenseful music plays*
Ahhhh!!!! *Mit runs around in a circle like a chicken with its head cut off*
LOL
"But...It was so beutifully done"
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
Say, QB4.5 & 7.1 have a Lib maker, but when I make a Lib.. then try to INCLUDE it,. a bunch of yellow code come down (The type that comes up when you try to open a .EXE file in QB) and debugs thro it... all other libs don't do this, why mine??
Yeah, I commented on that new avatar, it '$INCLUDE: 'blood', heh heh,.
Yeah, I commented on that new avatar, it '$INCLUDE: 'blood', heh heh,.
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
(x.t.r.GRAPHICS)
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
Ummm no noit really, It was there as an example of the $include metacommand.Rattrapmax6 wrote: '$INCLUDE: "QB.BI" would also load my lib or something?? Or are you asking that?? heh heh
BTW...You put "QB.BI" ^ it should be 'QB.BI' , and yes I was wondering inorder to include a Library that you made if you use the $include metacommand.
"But...It was so beutifully done"
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
Yeah, but every time I INCLUDE my libs, it pulls all the jumbled text(the stuff you get when you use NotePad to open a .EXE) under it gives a sentax error... I used to get it with other libs, like QB.BI,.. but I'm having no luck with mine.. I'll keep trying and let you know..
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
(x.t.r.GRAPHICS)
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
- romassoldier
- Newbie
- Posts: 4
- Joined: Tue Aug 30, 2005 9:03 am
Re: Help with DATA graphics
I think this is the right code:RayBritton wrote:If you do:but i get a syntax error about the PSET(x, y), zCode: Select all
DATA 01,01,01,01 DATA 01,00,00,01 DATA 01,00,00,01 DATA 01,01,01,01 FOR x = 1 TO 4 FOR x = 1 TO 4 READ z PSET(x, y), z NEXT NEXT DIM box(4*4) GET (0, 0) - (4, 4), box
so i redid it but now i get a syntax about GET (0,0) - etc.
Code: Select all
CLS
SCREEN 13
FOR x = 1 TO 4
FOR y = 1 TO 4
READ z
PSET (x, y), z
NEXT
NEXT
DIM box(4, 4)
GET (1, 1)-(4, 4), box
DATA 01,01,01,01
DATA 01,00,00,01
DATA 01,00,00,01
DATA 01,01,01,01
Last edited by romassoldier on Sat Mar 10, 2007 3:21 pm, edited 1 time in total.
I came, I saw, and I didn't believe my eyes...
- The Awakened
- Veteran
- Posts: 144
- Joined: Sun Aug 07, 2005 1:51 am
- The Awakened
- Veteran
- Posts: 144
- Joined: Sun Aug 07, 2005 1:51 am
There's already a post going on right now about this. A good place to start is Chris Chadwick's PixelPlus256. There's a file called usersubs.bas, and it has a font routine that I'll probably utilize for my game.
"Sorry for beating you up with a baseball bat Julian, but I DID think that you were a samsquanch."
- {Nathan}
- Veteran
- Posts: 1169
- Joined: Thu Aug 19, 2004 6:08 pm
- Location: The wetlands of central Ohio, USA
- Contact:
When you say 0, 0 to 1, 1, You mean these cords (to QB)
0,0
1,0
0,1
1,1
All you want is 1, 1 (or something like that). So, to fix this:
to see an example of this, use the Selection tool in Paint.
0,0
1,0
0,1
1,1
All you want is 1, 1 (or something like that). So, to fix this:
Code: Select all
GET (1, 1)-(1, 1), Array