Recent Forum Posts
From categories:
page 1 of 212next »
u9u9 1219091048|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Movement

Hey. You need to initialize the graphics object too, before you use it:

graphics.initialize

You can optionally add parameters for the window size, and if it should run full-screen or not. Check the documentation for more info :)

by u9u9, 1219091048|%e %b %Y, %H:%M %Z|agohover
Re: Hm...
Anonymous (207.179.115.149) 1218929390|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Movement

Hi,
I tryed to make this movement code to work. Here is the code.

key.initialize 'Initalize keys, without keys we wouldn't be able to exit the game loop causing B2D to crash (save often, it sucks to forget this)

class ImageSprite
public x
public y
public image
public speed
function Move()
if Key.Pressed(vk_W) then  'Move up
y = y - speed
end if   
if Key.Pressed(vk_S) then  'Move down
y = y + speed
end if 
if Key.Pressed(vk_A) then  'Move left
x = x - speed
end if 
if Key.Pressed(vk_D) then  'Move right
x = x + speed
end if
end function
end class

dim Sprite 'Create a new variable named imageFile
Set Sprite = new ImageSprite
Sprite.speed = .5
Sprite.x = 200
Sprite.y = 200
Sprite.image = graphics.loadImage("test.bmp") 'We're settings the imageFile variable to the test.png image

dim font
font = graphics.CreateFont("system",15,true)

Do While not Key.Pressed(vk_escape) and not Key.Pressed(vk_windowx) 
'If you don't press escape and don't press the window's X button (top right) it will loop

Sprite.Move

graphics.SetXY Sprite.image , Sprite.x , Sprite.y 'Set its X and Y to the Sprite's x and y
graphics.Clear 'Anything between this and .Display is drawn 

graphics.setImage(Sprite.image) 'Draw sprite
graphics.SetText "(" & Sprite.x & " , " & Sprite.y & ")", 10, 10, font 'Output the X and Y
graphics.SetText "Use WASD to move the block", 10, 30, font 'Instructions 

graphics.Display 'Finish it up

loop 'Needed for the loop to work

key.terminate 'Destroy the key object
graphics.terminate 'Destroy the graphics object... We're done!

this is the error I get

Error 9
Error loading image file test.bmp
Error 9 in CreateFont: system
Key terminated
Graphics terminated

What is erroe 9???
Is there a place I can goto that have all the error listed???
renny

Re: Hm... by Anonymous (207.179.115.149), 1218929390|%e %b %Y, %H:%M %Z|agohover
Re: Cleanup
u9u9 1215415280|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Comments

VBScript or JScript

We need to keep vbscript as this is what we currently have, and this is what most people use. What i am thinking is that we can at some point start making the tutorials in jscript also with tabview for the differences, and that way slowly introduce jscript. Then we could look into how to do the documentation. I'm not sure if we should have two separate doc-trees or we should combine them.

Re: Cleanup by u9u9, 1215415280|%e %b %Y, %H:%M %Z|agohover
hartnellhartnell 1215399227|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Beginner's Guide

Noted.

— hartnell

by hartnellhartnell, 1215399227|%e %b %Y, %H:%M %Z|agohover
Re: Cleanup
hartnellhartnell 1215398452|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Comments

If there's so much to add, then we need to keep the page.

I don't think that either VBScript or JScript uses REM. :)

And this brings up the issue of separating core language docs (VBScript or JScript). This needs much discussion.

— Hartnell

Re: Cleanup by hartnellhartnell, 1215398452|%e %b %Y, %H:%M %Z|agohover
Re: Cleanup
u9u9 1215373537|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Comments

Short answer, yes.

how could it be included in a general syntax page?

I don't understand. But here's what i think: If we want to tell about commenting code, which is fine, it should tell

  • how to write comments in that particular language (E.g. ' or Rem or // etc.)
  • what to write and not to write
    • E.g. you don't write what the code does, i.e. explaining syntax, but rather semantic, concept etc. E.g. if x < 0 then x = 640 should be commented ' Wrap space-ship around the screen border and not something like ' set x to 640 if it is less then 0 as that is obvious to anyone who can read code.
  • description of self commenting code
    • Self commenting code is mostly about correct use of indentation, spacing, both vertical and horizontal, naming conventions (e.g. Hungarian notation, though i am absolutely not a fan, just an example) and stuff like that. Basically how much you can inform the reader of what the code does without actually writing any comments. Self explaining code.
Re: Cleanup by u9u9, 1215373537|%e %b %Y, %H:%M %Z|agohover
u9u9 1215372944|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Beginner's Guide

Note to hartnell. Focus more on graphics and less on console and text games :)

by u9u9, 1215372944|%e %b %Y, %H:%M %Z|agohover
hartnellhartnell 1215197227|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Easy Math With Brutus2D

Yup, it's one of those pages.

— Hartnell

by hartnellhartnell, 1215197227|%e %b %Y, %H:%M %Z|agohover
Cleanup
hartnellhartnell 1215196831|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Comments

Is a page needed for comments? While it would be easy to link to from the forum, how could it be included in a general syntax page?

— Hartnell

Cleanup by hartnellhartnell, 1215196831|%e %b %Y, %H:%M %Z|agohover
Just flagging..
hartnellhartnell 1215147802|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Beginner's Guide

I'm just flagging this page. It needs a lot of work done and I don't want to forget it.

— Hartnell

Just flagging.. by hartnellhartnell, 1215147802|%e %b %Y, %H:%M %Z|agohover
hartnellhartnell 1215134443|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Text Game Programming

Ok, I'll delete this page on July 05, fix the broken links created, and add the tutorial titles to comments to the tutorial page.

— Hartnell

by hartnellhartnell, 1215134443|%e %b %Y, %H:%M %Z|agohover
u9u9 1215123749|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Text Game Programming

I'm thinking this should somehow be integrated into our tutorial section. Right now it is just an overview of how what tutorials are of interest if you want to make text games. I mean basically everything boils down to tutorials, as is with many of the other pages as well.

I'll get back tomorrow or the day after that with some comments on the other pages. (I might be doing a looooong day at school tomorrow too).

by u9u9, 1215123749|%e %b %Y, %H:%M %Z|agohover
Awww man...
hartnellhartnell 1215084422|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Text Game Programming

I hate losing the page, but it is terribly crappy, and it's not likely to be worked on soon. This should be made into a group project.

edit : I'll add a section at the community portal.

— Hartnell

Awww man... by hartnellhartnell, 1215084422|%e %b %Y, %H:%M %Z|agohover
Math Portal?
hartnellhartnell 1215084324|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Math

I've been trying to make 'portals' where needed in the other wikis. We could use this page to link to all math functions and include a cheatsheet or something.

— Hartnell

Math Portal? by hartnellhartnell, 1215084324|%e %b %Y, %H:%M %Z|agohover
Heh.
hartnellhartnell 1215084201|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Files

Wow. What a crappy page. And I think I'm the one who created it. :) I'd flag this as stub.

— Hartnell

Heh. by hartnellhartnell, 1215084201|%e %b %Y, %H:%M %Z|agohover
This gave me hell... :)
hartnellhartnell 1215084085|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Color

I think this page is useful because the extra byte for alpha gave me hell when first learning B2D. :)

— Hartnell

This gave me hell... :) by hartnellhartnell, 1215084085|%e %b %Y, %H:%M %Z|agohover
Re:
hartnellhartnell 1215083991|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Addition - Easy Math with Brutus2D

There are a lot of pages around that i'm not sure what to do with…

We can flag them for cleanup and come back to them later. :)

So at least we have documentation and tutorials.. what's missing?

The first thing is to organize what we have. I say let's get the docs in shape and go from there. Docs are important to link from tutorials.

I'm kinda thinking you cannot build a community without a forum and having it "over there" is maybe far away…

I'd default to the GDN community. :) At least there we can help some kind of community grow. The PB community has been, at times, more active than the official PB community.

Ah, and i am wondering when it comes to programming concepts…

I've been wondering about this myself but there's no way to check GDN for wanted pages and the link doesn't display whether or not the page exists at the GDN wiki. The solution I've come up with is to link everything together like a spiders web (in the links section) similar to how we used to do with "Similar To". That way the community of various wikis can use each other for inspiration even if they are not directly involved in other wikis (ala the Badge page).

— Hartnell

Re: by hartnellhartnell, 1215083991|%e %b %Y, %H:%M %Z|agohover
Hm. :)
hartnellhartnell 1215083501|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Operators

We certainly need this info on the wiki. What do you want to do with it?

— Hartnell

Hm. :) by hartnellhartnell, 1215083501|%e %b %Y, %H:%M %Z|agohover
Hm...
hartnellhartnell 1215082872|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Movement

Shouldn't there be a page on movement?

— Hartnell

Hm... by hartnellhartnell, 1215082872|%e %b %Y, %H:%M %Z|agohover
u9u9 1215074143|%e %b %Y, %H:%M %Z|agohover
in discussion Brutus2D Wiki Community / Per page discussions » Addition - Easy Math with Brutus2D

There are a lot of pages around that i'm not sure what to do with. I'm thinking we throw them in a pile (under a page) somewhere out of sight, while setting up everything. After setting things up we can look at how we can fit the rest in, or rewrite, restructure, or (oh no) delete stuff.

What i would like this site to be:

  • Documentation, where people can find examples etc. which is a lot more then the 2 lines of text in the b2d documentation file. This is where the examples in the doc pages are important.
  • Tutorials on game making. For example your zombie-OOP-tutorials were excellent. Shame you didn't finish the third one. It seemed people liked them (those few that read them.) I would also like to create a series of tutorials ala my path to learning to make games.
  • The forums i would like to stay for the most part at b2d website as the community is so small and i don't want to split it. But challenges, coffee table and stuff like that would be perfect. Questions etc. at b2d forum. (are the downsides to this too … down?)

So at least we have documentation and tutorials.. what's missing? I'm kinda thinking you cannot build a community without a forum and having it "over there" is maybe far away… then again, many have the forum "far away," even b2d, but you don't notice as it has the same color scheme. Your thoughts?

Ah, and i am wondering when it comes to programming concepts, should we link back to gamedesign, or write pages here? E.g. pages like Game loop, function, etc. i think maybe would be better suited to stay at gdn where playbasic also could link to it… but i don't know.

by u9u9, 1215074143|%e %b %Y, %H:%M %Z|agohover