Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scolling Background
#31
you could have arr(1 to 32767)... arr(1 to 32768)... thats just crazy talk Smile
Reply
#32
5000 different tiles?

You must be hoppin' mad. Smile
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#33
lol.. oh man.

could I load like 500?

and then unload them?
Reply
#34
What you need is an array MAP and a tile set. THe array map holds specific tile indexes for each location in the...map.

The tile set is ideally loaded in before the game begins and then is put on the screen. That is accomplished by using an external library's graphics functions or just using QB's GET and PUT, but apparently they don't clip as na_th_an said. Clipping is when a graphic is only partly visible on the screen (for instance, on the edges).

You can use PSET and a set of integers, but it will be slow as you have no doubt noticed, as PSET is the slowest pixel plotter ever.

Now, everyone is plotting pixels in the end, but what gives PUT and library graphics functions an edge is that they put a chunk of pixels at one time. Less data has to be transferred across the computer, theoretically.

Bad example:

Code:
FOR i% = 1 TO 1000
hi$ = "H" + "i"
PRINT hi$
NEXT i%

'versus:
hi$ = "Hi"
FOR i% = 1 TO 1000
PRINT hi$
NEXT i%
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#35
example makes sense..

Kinda like like put objects in a box, then bringing the box somewhere compared to bring each object at a time.

Ill try and look up some info on maps then.

as long as I get it figured out by saturday, I have to hand in my game proposal one monday.

And If I can't get this cleared up, Ill have to goto a game without a scrolling background.
Reply
#36
When I was working on beta 0.60 of WOS back in the "olden days", I had implemented a 6400 tile storage method...but not in conventional memory...it used XMS, and I did use all 6400 tile slots.

Anyways.

bonfire...I heavily HEAVILY suggest downloading some sourcecode and seeing how this all is done. You can find a great number of examples here on qbasicnews or over at qbnz.com. There are file archives everywhere that you can learn from. All you gotta do is look around and be willing to learn. Smile
I'd knock on wood, but my desk is particle board.
Reply
#37
Show this to your teacher:

http://rel.betterwebber.com/junk.php?id=16

And tell him its harder that he thinks. ;*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#38
thanks for all the help people Big Grin

learned a fair amount in the last few days


and think you for that link on the scrolling

the teacher isn't requiring it at all, but it is somthing I want to do. Hopefully I can figure out what is going on there..

If not, ah well.

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)