Search found 81 matches

by Xerol
Mon Nov 28, 2005 10:16 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Program to convert to BMP
Replies: 8
Views: 9833

IrfanView, loads and saves about 2 dozen formats (although doesn't support transparency in PNGs).
by Xerol
Tue Nov 22, 2005 6:17 pm
Forum: News and Announcements
Topic: 1 Key
Replies: 12
Views: 30769

Deleter wrote:cool, I have always wanted a blue internet...I am stuck with an indigo one :(

...

I wonder if i can exchange it for a better one...
You ain't exchanging anything, this one's MINE.
by Xerol
Tue Nov 22, 2005 3:02 pm
Forum: News and Announcements
Topic: 1 Key
Replies: 12
Views: 30769

So what do I win?
by Xerol
Tue Nov 08, 2005 8:56 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Random Numbers
Replies: 20
Views: 46563

You'd either want to do int((rnd-.5)*400) or int(rnd*400) - 200, both of which give you [-200, 199] ranges.
by Xerol
Tue Nov 08, 2005 7:59 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Random Numbers
Replies: 20
Views: 46563

Well, there's plenty of things that fall under "chaos" that wouldn't be suitable for a random number generator. Most single-prior-term systems fall under that. Take the quadratic iterator for example: x(n+1) = a*x(n)*(1-x(n)) For x(n) in [0..1] and a = [0..4]. Most notably the case for a =...
by Xerol
Tue Nov 08, 2005 12:25 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Random Numbers
Replies: 20
Views: 46563

:shock: Of course it can return a number more then once! If you roll a dice 27 you get each number more then once, that's still a random number generator. What I ment was there is no repitition of the pattern, eg. int(rnd*2) -> 1 0 1 0 1 0 1 0 Where there is a pattern in the random numbers. matt We...
by Xerol
Fri Nov 04, 2005 9:08 am
Forum: General Discussion
Topic: Competitions
Replies: 4
Views: 9643

I have a feeling I'm missing out on a lot by not having an account there...


Also, since the november QBXP isn't going to come out until the end of the month, is the deadline still the same, or has it been pushed back?

Edit: Hmm, it seems like I already have an account...
by Xerol
Mon Oct 31, 2005 8:46 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Line numbers
Replies: 6
Views: 10376

Actually, GW had a built-in function to renumber lines. I have a GW book right here, I'll look it up: RENUM Command Purpose: To renumber program lines. Syntax: RENUM ( new number ),( old number )(, increment ) Comments: - new number is the first line number to be used in the new sequence. The defaul...
by Xerol
Mon Oct 31, 2005 4:01 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: What does this mean?
Replies: 8
Views: 11712

Kylemc wrote:Converts a variable into a string. Adds a leading space for signing (+/-)

Code: Select all

string$="Test "+LTRIM$(STR$(123))
PRINT string$
Except string is a reserved keyword and that code would never run :wink:
by Xerol
Mon Oct 24, 2005 4:09 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: QBasic Password program on Windows startup
Replies: 7
Views: 12044

The thing is that with all windows there is a way to bypass the autoexec.bat file. I have tried it... you just have to use the boot menu, and choose interactive startup or safe mode (or, if he was really evil, he would re-install your OS like thieves do). Yes, I did mention that, although the "...
by Xerol
Mon Oct 24, 2005 11:38 am
Forum: QBASIC and QB64 Questions & Answers
Topic: QBasic Password program on Windows startup
Replies: 7
Views: 12044

Well, to get it at bootup, if it's Win98 or previous (he didn't say which OS he was running) you could just throw the compiled program into Autoexec.bat. In QB, you can create custom ON KEY events to trap ctrl-alt-del (which would just end up going back to the PW program again anyway), alt-tab, ctrl...
by Xerol
Sat Oct 15, 2005 5:43 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: easy PAINT question!!
Replies: 9
Views: 9939

The BF flag produces a filled box. If you want to still use the normal PAINT statement (which is slower, I think), you need to make sure the point you are painting is inside the box. (101, 101) would be above the box in this case, so it won't work.
by Xerol
Mon Oct 03, 2005 9:34 pm
Forum: News and Announcements
Topic: 1 key challenge revisited
Replies: 14
Views: 23045

Nathan1993 wrote:Or any game like that (EG bowling). I have an idea, but will I get counted off if I use ascii graphics? I wanna make a pure-text entry, and I suck at GFX.
Anyone could probably beat mine on graphics:

Image
by Xerol
Mon Oct 03, 2005 5:59 pm
Forum: General Discussion
Topic: Whats everybody up to?
Replies: 17
Views: 30530

Buncha small games for Classix, and then a game for that one-key programming compo.
by Xerol
Fri Sep 30, 2005 7:15 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: question from a student
Replies: 10
Views: 11802

GOTOs aren't necessarily 100% bad - there's situations where the code comes out much cleaner using gotos.
by Xerol
Thu Sep 29, 2005 9:55 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Multiple files appending
Replies: 6
Views: 9661

I think this works better: dim flist(6) as string flist(1) = "C:\file.txt" flist(2) = "C:\blarga" flist(3) = "C:\poof\tjoff" flist(4) = "C:\Yadda" flist(5) = "C:\random\random\whatever\file.txt" flist(6) = "D:\otherhd\blipp" stri$ = "H...
by Xerol
Mon Sep 12, 2005 4:54 pm
Forum: Pete's QB Site News
Topic: Guest News Posts Now Subject to Approval
Replies: 23
Views: 51114

Wouldn't it make sense to not have the front page "Latest Topics" box include the posts from the News forum, since it's pretty much redundant with the news stuff being at the top of the page? The Latest Topics box highlights all the topics posted in the forums, not just news posts. It pro...
by Xerol
Mon Sep 12, 2005 1:41 pm
Forum: Pete's QB Site News
Topic: Guest News Posts Now Subject to Approval
Replies: 23
Views: 51114

Wouldn't it make sense to not have the front page "Latest Topics" box include the posts from the News forum, since it's pretty much redundant with the news stuff being at the top of the page?
by Xerol
Wed Sep 07, 2005 4:47 pm
Forum: General Discussion
Topic: QB Express #14 Submissions
Replies: 29
Views: 40319

When I get home, I'll post a list of game demos that I've done in the last month or so. There's about half a dozen, I'm sure someone could review one of them.
by Xerol
Mon Sep 05, 2005 9:41 am
Forum: General Discussion
Topic: Pixel Graphics
Replies: 15
Views: 22365

For something that small, the detail would have to be in the animation. The other way to get more detail is to use more colors (since you can use 24-bit in FB, I'd start with a 64x64x8bit sprite, then scale it down with a program that does smooth scaling(like IrfanView) which gets more "detail&...