How good is PureBasic for making games??

Just starting out? Need help? Post your questions and find answers here.
RedmoonX
User
User
Posts: 26
Joined: Mon Jan 17, 2005 9:54 am
Location: Sweden
Contact:

How good is PureBasic for making games??

Post by RedmoonX »

How good is PureBasic for making games??

i need a good compiler to make games
is pure basic fast and good enoigh for making 2d games and little 3d with
alpha effects and blending

RedmoonX
^^
-
Forest Dreams
User
User
Posts: 13
Joined: Sat Jan 01, 2005 4:47 am
Location: Cockeysville, MD

Post by Forest Dreams »

PB is excellent for 2D games! Very fast and super compact EXEs. It also has some 2D features that are very useful, that all of the competition lacks.
RedmoonX
User
User
Posts: 26
Joined: Mon Jan 17, 2005 9:54 am
Location: Sweden
Contact:

Post by RedmoonX »

that was good to hear.. what about 3d then

will it be good for making average 3d games??


RedmoonX :)
^^
-
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Currently, PB 3D support is not complete enough to do cool 3D games, so better user another tool (Blitz 3D ?) to program such games. On other side, the PureBasic 3D library will be updated in the next month, but don't expect many new functions then, it will just use the lastest version of the OGRE engine.. More will come later :)
Fred - AlphaSND
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Post by zikitrake »

PB is excellent for 2D games and... if you combinate PB 2D Power with Danilo's lib (PureTools), you can make easly very good games..

:lol: Try my "Mad Mix Game Remake" and you can see what can you do with PB :lol:
http://remakeszone.com/juegos/descarga. ... &entorno=3

Bye!
PB 6.21 beta, PureVision User
RedmoonX
User
User
Posts: 26
Joined: Mon Jan 17, 2005 9:54 am
Location: Sweden
Contact:

Post by RedmoonX »

gr8 then... i maybe use purebasic for my games than

what can i compare purebasic to
i only have demo at the moment so i cant really test

but what program is most equal to purebasic

:D

i saw some network functions in the helpfile but has anyone maked any internet games?? :o

RedmoonX
^^
-
MadMax
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Oct 06, 2003 11:56 am

Post by MadMax »

PB is excellent for making 2D games, it also has 3Dsprites than can be very easily combined with 2D ones. Purebasic's Linked Lists are amazing and very useful when making games. It also has structures. I also own Blitz3D (realy only use the 2D side of it) it's also a very good product. Both are very capable of making good games, but if I were forced to just use one I would have to choose PureBasic.
RedmoonX
User
User
Posts: 26
Joined: Mon Jan 17, 2005 9:54 am
Location: Sweden
Contact:

Post by RedmoonX »

good i have enough good thoughts of purebasic to begin use it myself

im making a little scrolling shooter at the moment :D
it works fine so far

i still really liked to know about the internet possiblity

IMPORTANT
i have a qeastion

how can i make a script memory to execute some code with only a call
like

Code: Select all

; this is no real function
startscript myscript(arguments1.2.3)
  ; action 1
  ; action 2
  ; action 3
  ; action 4
  ..
scriptreturn
endscript

; and then call it like this
myscript(argument0.1.2)
RedmoonX[/code]
^^
-
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Procedures!

Code: Select all

procedure RedMoon(arguments)
 ;Actions etc
 ;Even more actions ;)
 ;You dont need procedurereturn but it can be there if you want to
Procedurereturn VALUE
EndProcedure

;Now, you call it like a normal command:
RedMoon(argument)
RedmoonX
User
User
Posts: 26
Joined: Mon Jan 17, 2005 9:54 am
Location: Sweden
Contact:

Post by RedmoonX »

i tryed procedures but the actions didnt executed example

procedure create_laser(_x,_y)
laserx(lasernum) = _x
lasery(lasernum) = _y
lasernum + 1
endprocedure

it didnt work so i used "gosub" instead
but then i cant use arguments
ill guess ill make another try

im proud i succed making a scrolling shooter the second day i used PureBasic
:D

RedmoonX
^^
-
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

you cant do:

Code: Select all

lasery(lasernum) = _y 
but you can do:

Code: Select all

_y = lasery(lasernum)
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

;) thefool I think that's an array.
bye,
Daniel
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1282
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

RedmoonX wrote:i tryed procedures but the actions didnt executed example

procedure create_laser(_x,_y)
laserx(lasernum) = _x
lasery(lasernum) = _y
lasernum + 1
endprocedure

it didnt work so i used "gosub" instead
but then i cant use arguments
ill guess ill make another try

im proud i succed making a scrolling shooter the second day i used PureBasic
:D

RedmoonX
Variables are not global unless specified so in your example, you are saying: laserx(0)=_x
So unless you state: Global lasernum (at the start of your program) or use Shared lasernum (at the start of your procedure), lasernum will always be 0

It would be better to also pass lasernum to your procedure...

Code: Select all

Procedure create_laser(_x,_y,lasernum)
  laserx(lasernum) = _x
  lasery(lasernum) = _y
EndProcedure

BTW: a few other games made in PureBasic (quite a few years back)
www.pureproject.net
Image Image
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

whoops very sory i didnt notice that.

btw: arrays are always global by themself..

also have a look here for PB programs and games & more:
http://purearea.net/pb/english/index.htm
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

check out my page for some very basic intro stuff
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply