Xojo Conferences
XDCMay2019MiamiUSA

Re: [ANN] Lemonade Stand port to REALbasic (Real Studio games Mailinglist archive)

Back to the thread list
Previous thread: Lemonade Stand update
Next thread: Appending trimesh to object3d?


[ANN] Preview of RBD 2.4   -   Marc Zeedar
  Re: [ANN] Lemonade Stand port to REALbasic   -   Lars Jensen
   Re: [ANN] Lemonade Stand port to REALbasic   -   Jason Burnette

Re: [ANN] Lemonade Stand port to REALbasic
Date: 15.09.05 05:09 (Thu, 15 Sep 2005 00:09:13 -0400)
From: Lars Jensen
After a while, I wanted to be able to specify recurring combinations of
inputs that I could invoke with a single click.

Then I wanted to be able to specify algorithms to create those combinations,
based on my experience.

Then I wanted to construct code that would genetically evolve those
algorithms and make them compete against one another.

Then I had to go back to work... :(

lj
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: [ANN] Lemonade Stand port to REALbasic
Date: 15.09.05 07:47 (Thu, 15 Sep 2005 00:47:51 -0600)
From: Jason Burnette
On Sep 14, 2005, at 4:24 PM, Joseph J. Strout wrote:

> I wonder if the code could be simplified a bit? Suppose you make a
> subclass of Timer, called MusicPlayer or some such, that can be
> told to play a song defined by an array of values. Each pair of
> values in this array would specify a note and duration. Then, when
> its Action event fires, it would:
>
> 1. Stop playing the previous note, if any.
> 2. Start playing the next note (if that's not silence).
> 3. Set its Period according to the note duration.
>
> Then, to play a song, you'd just pass in an appropriate Array of
> note/duration pairs, and wouldn't need separate timers and big
> select-case statements for each one.

Joe,

I appreciate the suggestions to improve the music code. I was able
to accomplish the above, but instead of setting the timer's period to
the duration of each note, I made the timer period the tempo for the
song, so that the same notes can be entered once, but played back at
any desired speed.

Take a look and see if this is better, when you get a free sec. I
appreciate getting the chance to play! This game was a favorite back
in the day!

<http://id8a.com/rb/LSMusicPlayerRevisited.rbp.zip>

Take care,

Jason
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>