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 / Bomber man!

Author
Message
Big Man
20
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 17th Sep 2005 18:43
Hi
I was playing bomberman with a friend yesterday and it was such good fun I decided to try my hand at making one myself.
Ok so I have manageed to make a square pitch with a grid on it but when it comes to placing the blocks I get stuck.
I don't want to write out about 50 Position object x,x,x,x
when I think you can do it with a for next command but I am not sure How.
Can someone help?

Our aim is to keep the loo's clean, your aim can help.
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 17th Sep 2005 19:15 Edited at: 17th Sep 2005 19:17
Try my map-maker.
http://forum.thegamecreators.com/?m=forum_view&t=60028&b=10

To load it, use this snippet:


*not tested

Immunity and Annihalation makes Immunihalation...
Relativity
20
Years of Service
User Offline
Joined: 29th Mar 2005
Location: Position is relative.
Posted: 17th Sep 2005 19:16
You could use an array that descibes the position of the tile and then the state of the position like:

DIM TILE(X,Y)=STATE

X and Y being there position on the grid, and since I assume the grid is in regular intervals a simple mathematical operation can be used to determine the position of the block. The state can be used to describe what block is positioned at that point on the grid or if no block at all is positioned there, ie: STATE=0 means no block, STATE=1 means blue block, STATE=2 means red block.

The force will be with you. Always.
Big Man
20
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 17th Sep 2005 19:44
Thanks for your help guys

Our aim is to keep the loo's clean, your aim can help.
Big Man
20
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 17th Sep 2005 20:31
Um sven B I tryed your map maker and loved it but there is one prob.
I used the code shown to load it but I cannot see the map.
It does do 3d right not just bmp/2d?

Our aim is to keep the loo's clean, your aim can help.
Big Man
20
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 20th Sep 2005 16:44
Ok I have worked it out.
I have structured my code like this


I have done that six times round to fill my pitch with blocks.
Now my only problem is with collisions.
I have collisions with the outside walls of the pitch but how am I going to do the same for the blocks using the

and the

doesn't seem to work.
Any help would be good.

Our aim is to keep the loo's clean, your aim can help.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 20th Sep 2005 16:47
Only a minor point, but Step 1 is not required on the For..Next line unless the required step is not 1. (Leave out the Step and 1 is assumed).

TDK_Man

Big Man
20
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 20th Sep 2005 16:53
Ok I will change it.
TDK man do you have any ideas?

Our aim is to keep the loo's clean, your aim can help.
Big Man
20
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 20th Sep 2005 20:26
The question above is aimed at anybody who knows!

Our aim is to keep the loo's clean, your aim can help.

Login to post a reply

Server time is: 2025-05-22 13:08:40
Your offset time is: 2025-05-22 13:08:40