Page 1 of 2
How good is PureBasic for making games??
Posted: Mon Jan 24, 2005 10:51 am
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
Posted: Mon Jan 24, 2005 10:53 am
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.
Posted: Mon Jan 24, 2005 11:14 am
by RedmoonX
that was good to hear.. what about 3d then
will it be good for making average 3d games??
RedmoonX

Posted: Mon Jan 24, 2005 12:30 pm
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

Posted: Mon Jan 24, 2005 12:37 pm
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..

Try my "Mad Mix Game Remake" and you can see what can you do with PB
http://remakeszone.com/juegos/descarga. ... &entorno=3
Bye!
Posted: Mon Jan 24, 2005 1:20 pm
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
i saw some network functions in the helpfile but has anyone maked any internet games??
RedmoonX
Posted: Mon Jan 24, 2005 2:27 pm
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.
Posted: Mon Jan 24, 2005 2:52 pm
by RedmoonX
good i have enough good thoughts of purebasic to begin use it myself
im making a little scrolling shooter at the moment
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]
Posted: Mon Jan 24, 2005 3:57 pm
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)
Posted: Mon Jan 24, 2005 4:46 pm
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
RedmoonX
Posted: Mon Jan 24, 2005 4:52 pm
by thefool
you cant do:
but you can do:
Posted: Mon Jan 24, 2005 5:02 pm
by DarkDragon

thefool I think that's an array.
Posted: Mon Jan 24, 2005 5:09 pm
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
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
Posted: Mon Jan 24, 2005 5:30 pm
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
Posted: Mon Jan 24, 2005 5:43 pm
by blueznl
check out my page for some very basic intro stuff