Apr 17

While playing around in class we found out you could do computer beeps with C#. It’s actually pretty easy, all you do is a simple Console.beep(int frequency, int length).

After some playing around we managed to come up with mary had a little lamb. It wasnt that hard because someone knew the actual notes for the tune, so we just googled note frequencies, and it was easy. The only hard part was coming up with the timing, which I still dont think is perfect, but whatever.

littlelamb

All I made was a simple form with 1 button that plays the song when you press it. I have included the entire source code (solution file) which also has an .exe file in the \bin\Debug folder. So if you dont have Microsoft Visual Studio, you still should be able to hear it :)

Any comments are appreciated, ENJOY!

Download link:

killerblog-computer_beeps-Mary_had_a_little_lamb

Apr 3

I plan on taking some time this weekend (April 4-5) to work on some programming tutorials. This semester we have been learning a lot of C#, and Action Script 3.0. We are learning Java this semester as well, but the teacher sucks so we haven’t learned that much. Read the rest of this entry »

Mar 15

keyboard-game

This C# game is called “Keyboarding Game”. It has 5 different words at the top of the window that when the start button is pressed, start to fall to the bottom. The text field is then enabled and the user has to type in the words before they hit the text field. After the word is completed, it gets placed to the top and the score gets incremented by 1. If a word hits the bottom, 1 gets subtracted from the score.

You need to have Visual Studio 2008 to open the file. Download the zip file here.