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.

AppGameKit Classic Chat / Just out of curiousity

Author
Message
Deion
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United States
Posted: 5th Sep 2011 05:32
just out of curiousity is there way to implement the main thread instead of having things run line to line from top to bottom of the agc file example



function init() or main()


endfunction


or something like that.

Cheers,
Deion G.
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 6th Sep 2011 03:48
BASIC relies on a sequential script of instructions. The closest you will get to threading is a series of tight self-contained functions, such as:

do
ship()
enemies()
bullets()
gamelogic()
Sync()
loop

That said, it's not very close to threading at all, but at least you know where you are at every step

I drink tea, and in my spare time I write software.

Login to post a reply

Server time is: 2024-04-20 03:11:51
Your offset time is: 2024-04-20 03:11:51