purebasic vs. GLbasic

Advanced game related topics
sampb
User
User
Posts: 51
Joined: Tue Feb 12, 2008 8:08 am

purebasic vs. GLbasic

Post by sampb »

Hi all,

What is the advantages using purebasic to write games, rather than GLbasic?

Thanks in advance
:)
Irene
Enthusiast
Enthusiast
Posts: 461
Joined: Thu Oct 04, 2007 12:41 pm

Re: purebasic vs. GLbasic

Post by Irene »

sampb wrote:Hi all,

What is the advantages using purebasic to write games, rather than GLbasic?

Thanks in advance
:)
PureBasic is designed more for application development, but can be used for game development too. GLBasic on the other hand is designed for creating games from basic to complex subjects and GLBasic has even support for GP2X handhelds and PocketPCs (Windows CE) making it actually a more preferable choice for making games. GLBasic has by no doubt much better 3D functionality and integration than PureBasic, but this can be overcome by using another 3D engine than OGRE with PureBasic (for example dreamotion3d). Unlike PureBasic, GLBasic supports cross-compiling and produces Universal Binaries for Mac OS X.

I have used/tested GLBasic and it was really fun to code with it, especially with the perfect compatibility for Blender models. I tend to stick with PureBasic though, just because it has a more flexible and powerful code base and it can produce really small executables.

All this is only theory though, you need to try both and decide for yourself. In the end both compilers do the same thing, the other just has features which the other doesn't, etc...

Cheers,
Irene
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Dang Irene... knocked that one out of the park!!! 8)
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

It's a while since I tried GLBasic.
As a supplement to what has already been said:
- GLBasic has a great 3d graphics library with tons of ready-made commands, PB hasn't
- PB is a real compiler that compiles to true machine code and comes close to C in speed. If it can be done in C, it can be done in PB. GLBasic was just an interpreter the last time I checked.
Irene
Enthusiast
Enthusiast
Posts: 461
Joined: Thu Oct 04, 2007 12:41 pm

Post by Irene »

Trond wrote:It's a while since I tried GLBasic.
As a supplement to what has already been said:
- GLBasic has a great 3d graphics library with tons of ready-made commands, PB hasn't
- PB is a real compiler that compiles to true machine code and comes close to C in speed. If it can be done in C, it can be done in PB. GLBasic was just an interpreter the last time I checked.
GLBasic is a real compiler and not an interpreter. This knocks out your last sentence ^.^
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

I took a look at it, and GLBasic actually isn't a "real" compiler, it just converts from basic to C++ and lets GCC do the rest. Compiling and linking a sample project took 23 seconds! Compare that to PB!
BriceManuel
Enthusiast
Enthusiast
Posts: 195
Joined: Thu Nov 29, 2007 8:23 am

Post by BriceManuel »

Yeppers, GLBasic is just a C++ wrapper. You can even use C++ inline in your BASIC code.

Compiling anything remotely large in GLBasic is extremely slow.

That said, GLBasic is great for prototyping, which is what I use it for.
Irene
Enthusiast
Enthusiast
Posts: 461
Joined: Thu Oct 04, 2007 12:41 pm

Post by Irene »

Trond wrote:I took a look at it, and GLBasic actually isn't a "real" compiler, it just converts from basic to C++ and lets GCC do the rest. Compiling and linking a sample project took 23 seconds! Compare that to PB!
When I say real I do not really mean real real. More like just real, so it is not a real real compiler but more of a real compiler. It should not be necessary to note this, but when I say real real I mean real, but when I say real I do not mean real real, got it? ^.^
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Say "real" one more time and I strangle you... Image
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Irene
Enthusiast
Enthusiast
Posts: 461
Joined: Thu Oct 04, 2007 12:41 pm

Post by Irene »

Fluid Byte wrote:Say "real" one more time and I strangle you... Image
Really? ^.^
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

Good one, Irene! :D
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Gonzo Google Search of the Gay... no, I mean Day! wrote:On February 14, 1991 (Valentine's Day), defendant became intoxicated and argued with Irene about the business in the presence of two friends, Sally and Charles Maio. Defendant tried to strangle Irene, and Charles Maio had to pull defendant off of her. Later, when the Maios drove defendant home, defendant said, "I'm going to kill her [Irene]. I'm going to kill the business. I'm going to kill everything." Irene filed a petition complaining about the incident and obtained an injunction prohibiting harassment, which was an order from the court prohibiting defendant from having any contact with Irene and from going to her residence. A police assistant testified at trial that when she served defendant the injunction on February 27, 1991, defendant "called [Irene] a bitch."
No, I didn't alter the dates. Be very careful tomorrow, Irene!
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

PB wrote:Good one, Irene! :D
Awww, get real! Maybe ok, but not relicious.
sampb
User
User
Posts: 51
Joined: Tue Feb 12, 2008 8:08 am

Post by sampb »

Hi Irene, Rook Zimbabwe, Trond, BriceManuel, Fluid Byte, PB:

If you are going to create a commerial game, which option would you select:
1. purebasic + OGRE
2. purebasic + irrlicht wrapper beta
3. GLbasic

:)
matty47
User
User
Posts: 35
Joined: Fri Sep 26, 2003 10:21 pm

Post by matty47 »

I have purchased both Purebasic (several years ago) and GLbasic (last year). GLBasic is a much "simpler" language and on the 3D side it at least works in linux. Purebasic is probably more powerful but (since I am mainly interested in 3D) not suitable for coding ( for me) due to the lack of 3D in linux. Once the 3D works I think it would be the better of the two. BlitzMax is also cross platform and there are two versions of a 3D module along the lines of Blitz3D - therefore lots of models, code (that needs adapting) etc. In its favour it is more OOP than either of the others.
Still lost??
I am! :)
Matthew
Post Reply