Home | Reviews | GUIpedia | Forum | Fun500
| My new gameI'm gonna make a game, but i need a background wave player. Does it exist? | 2009-07-01 | 10:48 PM |
| Re:My new gameOh, and how do i draw an image not at 0,0? i'm so new to this:laugh: | 2009-07-01 | 10:49 PM |
Todd | Re:My new gameFor a background WAV player, just use a regular WAV player. Regular WAV players have a FOR loop (usually) to play segments of the WAV file. Just put the WAV playing data in the loop for your game. But you'll need to do some tinkering (i.e. looping the WAV file). Looping the WAV file means you'll need to use a DO loop with an IF statement that says if "i" (or whatever variable used for storing the current position in the WAV file) is at the end, set "i" back to 0.
Drawing an image not at 0, 0 isn't too hard. Examine the code specifically to see if anything is set to 0 and 0 and just implement X and Y offsets in the code. | 2009-07-02 | 8:33 AM |
| Re:My new gameThanks! I saw this guy that used Sound Recorder to play the WAVs in the background. Would that work ok?
I tried 'bload filename,0,0' that worked
I tried 'bload filename,50,50' that didn't
I tried 'bload filename,0,50' that worked at 0,0
I'm confused :laugh: | 2009-07-02 | 8:45 AM |
Todd | Re:My new gameBLOAD loads the file into memory. You can PUT it at a specific position:
BLOAD filename, v
PUT (0,50), v | 2009-07-02 | 9:03 AM |
| Re:My new gameHow do i DIM v? | 2009-07-02 | 9:14 AM |
Todd | Re:My new gameDIM v(50, 50)
It's the pixel dimensions of your image. | 2009-07-02 | 9:56 AM |
| Re:My new gameWhat about Do i *32 aswell? BITs? | 2009-07-02 | 10:02 AM |
Brandon | Re:My new gameThe Future lib might work, I can't remember if it has a wav player but it makes images easy. | 2009-07-02 | 10:38 AM |
Todd | Re:My new game[b]Horatio wrote:[/b]
[quote]What about Do i *32 aswell? BITs?[/quote]
Not necessarily.
One pixel stores the color. If 8-bit is 256 colors, the appropriate data type would be a BYTE or INT. 16 or 24-bit color would fit in a LONGINT data type. Look for an integer data type that can fit 0 - 65535 in value. | 2009-07-02 | 6:49 PM |
| Re:My new gameFuture sends out tones of errors. Do any FB Libs exist?:cheer: | 2009-07-02 | 9:57 PM |
Todd | Re:My new gameI thought FB has that built-in. You could use Allegro since that's designed for games. Allegro is kinda bulky though but it's definitely worth it. | 2009-07-02 | 10:13 PM |
| Re:My new gameWhere would i download this?
:) | 2009-07-02 | 10:38 PM |
| Re:My new gameFound! lool | 2009-07-02 | 11:02 PM |
| Re:My new gameLool, I din't know how to use it at all, i read a tut but it made no sence :S | 2009-07-02 | 11:23 PM |
Todd | Re:My new gamePlay around with it to learn which functions do what. That's how I learn. | 2009-07-02 | 11:54 PM |
| Re:My new gameI did what the Tut said and i got bout 5 errors lool. | 2009-07-03 | 12:40 AM |
| Re:My new gameI can't get used to fb so im sticking with what i know. does anyone know of a windows basic compiler? | 2009-07-03 | 7:12 AM |
Brandon | Re:My new gameJason, this is ridiculous, 5 of 6 of the last posts are yours, there is an edit button for a reason. You are on the edge of being banned, and you still don't get it. | 2009-07-03 | 10:53 AM |
pharoah | Re:My new gameYou can try QB64
http://www.qb64.net/
It's essentially Qbasic for windows and linux. Doesn't have all the nice extra FB stuff though. | 2009-07-03 | 12:05 PM |
Todd | Re:My new gameQB64 is good but it's not as great as FB.
Jason, what do the errors say? It could just be the wrong FB version or wrong Allegro version. Tutorials aren't always 100% compatible with the ever-changing compilers and programming libraries. | 2009-07-03 | 6:26 PM |
ksr | Re:My new gameIf you stick with 'pure' FB (the built-in gfxlib) just have a look at
http://www.freebasic.net/wiki/wikka.php?wakka=KeyPgImagecreate
That makes it easy to store sprites. You don't have to worry about pointers or using imagedestroy. | 2009-07-03 | 7:09 PM |
| Re:My new gameI can't use future on QB64, i wonder of there is a proggy thatturns a lib into a bas :woohoo: | 2009-07-04 | 2:35 AM |
SonicBrit | Re:My new gameThe problem is that all the libraries written for qbasic are designed to run under dos, now something could be ported so they run under other platforms, but it depends on what they do, considering that future is a graphics library it would much more difficult to port.
I dont know much about QB64, but it might be possible to use allegro which is a graphics library, (mostly for dos but does have ports to other platforms), or better yet SDL, again I dont know much about QB64 to tell you if this is possible or not. | 2009-07-07 | 5:52 PM |
| Re:My new gameWhat are the commmands? Are they already included? | 2009-07-08 | 9:57 AM |
BASIC Programming Help
2021 Brandon Cornell