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 Professional Discussion / running games inside one exe?

Author
Message
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 8th Mar 2004 21:37
ok, the situation is

atm, im making a hybrid, instant messanger program with a game plaing alongside in the same window.

progress has gone well sofar however, if i limit my games to 1 it will get pretty boring and people will want more variation.

so, i want to know how can i make a scrypting system so i can read from a file eg: games/game1.txt

and every loop the code is parsed, so in the end i will have a startgame.txt and rungame.txt, for each game

startgame.txt will be the loading of objects sounds images and all sorts, and the rungame.txt will be the core code

-----------------------------------------------------

or is there i way i can load/run games without having to recompile the exe, i realise the include function is for functions only

so could i make separate .dba codes and the game is just a function will this method work?

----------------

also for the scripting system i dont think it would be feasble to make yrotate object 1,wrapvalue(sin(f)+rot#)

or anything like that

jwurmz
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location: Arizona, USA
Posted: 8th Mar 2004 21:45
huh? i think i know what you're trying to do, but could you be more specific/clear?
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 8th Mar 2004 21:55 Edited at: 8th Mar 2004 22:07
ok,

i have a gui running, and you can load games from it to play online, and the app is a chat proggie.

say i want more than 1 game to play, i would add a new folder to my /games dircectory

how will i be able to run that game in my chat proggie, as the 3d is in the top right of the screen, thats where the game will be

to get my app to run it, 1st it cant be an exe as its unpractical and will make a new window,
so it has to either be a .txt file that is parsed but there will be problems with that
or i can #include a file and run it as a function

is there a better method? which one do you think i should use?




[edit]

ok i got the #include one working

and i realise to parse bata from the coode to the app i will need to use an array

i think this will work ill experient more

[edit 2]

ok i think i basically answered my own question now :-P

but to meake this meaningfull

---------------------

would anyone be interested in making a minigame for my app?

the app will send the game all the multiplayer stuffs and anything else it needs to run,

if you`d like to contribute by making a game or anything, no advanced coding skills needed.

DrakeX
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location:
Posted: 9th Mar 2004 00:43
oh it's feasible, just difficult. you'd practically have to write a compiler to be able to turn the DBA into bytecode (which is just a script using numbers instead of the words). then you'd have to write an interpreter to run the bytecode.

uwdesign could help you with this.

athlon xp 2000+ | radeon 9500 pro 128mb | 512MB DDR | winXP pro | DBP 5.1b | B3D 1.85 | VC++ 6
predicted DBP P6 release date: March 28, 2004
DBP has made me bitter.

Login to post a reply

Server time is: 2025-06-05 20:08:35
Your offset time is: 2025-06-05 20:08:35