## Search found 176 matches

Jun 06, 2008 0:19
Forum: General
Topic: Need Math
Replies: 8
Views: 2259
Just a simpler example as after a google for Begin the game I see it is not a simple shoot em up :) This one uses the space bar to turn the space ship's shields on and off which I take is part of a Star Trek space ship. dim as double kk = .0174533 'conversion constant dim as integer px,py 'screen po...
Jun 05, 2008 21:03
Forum: General
Topic: Need Math
Replies: 8
Views: 2259
I'm going for spaceships. Have you ever played Begin? sort of like that. I'll have a player ship and a non-player ship and they duel. You can order the player ship to change course and adjust speed, or fire weapons at its target, and the computer will do the same for its ship. I think I can find a ...
May 23, 2008 10:15
Forum: General
Topic: Solving a math problem (tangent – radius – tangent)
Replies: 17
Views: 7550
deleted
May 20, 2008 22:49
Forum: Community Discussion
Topic: Vagueness of standard tutorials/examples
Replies: 39
Views: 9926
I've learned best from non-generic tutorials; tutorials that deal with a specific problem and definitely include example(s). Anyway, that's what I'm trying to do with my tutorials. But then again, I mostly deal with game design and that's applied programming. What about people who just want to lear...
May 19, 2008 1:10
Forum: Community Discussion
Topic: Possible Solution to threads like the one that was started.
Replies: 66
Views: 15456
I guess there just comes a point where you have to acknowledge ... "them", and make the process completely braindead... or do we? :P If I may chime in.... It is my opinion that BASIC *is* and always was design for the 'brain dead' side of the spectrum when talking about 'programming'. Frankly, I th...
May 03, 2008 23:11
Forum: General
Topic: Call me crazy, but I like type suffixes
Replies: 87
Views: 14356
As a hobby programmer who used to use QBasic and assembler (and a few years with C) I think FreeBasic has evolved wonderfully. I have no complaints. It is a sensible easy implementation of the BASIC language and gives extensions for the experts who know how to use them. I congratulate the developers...
Apr 07, 2008 11:18
Forum: Projects
Topic: stringToMath
Replies: 11
Views: 3640
Although a bit sad compared with krcko's effort this is a simple beginner attempt I found in my old qbasic files, and tweaked to work with FB, that might be of interest to a beginner to illustrate the use of a stack and translating it to reverse polish notation. Actually I think it is pretty ok. (b...
Apr 05, 2008 23:18
Forum: Projects
Topic: stringToMath
Replies: 11
Views: 3640
No, this won't be going into Beginners. The content is more advanced, and it doesn't look like you're posting to ask a question. I do think this would go better in Projects though. Although a bit sad compared with krcko's effort this is a simple beginner attempt I found in my old qbasic files, and ...
Apr 04, 2008 2:14
Forum: Beginners
Topic: Calling back data
Replies: 7
Views: 1785
That isn't exactly what I had in mind. Sorry if I'm sounding confusing but I'm almost totally new. I need some thing like this (example): "Hello what would you like to buy? You have \$50" 1. Item 1 This is \$10 2. Item 2 This is \$20 I need to be able to take the x amount of dollars away from the orig...
Apr 01, 2008 1:44
Forum: Beginners
Topic: getting started with c / c++
Replies: 5
Views: 1844

### Re: getting started with c / c++

In my search for useful stuff I often come across some nice c / c++ code samples, like this really neat collision detection tutorial: http://uk.geocities.com/olivier_rebellion/Polycolly.zip so, I got the dev-c++ editor / compiler here... http://prdownloads.sourceforge.net/dev-cpp/devcpp4980.exe ......
Mar 31, 2008 23:03
Forum: Beginners
Topic: Sound from keypress
Replies: 10
Views: 2429
Thank you everybody. You have given me the solutions to the problem and more ... Zippy had the most suitable solution for making use of the pc speaker, however I will have to use his code without understanding as I don't know anything about using threads. I used assembler code and the pc timer inter...
Mar 31, 2008 9:48
Forum: Beginners
Topic: Sound from keypress
Replies: 10
Views: 2429

### Sound from keypress

Hi, I would like a buzzing sound when holding down a particular key. In this case it is the left arrow key. I tried the BEEP command but it wasn't suitable as it freezes the program and gives a beep of a fixed length. I am using Windows XP. Any suggestions gratefully received. - Basic Coder do if mu...
Mar 26, 2008 21:38
Forum: Beginners
Topic: randomizing numbers
Replies: 6
Views: 1686

### Re: randomizing numbers

im having trouble trying to randomize numbers to see if i hit a creature. I am not sure of your random number between 3000? It seems to me the following works out the same. s=int(rnd(1)*2) 'returns 0 or 1 if s = 0 then print "The dog misses you." else print "The dog h...
Mar 25, 2008 4:01
Forum: Beginners
Topic: biased roulette wheel problem
Replies: 5
Views: 1553
Hi,

I would just like to thank everybody who responded.

I ended up using a version of counting_pine's code.

notthecheatr's code uses more advanced coding than I
am used to and I couldn't really unravel how it worked.

Cheers,

Basic Coder
Mar 24, 2008 23:44
Forum: Beginners
Topic: biased roulette wheel problem
Replies: 5
Views: 1553

### biased roulette wheel problem

The problem is this, I have a list of items and the probability of any item occurring to be determined by a probability list. example: 0 0.10 1 0.05 2 0.00 3 0.20 4 0.35 5 0.05 6 0.10 7 0.15 Thus 0 would be chosen 10% of the time, 2 would never be chosen, 7 would be chosen 15% of the time and so on ...