amiga.org
     
iconAll times are GMT -6. The time now is 11:20 PM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Amiga computer related discussion » Amiga Gaming » blitz basic question

Amiga Gaming This forum is dedicated to games software and solutions for the Commodore Amiga computer. Need help blowing up pixels? Know of the next gaming revolution? Talk about it here.

Reply
 
Thread Tools Display Modes
Old 05-26-2010, 01:22 PM   #1
ElPolloDiabl
Defender of the Faith
Points: 11,976, Level: 71 Points: 11,976, Level: 71 Points: 11,976, Level: 71
Activity: 5% Activity: 5% Activity: 5%
 
ElPolloDiabl's Avatar
 
Join Date: May 2009
Location: Sydney Australia
Posts: 1,051
Default blitz basic question

What is the blitz basic version of graphics get and put?
I written the pixels on the screen, now I want to copy them and tile them.

thanks in advance
__________________
Go Go Gadget Signature!

Last edited by ElPolloDiabl; 05-26-2010 at 06:11 PM..
ElPolloDiabl is offline   Reply With Quote
Old 05-26-2010, 06:09 PM   #2
ElPolloDiabl
Defender of the Faith
Points: 11,976, Level: 71 Points: 11,976, Level: 71 Points: 11,976, Level: 71
Activity: 5% Activity: 5% Activity: 5%
 
ElPolloDiabl's Avatar
 
Join Date: May 2009
Location: Sydney Australia
Posts: 1,051
Default Re: blitz basic question

I searched around and can't find an answer. I'm trying to figure it out using createimage.
__________________
Go Go Gadget Signature!
ElPolloDiabl is offline   Reply With Quote
Old 05-27-2010, 01:57 AM   #3
ElPolloDiabl
Defender of the Faith
Points: 11,976, Level: 71 Points: 11,976, Level: 71 Points: 11,976, Level: 71
Activity: 5% Activity: 5% Activity: 5%
 
ElPolloDiabl's Avatar
 
Join Date: May 2009
Location: Sydney Australia
Posts: 1,051
Default Re: blitz basic question

__________________
Go Go Gadget Signature!
ElPolloDiabl is offline   Reply With Quote
Old 05-27-2010, 03:36 AM   #4
JJ
Lifetime Member
Points: 19,023, Level: 87 Points: 19,023, Level: 87 Points: 19,023, Level: 87
Activity: 7% Activity: 7% Activity: 7%
 
JJ's Avatar
 
Join Date: Feb 2002
Location: Wales, UK
Posts: 3,584
Default Re: blitz basic question

You mean you want to copy a portion of the screen you have already created and then tile it ?

Which version of blitz is this and on what computer ?
__________________
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2

Registered MorphsOS 2.7 user
JJ is offline   Reply With Quote
Old 05-27-2010, 03:54 AM   #5
ElPolloDiabl
Defender of the Faith
Points: 11,976, Level: 71 Points: 11,976, Level: 71 Points: 11,976, Level: 71
Activity: 5% Activity: 5% Activity: 5%
 
ElPolloDiabl's Avatar
 
Join Date: May 2009
Location: Sydney Australia
Posts: 1,051
Default Re: blitz basic question

Blitz3D on WindowsXP on a amd box.
__________________
Go Go Gadget Signature!
ElPolloDiabl is offline   Reply With Quote
Old 05-27-2010, 04:00 AM   #6
bloodline
Master Sock Abuser
Points: 37,111, Level: 100 Points: 37,111, Level: 100 Points: 37,111, Level: 100
Activity: 10% Activity: 10% Activity: 10%
 
bloodline's Avatar
 
Join Date: Mar 2002
Location: London, UK
Posts: 11,656
Blog Entries: 3
Default Re: blitz basic question

Quote:
Originally Posted by Fanscale View Post
Blitz3D on WindowsXP on a amd box.
The syntax between Blitz Basic (amiga) and Blitz3D is totally different... But the Blitz3D IDE has fantastic built in documentation, just read through the GFX functions.
__________________
My iPhone Game: Puny Humans -
http://itunes.apple.com/gb/app/puny-...362230281?mt=8
bloodline is offline   Reply With Quote
Old 05-27-2010, 05:17 AM   #7
Vairn
Beginner
Points: 2,530, Level: 30 Points: 2,530, Level: 30 Points: 2,530, Level: 30
Activity: 1% Activity: 1% Activity: 1%
 
Join Date: Jan 2008
Location: Melbourne, Aus
Posts: 25
Default Re: blitz basic question

readpixel, and writepixel, lets you read and write pixels from a screen

readpixelfast and writepixelfast, are the faster ones, but have no error checking, and need you to lock the screen buffer.

You can use createimage
if you create one, set it as the current buffer
draw what you want to it.
then you can paste it with drawimage.

It has been years since I have touched blitz3d, wrote an openGL engine in it, then ran away hehe.

I had so much fun with blitz+, and blitzMAX.
Vairn is offline   Reply With Quote
Old 05-27-2010, 06:33 AM   #8
ElPolloDiabl
Defender of the Faith
Points: 11,976, Level: 71 Points: 11,976, Level: 71 Points: 11,976, Level: 71
Activity: 5% Activity: 5% Activity: 5%
 
ElPolloDiabl's Avatar
 
Join Date: May 2009
Location: Sydney Australia
Posts: 1,051
Default Re: blitz basic question

copypixel works it'll have to do. Got it with Createimage too....

gfx1 = CreateImage(13,13)
SetBuffer ImageBuffer(gfx1)
For x=1 To 13
For y=1To 13
Read Clr
If clr = 0 Then Color 0,200,0
If clr = 0 Then Plot x,y
If clr = 2 Then Color 0,150,0
If clr = 2 Then Plot x,y
Next
Next
SetBuffer BackBuffer()
TileImage gfx1,0,0
__________________
Go Go Gadget Signature!

Last edited by ElPolloDiabl; 05-27-2010 at 06:47 AM..
ElPolloDiabl is offline   Reply With Quote
Reply

Bookmarks

Tags
basic , blitz , question

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump