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 / data arrays

Author
Message
Jimi
21
Years of Service
User Offline
Joined: 14th Sep 2003
Location:
Posted: 23rd Jul 2004 05:34
example:



is 30 the maximum?? I can't have any more than this.

Thanx, Jim

zenassem
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 23rd Jul 2004 06:14
I'm not sure if DBC has a limitation of elements per line, but you can just continut them on antoher line. eg.

data 1,1,1,1,1,2,1,2,1,2,1,1,2,1,2,1,1,1,1,0,1
data 1,2,3,4,1,3,4,3,3,3,3,3,3,3,4,4,4,4,4,4,1
data 3,4,5,6,7,8,9,0,1,1,1,1,1,1,1,1,1,1,1,1,1

if you need to reread sections it's best to have a label, this way you can use the restore <label> command or skip around.

level:
data 1,2,2,2,2,2,2,2,2,2
data 2,2,2,2,2,2,2,2,2,2
names:
data "bob","tim,"mike","joe"
data "susan","lisa","michelle"

level2:
data 1,2,2,4,5,6,6,7,8,1
data 5,3,4,1,2,3,4,5,6,1

`zen


Jimi
21
Years of Service
User Offline
Joined: 14th Sep 2003
Location:
Posted: 24th Jul 2004 02:54
Ok, thanks. It was actually your 2d isometric tile engine I was findling with lol.

Login to post a reply

Server time is: 2025-05-25 01:48:47
Your offset time is: 2025-05-25 01:48:47