Search found 64 matches

by matthew180
Thu Sep 06, 2007 3:08 am
Forum: Announcement
Topic: ASM Libs Updated
Replies: 30
Views: 10185

Any info on if/when VBin for PB4.x might be available? Or should I start looking for an alternative (i.e. you have no plans to update VBin for 4.x)?

Thanks,
Matthew
by matthew180
Mon Feb 28, 2005 3:03 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] Initial values for Static variables.
Replies: 0
Views: 918

[Implemented] Initial values for Static variables.

It would be nice to be able to assign initial values to Static variables, something like this:

Code: Select all

Procedure x()
  Static a.l = 1000
  Static b.l = -1
  Static c.s = "Hello World"

...

EndProcedure
Matthew
by matthew180
Mon Feb 28, 2005 12:57 am
Forum: General Discussion
Topic: Initialize static variables?
Replies: 5
Views: 1958

You could do it this way:
Procedure MyProc()
Static a.l, b.l, c.l
Static isInitialized.l

If isInitialized = 0
a = 992
b = 12*a
c = 111
isInitialized = 1
EndIf

; some code

EndProcedure

Correct, I can do that if I know for certain that PB sets up all static vars to zero. If not, the ...
by matthew180
Sun Feb 27, 2005 9:59 pm
Forum: Announcement
Topic: WIP Game (Gem Miner)
Replies: 5
Views: 2588

Re: WIP Game (Gem Miner) - testing

I'm glad you like it. I've been playing it so much that I cannot tell if it will be truely fun for other people or not, so your comments are very encouraging!

I'm pretty sure the volume control issue is out of my hands. At the very most it is an annoyance and does not prevent the game from being ...
by matthew180
Sat Feb 26, 2005 4:55 pm
Forum: Announcement
Topic: WIP Game (Gem Miner)
Replies: 5
Views: 2588

Cool!

I've tried your game and it looks great.
(I wish I could do stuff like that..)


Thanks. It's actually not as hard as everyone thinks, it just takes time. But most beginners writing games want to go-go-go, and making good graphics just takes time. By far I've spent more time on the graphics ...
by matthew180
Fri Feb 25, 2005 11:13 pm
Forum: Announcement
Topic: WIP Game (Gem Miner)
Replies: 5
Views: 2588

WIP Game (Gem Miner)

Greetings,

This is a game I'm currently working on. It's getting close to completion and I thought I would put it out here for the PB community to check out. I'm only going to keep it up for about 24 hours and I'd really appreciate it if everyone kept this version to themselves (don't share it.) I ...
by matthew180
Fri Feb 25, 2005 9:33 pm
Forum: General Discussion
Topic: Initialize static variables?
Replies: 5
Views: 1958

Initialize static variables?

Greetings,

Is it possible to initialize static variables? If so, what is the syntax. If not, are static variables guaranteed to be set to an initial value, like zero?

This is what I'd like to be able to do:

Code: Select all

Procedure something()
  Static a.l = 0 ; Initial value.

...

EndProcedure
Matthew
by matthew180
Tue Jan 18, 2005 9:39 pm
Forum: Game Programming
Topic: Need some help in my game. (can close this now)
Replies: 10
Views: 3408

Also, for the least amount of problems, use pure black as your transparent color. TransparentSpriteColor() is not reliable.

Can you please expand on this? I'm working on a project with a lot of graphics and I've been using hot-pink (255,0,255) as transparent. Am I going to have "pink background ...
by matthew180
Fri Dec 03, 2004 8:44 pm
Forum: General Discussion
Topic: Using GetStatus() with a PB loaded sound?
Replies: 7
Views: 4061

Very nice! I will certinaly give it a try and post my results here. Thanks for the example!

Matthew
by matthew180
Fri Dec 03, 2004 6:37 pm
Forum: General Discussion
Topic: Using GetStatus() with a PB loaded sound?
Replies: 7
Views: 4061

Using GetStatus() with a PB loaded sound?

Greetings,

Can anyone tell me how I can access the directX sound functions on a sound loaded with PB LoadSound()? I'd really like to know when a sound has finished playing, and DirectSound provides a GetStatus function for each buffer that will, amoung other things, tell you if the sound is still ...
by matthew180
Thu Dec 02, 2004 4:00 pm
Forum: General Discussion
Topic: What Paintprogram are you using?
Replies: 20
Views: 5378

Paint Shop Pro 9 (just upgraded from 8.) PSP is, first of all, affordable! Also, I have never found anything in Photoshop that I can't do in PSP, but I have done things in PSP that I could not do in Photoshop. Photoshop has it's place, i.e. if you have an extra $1000 and own a photography studio ...
by matthew180
Thu Jul 01, 2004 2:43 pm
Forum: General Discussion
Topic: Does PB short-circuit expressions?
Replies: 17
Views: 4940

Just that short circuit evaluation in itself isn't a bug or problem, but it does seem to be broken at the moment.


Broken how? It's working fine for me and worked as expected in the little test app I wrote.

Please explaine how it is not working. Also, is short-circuiting something that Fred is ...
by matthew180
Wed Jun 30, 2004 9:44 pm
Forum: General Discussion
Topic: Does PB short-circuit expressions?
Replies: 17
Views: 4940

Oops, that's supposed to be on not or... :oops:

I probably should have asked something more along the lines of:

Does PB do short-circuit during the evaluation of expressions?

Sorry for the confusion!

M@
by matthew180
Wed Jun 30, 2004 9:00 pm
Forum: General Discussion
Topic: Does PB short-circuit expressions?
Replies: 17
Views: 4940

SILENCE!

It's not specifically stated in the manual and I didn't feel like writing a test. However, I did write a test program anyway and you are correct, it does do short circuit. But I also wanted the question here in the forum for other people to find when they search (I'm sure the question will ...
by matthew180
Wed Jun 30, 2004 7:52 pm
Forum: General Discussion
Topic: Does PB short-circuit expressions?
Replies: 17
Views: 4940

Does PB short-circuit expressions?

Greetings,

The subject pretty much sums it up... Does PB perform short-circuiting or expressions?

Thanks,
Matthew