Search found 52 matches

by Chained to Fate
May 04, 2011 20:33
Forum: Beginners
Topic: Get rid of DOS windows
Replies: 4
Views: 1420

Any chance we could sticky this? I am constantly searching for it.
by Chained to Fate
Feb 10, 2011 19:56
Forum: Beginners
Topic: PUT: Weird error
Replies: 9
Views: 2535

OH! So you are saying BLOAD the bmps, assign them to a pointer THEN loop them once and cut it up into more pointers, one for each tile, right? You're right, now that I am thinking of it, that makes a lot more sense. That way I have already done the work of looking up a portion of the image and exclu...
by Chained to Fate
Feb 09, 2011 18:39
Forum: Beginners
Topic: PUT: Weird error
Replies: 9
Views: 2535

@Rollie Bollocks I am loading entire pages of graphics into ptrs, and then only displaying the peices I need. Beacuse I am using pointers, that should help with any slowness issues. Not sure what you mean about preprocessing the images into arrays and then laying them out in FB.Image format? I have ...
by Chained to Fate
Feb 01, 2011 14:46
Forum: Beginners
Topic: PUT: Weird error
Replies: 9
Views: 2535

I realize there is a lot going on there, but the problem is the Blocking Terrain section. REM (4) Draw Blocking PUT (x*32,(y*32)-15), pBlocTile, (tileXLoc(Tile(x+screenX,y+screenY,4)), tileYLoc(Tile(x+screenX,y+screenY,4)))-STEP(32, 32), TRANS The Tile(x,y,z) array holds my map, z = 4 means it is th...
by Chained to Fate
Jan 29, 2011 3:27
Forum: Beginners
Topic: PUT: Weird error
Replies: 9
Views: 2535

Sure: REM Main draw loop FOR y = 0 TO 15 FOR x = 0 TO 20 REM (0) Draw Terrain 1 PUT (x*32,y*32), pTerrTile, (tileXLoc(Tile(x+screenX,y+screenY,0)), tileYLoc(Tile(x+screenX,y+screenY,0)))-STEP(32, 32), PSET REM (1) Draw Select liquid IF rTimer<= 16 THEN PUT (x*32,y*32), pLiqdTile, (tileXLoc(Tile(x+sc...
by Chained to Fate
Jan 28, 2011 23:57
Forum: Beginners
Topic: PUT: Weird error
Replies: 9
Views: 2535

This is what it is supposed to look like: [img] http://thelamebrain.files.wordpress.com/2011/01/screen1.jpg [/img] Here is the media I am using, the tree on the end. Notice how I had to take the frames out? [img] http://thelamebrain.files.wordpress.com/2011/01/screen2.jpg [/img] Here is the same med...
by Chained to Fate
Jan 27, 2011 20:43
Forum: Beginners
Topic: PUT: Weird error
Replies: 9
Views: 2535

PUT: Weird error

I am at work, so I do not have the code in front of me. Even if I did, its a bit of a mess with a lot of dependencies, so maybe it is better this way. :) I am using BLOAD'd images set to pointers. I then put a portion of the image to the screen to act as tiles. The tiles are layered, allowing me to ...
by Chained to Fate
Jan 25, 2011 19:22
Forum: Beginners
Topic: image size from an image file?
Replies: 4
Views: 1419

image size from an image file?

Is it possible to return the size of an image from an image file? I am loading several images using BLOAD and a Pointer, but I have to specify the size of the pointer. I would like to be able to have FB read the size of the image, size the pointer in response, and then BLOAD the file to my pointer. ...
by Chained to Fate
Sep 23, 2009 20:38
Forum: Beginners
Topic: Questions about Constants
Replies: 9
Views: 3794

Ok, so VAR Declares a variable whose type is implied from the initializer expression.

but how is it different to do

Code: Select all

VAR UP_KEY = 75 
rather than do

Code: Select all

DIM SHARED UP_KEY AS INTEGER
UP_KEY = 75
?
by Chained to Fate
Sep 23, 2009 19:46
Forum: Beginners
Topic: Questions about Constants
Replies: 9
Views: 3794

Questions about Constants

I am building a program framework to put all the peices of my masterpeice in, and I have a question. I want to load a txt file that holds my users preferences, then define the keys for the game based on those preferences. I currently have the keys defined as CONSTants, but if the player changes the ...
by Chained to Fate
Jun 09, 2009 17:50
Forum: Beginners
Topic: Get not working for some reason
Replies: 6
Views: 1355

Cool! I didn't know you could do that!
Can I use put to put tiles into a large image buffer too?
by Chained to Fate
Jun 09, 2009 17:24
Forum: Beginners
Topic: Get not working for some reason
Replies: 6
Views: 1355

Ok, what I am trying to accomplish is getting an image that is larger than the screen, and out-putting it to a file.

Anyone know how to do that, since Get and BSave obviously don't do it?
by Chained to Fate
Jun 09, 2009 15:38
Forum: Beginners
Topic: Get not working for some reason
Replies: 6
Views: 1355

Get not working for some reason

Here is my code: SCREEN 12 DIM AS INTEGER x, y DIM Pic AS ANY PTR Pic = ImageCreate(700,500) FOR x = 1 TO 700 STEP 50 FOR y = 1 TO 500 STEP 50 LINE (x,0)-(x,500),8 LINE (0,y)-(700,y),8 NEXT y NEXT x GET(0,0)-(700,500),Pic BSAVE "Grid.BMP", Pic CLS PUT(0,0),Pic SLEEP It is just a test I was...
by Chained to Fate
Apr 21, 2009 22:05
Forum: General
Topic: Distance Formula, is there a better way?
Replies: 4
Views: 1548

Kewl, no complaints then.
(I must have seen that in DarkBasic, not here.)
by Chained to Fate
Apr 21, 2009 21:46
Forum: General
Topic: Distance Formula, is there a better way?
Replies: 4
Views: 1548

Distance Formula, is there a better way?

I have heard that the traditional way to calculate the distance formula is inefficient due to the way BASIC uses square root.
Image

Is there a better way?