News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Fabrizio Radica

Basic Playroutine

Started by Fabrizio Radica, 17:18, 03 August 16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fabrizio Radica

HI  :)
i've a little question  ::)

We have a play-routine to play music in basic? For an intro game for example.
If yes, how i implement it in basic?

I learned how to load (and save like screenshots) .SCR in to ram, but i don't know how to play musics.
I would not want to use the sound command  :P

thanks in advance and long life to CPC :D

SRS



SRS

Ah, well.

Take i.e. "Dune" asm.

You assemble it in emulator to memory
then you can save it  from BASIC - SAVE"DUNE.BIN",B,&8000,&51E

In your BASIC-Game you set

MEMORY &7FFF

and

LOAD"dune.bin",&8000

and if you want the music to play: CALL &8000. now it plays "infinite" until you CALL &8003.

Fabrizio Radica

Quote from: SRS on 21:09, 03 August 16
Ah, well.

Take i.e. "Dune" asm.

You assemble it in emulator to memory
then you can save it  from BASIC - SAVE"DUNE.BIN",B,&8000,&51E

In your BASIC-Game you set

MEMORY &7FFF

and

LOAD"dune.bin",&8000

and if you want the music to play: CALL &8000. now it plays "infinite" until you CALL &8003.


It seems like you do with the asm c64.

jsr 1000 ;init SID
jsr 1003 ;playSID

tnx, i try. :)

Fabrizio Radica

Quote from: SRS on 21:09, 03 August 16
Ah, well.

Take i.e. "Dune" asm.

You assemble it in emulator to memory
then you can save it  from BASIC - SAVE"DUNE.BIN",B,&8000,&51E

In your BASIC-Game you set

MEMORY &7FFF

and

LOAD"dune.bin",&8000

and if you want the music to play: CALL &8000. now it plays "infinite" until you CALL &8003.


yeah, works fine :D
here a snapshot of the game, taken with JavaCPC (on OSX)

:)


AMSDOS

Quote from: Fabrizio Radica on 20:47, 03 August 16

uhm. i need to convert it in basic.  :doh:

Earlier I found a BASIC game which allowed @Morri to use in their Coolbox game I think.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Powered by SMFPacks Menu Editor Mod