Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Positioning a matrix and pointing the camera at it

Author
Message
gaz5021
19
Years of Service
User Offline
Joined: 18th Oct 2006
Location:
Posted: 18th Oct 2006 18:20
Hi all, I have been a reader of these forums for a little while, now I have the need to post. Sorry, this is quite a simple task, but I can't seem to get it right.

I have created a matrix and I want to use it as a (scrolling) background for a 2d sidescrolling game. Currently, it is 6400 tiles wide x 128 tiles high, broken up into 64x64 squares. Could somebody please show me a simple code snippet where the matrix is shown on the screen completely flat? It would be greatly appreciated.

I think I just need the co-ordinates to position the matrix, and the co-ordinates for the camera's position and where it is pointing.

I'll include the basic code I have so far.

gaz5021
19
Years of Service
User Offline
Joined: 18th Oct 2006
Location:
Posted: 19th Oct 2006 14:19
It's ok, I've got it sussed. Now I have the basic structure down, I can just add and improve tiles to make it look better.

Login to post a reply

Server time is: 2026-07-06 20:16:33
Your offset time is: 2026-07-06 20:16:33