Dark Bit Factory & Gravity
PROGRAMMING => Freebasic => Topic started by: bikerboy on December 25, 2008
-
i have converted my image using bin2bas and in the code i put #include "imagename.bas"
but i don't know what else to put in the code to display the image
the image before conversion was a .png file 8bit 256 colors
Ps.i'm trying to use the image as a background
thanx guys :)
EDIT: i'll first try this ->http://www.dbfinteractive.com/forum/index.php/topic,3788.0.html
and if i have any questions i'll ask :)
EDIT: how do i convert "screen.bmp.raw" and "screen.bmp.pal" to .bas files?
i'm asking b/c in the example it has this -> #INCLUDE "screenpal.bas"
#INCLUDE "screenraw.bas" , i'm guessing with bin2bas , i'll go try if it works
-
@bikerboy:
On the first post you can find a d/l link with complete example... just take a closer look to the source ^^
http://www.dbfinteractive.com/forum/index.php/topic,3788.0.html (http://www.dbfinteractive.com/forum/index.php/topic,3788.0.html)
-
@bikerboy:
On the first post you can find a d/l link with complete example... just take a closer look to the source ^^
yes that's what i did but it's a bit confusing for someone that uses this the first time and has little knowledge of codes
and that's b/c in the example shockwave uses 2 images and a starfield
yes i know "it's easy,read some manuals, etc." but without practice reading is nothing.
-
Really, everything you need is inside that tutorial and only one source image is used, not two.
Have a slow read through it, read it again, then try it.
Then if you get an error, read it again, then again.
If you're still stuck, ask for help. The tutorial is step by step, my girlfriend follwed it and she has never coded.
-
i think i've found the problem, it's the buffer again
image loader uses it and the ASCII scroller uses it and there's a conflict
if i comment one of the two buffers i get an error if i leave them i get a duplicate error.
my girlfriend follwed it and she has never coded.
then you are a lucky man for having a smart girlfriend ;)
-
All you need to do is put your own program away, download the tutorial and follow it step by step until you understand it.
The tutorial is designed for use with tinyptc, don't bother trying to use it with Fbgfx, it's not made for that.
So the problem is that you're not following the tutorial at the moment.
The mists will clear for you I am sure but what I'm not going to do is re-write that tutorial again when it's fine and you haven't followed it properly. Sorry.
-
The tutorial is designed for use with tinyptc, don't bother trying to use it with Fbgfx, it's not made for that.
that covers everything :)
thanx for the answer man :)
you may close this post if you like, i've got a complete answer :)