|
Hello
Nov 2, 2006 11:46:51 GMT -5
Post by hartnell on Nov 2, 2006 11:46:51 GMT -5
Hello, I am Hartnell from Game Design HQ. ( www.gamedesignhq.com/wp/ ). Game Design HQ is a website dedicated to amateur game programming and supports game design software, game programming languages, and FreeBASIC. I've started carrying news about Brutus2D on the blog and reserved a place for it on the wiki. I am truely amazed by what has been done with Brutus2D so far. If you don't mind, I have a few questions : 1. To what extent is VBScript integrated into Brutus2D and how does this effect the Brutus2D license for use? 2. Is there native support collision detection? Thank you for your time. -hartnell
|
|
|
Hello
Nov 2, 2006 12:26:01 GMT -5
Post by OddChild on Nov 2, 2006 12:26:01 GMT -5
Hi welcome to the site. I think I am still the biggest newbie on the messageboard. I am not sure about, to what extent VBscript is supported. on the 2nd question, yes it does have native collision detection... It is VERY easy to detect. variable = graphics.GetCollisionPP(image1, image2)
Check out the new topsites that just got started, www.pewtersoftware.com/brutus/topsites/Make sure to look at all the wonderful examples on the messageboard. They show how powerful this language really is.
|
|
|
Hello
Nov 2, 2006 15:56:07 GMT -5
Post by hartnell on Nov 2, 2006 15:56:07 GMT -5
Thanks for the prompt reply. I have more questions about the collision functions, however, I will ask them in another thread.
|
|
|
Hello
Nov 3, 2006 12:11:56 GMT -5
Post by matthew on Nov 3, 2006 12:11:56 GMT -5
Hi Hartnell, I'm new here too. ;D
|
|
|
Hello
Nov 3, 2006 12:21:37 GMT -5
Post by hartnell on Nov 3, 2006 12:21:37 GMT -5
Nice to meet you, matthew.
-hartnell
|
|
|
Hello
Nov 3, 2006 20:26:57 GMT -5
Post by Guilect on Nov 3, 2006 20:26:57 GMT -5
Hello hartnell,
welcome to the forum. Thanks for the exposure on your site.
VBScript is used for all the standard BASIC keywords and functions in Brutus2D (for-next, if-then, etc.). From there I add game specific commands to handle graphics, sound, keyboard, etc.
VBScript is included with all recent Windows installations, Brutus2D does not have to install and redistribute any of its files. As far as I know there are no license issues for using VBScript, most ASP web pages use it without licensing issues.
There are several built-in collision detection routines: (from the help manual)
Collision Detection
GetCollision(image1, image2) -- this performs rectangular collision detection on the entire two images accounting for any scaling, returns true if collision, false if not
GetCollisionPP(image1, image2) -- this performs pixel perfect collision detection on the overlapping sectionsof the two images, returns true if collision, false if not
GetCollisionCustom(AX1, AY1, AX2, AY2, BX1, BY1, BX2, BY2) -- this performs rectangular collision detection on the two defined areas A and B, returns true if collision, false if not
GetCollisionCircle(image1, image2) -- this performs circular collision detection accounting for any scaling, returns true if collision, false if not
GetCollisionLine(image, x1, y1, x2, y2) -- detects if the image and line defined by x1,y1 and x2,y2 intersect; returns true if collision, false if not
GetCollisionLineLine(AX1, AY1, AX2, AY2, BX1, BY1, BX2, BY2) -- detects if the 2 lines defined intersect; returns true if collision, false if not
GetPixel(image, X1, Y1) -- returns the color as a long value at the X, Y pixel location on an Image (NOT the screen)
Cheers
|
|
|
Hello
Nov 3, 2006 20:36:27 GMT -5
Post by hartnell on Nov 3, 2006 20:36:27 GMT -5
|
|
|
Hello
Nov 3, 2006 21:06:40 GMT -5
Post by Guilect on Nov 3, 2006 21:06:40 GMT -5
Your link above got cut off a bit if you try to click on it. Try this one: www.gamedesignhq.com/wiki/Category:Brutus2DBy the way, hartnell, really super job documenting the Brutus2D commands so far. The Brutus2D help manual is a basic list of commands and their parameters. Your wiki takes the command and explains what and when to use them, as well as gives examples. Most useful for the beginner.
|
|
|
Hello
Nov 4, 2006 9:54:17 GMT -5
Post by matthew on Nov 4, 2006 9:54:17 GMT -5
Neither of the above links go directly to the Brutus2D page. Click here instead.
|
|
|
Hello
Nov 4, 2006 10:16:13 GMT -5
Post by hartnell on Nov 4, 2006 10:16:13 GMT -5
Thanks. -hartnell
|
|