Re: fpc-pascal Digest, Vol 163, Issue 11

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: fpc-pascal Digest, Vol 163, Issue 11

Ingemar Ragnemalm

Thanks! The limitations in the sound playing are straight from
JavaScript's Audio API. I think I know how to loop a sound, although the
online advice are pretty confusing. For playing a sound multiple times,
it seems I need to load it multiple times! Not very elegant but it can
be done.

The last point, is that when turning twice very fast?

/Ingemar


Den 2018-01-07 kl. 16:38, skrev Sandro Cumerlato:

> Awesame work!:-)
>
> areas for improvement:
>
> in santa2
> - loop Jingle Bells.mp3 for an infinite pleasure;-)
> - play boing.mp3 multiple times in case of multiple keyboard hits.
>
> in snake:
> - avoid this:https://imagebin.ca/v/3nOH4webezqH

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: fpc-pascal Digest, Vol 163, Issue 11

Sandro Cumerlato
I've done it, let's call it "santa3", it's amazing! :-)  [you've made my day]

For the last point: yes!

Sandro

p.s.: look at the attachment.


On 7 January 2018 at 18:56, Ingemar Ragnemalm <[hidden email]> wrote:

Thanks! The limitations in the sound playing are straight from JavaScript's Audio API. I think I know how to loop a sound, although the online advice are pretty confusing. For playing a sound multiple times, it seems I need to load it multiple times! Not very elegant but it can be done.

The last point, is that when turning twice very fast?

/Ingemar


Den 2018-01-07 kl. 16:38, skrev Sandro Cumerlato:
Awesame work!:-)

areas for improvement:

in santa2
- loop Jingle Bells.mp3 for an infinite pleasure;-)
- play boing.mp3 multiple times in case of multiple keyboard hits.

in snake:
- avoid this:https://imagebin.ca/v/3nOH4webezqH

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

santa3.pas (7K) Download Attachment