Page 1 of 1

Lurker with some questions...

Posted: Fri Oct 17, 2003 3:30 pm
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?

Posted: Sat Oct 18, 2003 2:24 am
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 :-)

Posted: Sat Oct 18, 2003 7:36 pm
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?

Posted: Sat Oct 18, 2003 8:02 pm
by GPI
You mean interfaces ( win pb3.8 )

Posted: Sat Oct 18, 2003 10:46 pm
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..