Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Picture Pong Game Engine For Total Noobs

Author
Message
Azumanga Daioh Fan
20
Years of Service
User Offline
Joined: 13th Oct 2004
Location:
Posted: 13th Oct 2004 11:17
I Was Wonderin How To Make A Pong Game With The Ability To Load
100 x 100 Images As The Paddles and To Load Your Own Midi Files
Help Please I'm A Total Noob Who Thinks This Would Help Other Noobs

My Advice About Snow Cones Beware The Yellow Ones
Tainer
20
Years of Service
User Offline
Joined: 11th Nov 2004
Location:
Posted: 11th Nov 2004 08:08
ok well, you can load up and play your own .MID files by typing this in...

LOAD SOUND FILENAME$, SOUNDNUMBER$

that above loads a sound into memory. FILENAME$ is the name of the MIDI file that you are trying to load up, and SOUNDNUMBER$ is the number in which you want to load the sound to.

PLAY SOUND SOUNDNUMBER$, STARTPOSITION$

the above is to play a sound that is loaded into memory. SOUNDNUMBER$ is the number in which that a number was assigned to in the last peice of coding and STARTPOSITION$ is where in the sound file you want to begin playing (STARTPOSITION$ is optional)

LOOP SOUND Sound Number, Start Position, End Position, Initial Position

This command will play and loop the specified Sound Number continuously. Optional parameters allow you to specify a start position, end position and initial position in bytes that a looping sound will use as it plays.

then there is...
STOP SOUND Sound Number
^
This command will stop the specified Sound Number if it is playing.

and last but not least, this code is cool
SET EAX Effect Value
^
This command will set the environmental audio effect that all sounds will use. The Effect Value must be a value between 0 and 26. A value of zero deactivates EAX, where one of the following values activates one of the preset effects. 1=GENERIC 2=PADDEDCELL 3=ROOM 4=BATHROOM 5=LIVINGROOM 6=STONEROOM 7=AUDITORIUM 8=CONCERTHALL 9=CAVE 10=ARENA 11=HANGAR 12=CARPETEDHALLWAY 13=HALLWAY 14=STONECORRIDOR 15=ALLEY 16=FOREST 17=CITY 18=MOUNTAINS 19=QUARRY 20=PLAIN 21=PARKINGLOT 22=SEWERPIPE 23=UNDERWATER 24=DRUGGED 25=DIZZY 26=PSYCHOTIC

some of the discriptions for the coding i got right off of the Darkbasic Classic program built in guid!
Hope that helps!

Login to post a reply

Server time is: 2025-05-24 16:57:45
Your offset time is: 2025-05-24 16:57:45