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.

2D All the way! / How does it work ?

Author
Message
Mr_Slash
20
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: Sweden
Posted: 23rd Nov 2003 18:39
Hello!

I was thinking about to develop a strategy game, with an hexagonal
map (Grids) there you move your units inside. But i have never done
this before, so i was thinking, if some of you pros out here could
help me a bit. Then you are making grids, are you doing it then you
design the map or do you lay the grids over the map ?

and does some nice person know how to make units move around inside the grids ? ive been coding vb for seven years, never dark basic before so im completly new to this language.

And how does the arrays work in dark basic ? can you have mixed arrays ? or are they defined ?

Thanks for all help i can get!

Mr.Slash

Ps. Is here any coders from sweden maybe ?

-
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 23rd Nov 2003 19:48
first question is are you using DarkBASIC or DarkBASIC Professional?
as they work differently... comming from a VB background will help you to understand the language.

I'd suggest running through the tutorials just to get used to the language setup, you should be able to get at home with it.
can't help you with the grid system though, i think Van or RobU (the pirate dude) are your best bet as they've worked with them a bit.


To Survive You Must Evolve... This Time Van Will Not Escape His Fate!
900mhz | 256mb | FX5200Ti 52.16 | Dx9 | WXP-Pro
CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 23rd Nov 2003 20:00
a hexagon grid is simple, if you can do a square grid. All you have to do is stagger every other row. basiclly the same as isometric grids.

CTP

Lifes short, try to enjoy it and not take it to seriously!
Mr_Slash
20
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: Sweden
Posted: 24th Nov 2003 00:19
Thanks for the information.
I know how to draw a hexgonal grid, but i dont understand
how you put images, that you can move in all directions
and what kind of array shall i use ? multi dimension or static ?
and can you please show me in source so should i be grateful.

in vb you can write

dim map_grid(100,100) there you have an array that can store 10000 entries, and it could be integers and strings mixed, but in dark basic it seems not to be possible but i would be most happy if you could give me some source code that i can have a look on!

Cheers!

Mr.slash


-
las6
21
Years of Service
User Offline
Joined: 2nd Sep 2002
Location: Finland
Posted: 24th Nov 2003 12:05
you might be interested in this:
http://www.dannywartnaby.co.uk/rgt/index.php?board=8;action=display;threadid=474

[edit] Agh! attachment was deleted. I'll try posting those back the later ... when I get home.

Keyboard not detected. Press F1 to continue.
las6
21
Years of Service
User Offline
Joined: 2nd Sep 2002
Location: Finland
Posted: 24th Nov 2003 12:09
If you are using DarkBasicpro, you can use Types to store multiple types of data into one array.
If you are using "classic" (DarkBasic), you must use separate arrays.

Keyboard not detected. Press F1 to continue.

Login to post a reply

Server time is: 2024-05-08 18:41:20
Your offset time is: 2024-05-08 18:41:20