|
Post by drfloyd on Jun 8, 2019 2:25:38 GMT -6
Hello
I will finish my COSMOS game for christmas, but start in the same time a little prototype of COSMOS II with RCBASIC.
As i said, there are lot and lot of lines in my game... COSMOS ON BLITZ is 30 000 lines on 1 file... with sometimes 3 or 4 instructions per line !
It will be unreadable in RC...
So is it possible tor separate my game in several files with RC ? With a main and include others ? If yes, how ?
|
|
|
Post by tbird on Jun 8, 2019 7:00:59 GMT -6
Yes you can!
Include "support.bas" Include "myLib.lib"
Just make sure the file is in the same directory, or you would have to supply the path also.
That's it
|
|
|
Post by drfloyd on Jun 8, 2019 7:43:39 GMT -6
ok, i put include "systeme.bas" in the top on my program
and create a file systeme.bas
when a compile the main .bas I have an error msg :
"SYSTEME was not found in the scope : main
|
|
|
Post by drfloyd on Jun 8, 2019 7:50:20 GMT -6
oh sorry it works now, i move the include(s) at the bottom just before the main loop
When i will create a "stand alone", all will be compiled on the same file ?
|
|
|
Post by tbird on Jun 8, 2019 9:45:00 GMT -6
Yes you bet. It will be all included in your 1 *.cbc file
|
|
|
Post by drfloyd on Jun 8, 2019 9:55:46 GMT -6
it's great,
For now my favourite for my next game in 2020 is RCBASIC
SDLBasic : seems more abandonware (and opensource code) NAALAA : still problems with the IDE, it's a shame FREEBASIC is fucking (is it correct english ?) APP GAME KIT is mega fucking OXYGEN... no real doc for SDL library & anyway this library seems limited QB64 is strange LOVE 2D... strange mix between basic and Lua
but there is a new (french) challenger this summer : AMOS 2 !
|
|
|
Post by tbird on Jun 8, 2019 11:35:43 GMT -6
Well glad to hear, hope you have fun, and good luck.
|
|
|
Post by johnno56 on Jun 8, 2019 16:31:22 GMT -6
I still use sdlbasic a lot (primary language). RC quite a lot as well. Naalaa not so much. One thing Naalaa has that the others do not. A 3D map editor. Freebasic even less than Naalaa. Never used App Game Kit. Oxygen a couple of times but not any more. QB64 I still use quite a lot. Love2D is ok for simple 2D games but can get quite "crowded" if the game is complicated. But still fun to use and I use it a lot. If Amos 2 produces games better than Amos then you may be right...
J
|
|