Lurker with some questions...

Advanced game related topics
bstripp
New User
New User
Posts: 2
Joined: Fri Oct 17, 2003 3:27 pm

Lurker with some questions...

Post by bstripp »

Hi, I have been a long time coder in Blitz Basic, but have kept an eye on Pure Basic and love a lot of the functions and libraries that are available.

What I was wondering is if anyone who has coded in both PB and BB could tell me if making the conversion to PB would work well for 2D games. Even better would be some strength and weakness comparisons.

Thanks, if this is flame topic, just delete my post, but I'd love some objective info before making a purchase.

Edit: Oh other questions.
(1) Does PB have clasic objects that you can attach function and the like too?
(2) Custom types?
(3) Collision for its 3D sprites?
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

(1) Does PB have clasic objects that you can attach function and the like too?

Don't really know what you mean there..

(2) Custom types?

Yes.

(3) Collision for its 3D sprites?

I'm not sure if SpriteCollision() works with 3D sprites or not.. Someone else needs to poke in here :-)
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
bstripp
New User
New User
Posts: 2
Joined: Fri Oct 17, 2003 3:27 pm

Post by bstripp »

Karbon wrote:(1) Does PB have clasic objects that you can attach function and the like too?

Don't really know what you mean there..
Something like this:

Code: Select all

class player
  dim xpos
  dim ypos

  function moveplayer(dx,dy)
    drawsprite(xpos + dx, ypos + dy)
  end function
end class

player.xpos = 5
player.ypos = 7

player.moveplayer(3,-4)
Does that make it a bit clearer?

Also how is the speed of the 2D library?
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

You mean interfaces ( win pb3.8 )
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

PureBasic is **not** object oriented (read the feature requests section for this flame war!).. The new "interface" stuff added in 3.8 I'm not really sure about so I can't say - it's probably not exactly what you want but it might get you close..
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Post Reply