Search found 36 matches

by thegrogen
Mar 23, 2007 16:46
Forum: General
Topic: Namespace pollution...
Replies: 41
Views: 10945

MichaelW wrote:For these names, in the few cases where a more descriptive name is not called for, you could use “p” and “b”.
Eeew!

Just had to say that.
by thegrogen
Jan 28, 2007 21:27
Forum: Beginners
Topic: List of color shades
Replies: 9
Views: 3265

Yeah I know about RGB, but i'm not fine tuned with that. So I was just wondering. But if theres not a list I guess I could create a program to list it... You want to create a program that could potentially list 2^32 colours (depending on your colour depth; if you're using 16bit colour it'll be 2^16...
by thegrogen
Jan 24, 2007 22:30
Forum: General
Topic: Variables with the same name
Replies: 10
Views: 3777

Whatever happened to using a global search and replace?
by thegrogen
Jan 17, 2007 20:14
Forum: Beginners
Topic: Algebra?
Replies: 3
Views: 1812

There's nothing syntactically wrong with it, but look over your code, and try to understand what it's doing. You don't assign values to a or b, so they will default to some random value (most likely 0). This statement: c=a+b Doesn't work anything like you expect. It's saying "add a and b and pu...
by thegrogen
Jan 02, 2007 4:36
Forum: Beginners
Topic: Thanks for the help
Replies: 3
Views: 2141

I suggest posting in the original thread you started instead of creating a new thread each time you want to post.
by thegrogen
Nov 30, 2006 3:26
Forum: General
Topic: "Are we 17b yet?"
Replies: 20
Views: 5297

Re: "Are we 17b yet?"

Veggiet wrote: 3.1415926535897932384626433832795%
<offtopic option=showoff>3.141592653589793238462643383279502884197169399375105</offtopic>
by thegrogen
Nov 21, 2006 16:45
Forum: Beginners
Topic: Type with Sub?
Replies: 9
Views: 3850

cha0s wrote:CLASS will have more features than TYPE. TYPE will be like 'struct' in c++, I believe.
Actually, 'struct' and 'class' are the exact same construct in C++. The difference is that members of structs are by default public. Members of classes are by default private.
by thegrogen
Nov 03, 2006 2:57
Forum: Beginners
Topic: I can't get SUBs to work in FB .17
Replies: 7
Views: 3289

I will worry about style after I master FreeBasic. As you will find out, part of mastering FreeBASIC IS worrying about style. I suggest looking up OOP if you haven't already, as it is not only the dominant programming style in use today, but FB will (I hope) be embracing most of the object-oriented...
by thegrogen
Nov 03, 2006 2:16
Forum: Beginners
Topic: I can't get SUBs to work in FB .17
Replies: 7
Views: 3289

Const shared minx = 128, miny = 128, maxx = 800-128, maxy = 600-128 Type spot As Integer x,y,xv,yv,dist End Type Screen 19,32,,1 Setmouse ,,0 Randomize Timer Dim sharedspot(1 To 3) As spot spot(1).x=300 spot(1).y=200 spot(2).x=500 spot(2).y=200 spot(3).x=400 spot(3).y=400 For a=1 To 3 spot(a).xv=In...
by thegrogen
Oct 06, 2006 17:58
Forum: General
Topic: #undeffing variables
Replies: 3
Views: 1670

No, because #undef is a preprocessor directive, and as such cannot work on regular variables.
by thegrogen
Sep 05, 2006 0:04
Forum: Beginners
Topic: Goto Question
Replies: 19
Views: 7649

I use gosub all the time. I am an old-time BASIC programmer and gosub is one of the handiest ways to call a commonly used routine in a program without having to worry about exactly which variables need to be passed like you do with a function or whatever else.. SUBs and FUNCTIONS don't technically ...
by thegrogen
Sep 03, 2006 15:55
Forum: General
Topic: BASIC & C/C++ compatible DLLs
Replies: 7
Views: 2865

Re: BASIC & C/C++ compatible DLLs

unknown wrote: 2) Does C have an equivalent to FreeBASIC's datatype String, (not ZString)?
C++ does (std::string).
by thegrogen
Aug 22, 2006 1:12
Forum: Archive
Topic: Game Design Novice - Comp Sci, Programming, and Math
Replies: 39
Views: 14485

Do you need tutorial authors?

I'm planning on doing an RTS tutorial series, possibly in both C++ and FB, and this would be a good place to host it. Though, I'm not sure how I'd make that work since the C++ engine would be OOP, and the FB version would not..
by thegrogen
Aug 21, 2006 19:54
Forum: General
Topic: Memory
Replies: 13
Views: 4658

i just wanted ppl to tell me their experiences and problems with coding games in FB with regards to memory You probably know this already, but always remember to release the memory you allocate. If you don't want to have to worry about that, you can always use smart pointers, or even write your own...
by thegrogen
Aug 21, 2006 19:47
Forum: Archive
Topic: Game Design Novice - Comp Sci, Programming, and Math
Replies: 39
Views: 14485

Couple of issues I have with it as it is now:

1. Don't forget to add other programming languages into the list.

2. Is it a game DESIGN website, or a game PROGRAMMING website? There's quite a large difference, you know...