Qbasicnews.com
April 09, 2020, 06:16:57 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Boulders  (Read 2915 times)
andy
Senior Member
**
Posts: 175



WWW
« on: November 03, 2003, 10:40:42 AM »

Hi does anyone have a decent image of a boulder, I can use in my new game. Prefferably screen 13, 15 to 20 pixles radius. I tried drawing one, but i couldn't create any brownish colors using the out statement.
Logged

eminiscing about trapezoids in conjunction with stratospherical parabolas:

No questions asked.

www.stickskate.com
toad
Member
*
Posts: 56


Coding since the 90's


WWW
« Reply #1 on: November 03, 2003, 11:22:25 AM »

draw one in PP256 or something and load it that way. to make a nice little boulder, draw a lopsided circle and work with shades of gray to make it look like the light is coming from an angle.
Logged

toonski84
__/--\__
*****
Posts: 2567



« Reply #2 on: November 03, 2003, 10:54:19 PM »


It's the best 5 minutes of my boredom can get you.  Be happy Smiley
Logged

i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
pr0gger
I hold this place together
*****
Posts: 775


« Reply #3 on: November 04, 2003, 12:06:49 AM »

Quote from: "toonski84"

It's the best 5 minutes of my boredom can get you.  Be happy Smiley

How...... does one just whip up a picture of a boulder?  Shocked
Logged

size=9]"To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." -- Theodore Roosevelt[/size]
toonski84
__/--\__
*****
Posts: 2567



« Reply #4 on: November 04, 2003, 12:40:09 AM »

Is this a difficult question?  It's a friggin' rock, not the most complex of things to draw in the world. Wink
Logged

i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
barok
Na_th_an
*****
Posts: 1727


How about a tasty lead sandwich?


« Reply #5 on: November 04, 2003, 01:26:15 AM »

agreed.  i mean, it's just a rock.  you said 15 by 20, right?  why do you want that size tiles?
Logged

Jumping Jahoolipers!
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #6 on: November 04, 2003, 04:31:35 AM »

Yeah but that rock rox!!!!

"if you can't draw em, rip em!"

Trust me on this.
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
andy
Senior Member
**
Posts: 175



WWW
« Reply #7 on: November 04, 2003, 05:25:29 AM »

thanks TOONSKI84, but do you have the code to draw it.

I need the rocks about that size, for a sucky kind of animation, where there are several rocks falling down the screen.

What is PP256, and how would I draw a rock in it.
Logged

eminiscing about trapezoids in conjunction with stratospherical parabolas:

No questions asked.

www.stickskate.com
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #8 on: November 04, 2003, 05:29:07 AM »

Use the mouse.
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
toonski84
__/--\__
*****
Posts: 2567



« Reply #9 on: November 04, 2003, 10:19:38 AM »

wait, you want like CIRCLE/PAINT kind of stuff?  well, uh, I couldnt tell you, it's iffy.  You can use BSAVE and BLOAD, and then PUT that image on the screen, of course.
Logged

i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Neo
Na_th_an
*****
Posts: 2150



« Reply #10 on: November 04, 2003, 10:23:47 AM »

Quote from: "andy"
What is PP256, and how would I draw a rock in it.

It a very good sprite drawing utility, somewhat like Paint Shop Pro etc, but in DOS Smiley

How to draw a sprite with it? Erm... just as rel said, using the mouse! :lol:
Logged
andy
Senior Member
**
Posts: 175



WWW
« Reply #11 on: November 04, 2003, 10:30:52 AM »

Quote from: "toonski84"
wait, you want like CIRCLE/PAINT kind of stuff?  well, uh, I couldnt tell you, it's iffy.  You can use BSAVE and BLOAD, and then PUT that image on the screen, of course.


That would work, but I would prefer it in sprite format, I would get pp256, but I'm at school at the moment and I can't download anything. Plus I can't draw.
Logged

eminiscing about trapezoids in conjunction with stratospherical parabolas:

No questions asked.

www.stickskate.com
toonski84
__/--\__
*****
Posts: 2567



« Reply #12 on: November 04, 2003, 10:42:44 AM »

okay.

1) download degif6.bas and use it to display this normal-sized image:


2) use this code to GET it once it displays.
DIM array(200) AS INTEGER
GET (0, 0)-(14, 14), array

3) save the sprite like this:
DEF SEG = VARSEG(array(0))
BSAVE "boulder.bsv", VARPTR(array(0)), 229

3) BLOAD it like this:
DIM array(200)
DEF SEG = VARSEG(array(0))
BLOAD "boulder.bsv", VARPTR(array(0))

4) PUT it back on the screen like this:
PUT (x, y), boulder, PSET

anyway, that's the best solution using qb's standard graphics routines.  There's a world of great libraries out there but this should get you started.
Logged

i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!