How good is PureBasic for making games??
How good is PureBasic for making games??
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
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
^^
-
-
-
- User
- Posts: 13
- Joined: Sat Jan 01, 2005 4:47 am
- Location: Cockeysville, MD
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
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!


http://remakeszone.com/juegos/descarga. ... &entorno=3
Bye!
PB 6.21 beta, PureVision User
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.
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
RedmoonX[/code]
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)
^^
-
-
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)
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
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
^^
-
-
you cant do:
but you can do:
Code: Select all
lasery(lasernum) = _y
Code: Select all
_y = lasery(lasernum)
-
- Addict
- Posts: 2344
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Variables are not global unless specified so in your example, you are saying: laserx(0)=_xRedmoonX 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
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
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
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
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... )
( The path to enlightenment and the PureBasic Survival Guide right here... )