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.

Newcomers DBPro Corner / Multiple movement (e.g. simulation game)

Author
Message
Mark999
20
Years of Service
User Offline
Joined: 21st Mar 2004
Location:
Posted: 21st Mar 2004 19:11
Is it possible to write simulation games (e.g like Sim City) in DarkBasic?

If say I wanted people and cars to appear as the city grows would code like this work ok?

do
gosub movepeople
gosub movecars
gosub growbuildings
loop

I would have thought all car movement and buidings would stop whilst people are being processed etc.

Can anyone help or point me to some cose that may help?

Many thanks
Shadow
21
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 21st Mar 2004 21:57
You can write pretty much any kind of game you want. I'm afraid I can't help you much, as I don't really understand what your problem is.
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 23rd Mar 2004 17:03
Mark999, the answer is yes. Use the SYNC ON and SYNC commands to control when you program updates the screen that way you can perform many subroutines, but until you execute a SYNC command the user does not see the results. The illusion is that everything is happening at the same time.
--
TAZ

Login to post a reply

Server time is: 2024-09-22 03:06:31
Your offset time is: 2024-09-22 03:06:31