In the past few weeks me and Koye have been developing a labview game to help demonstrate some of the concepts used in labview. The game is themed around the famous "Whack a mole" games where the user has to "hit" the mole when it appears. In labview we programmed this by having a 3x3 cluster of buttons that would randomly display an image using the random number function. The user would then use another 3x3 grid of buttons to "hit" the mole when it displayed on the screen. This input has since been upgraded to using the keyboard's keypad and we are currently developing a way to use physical push buttons with the mydaq, and maybe even use a PCB.
Instead of moles, we have used pictures of first year lecturers (with persmission!)
When the user hits a lecturer correctly, they get two points, when they miss, it takes one away. The game also counts how many times each individual lecturer has been hit so that we can display a "most hit lecturer" statistic. The aim with this is to have a database on a server so that everyones scores and "most hit lecturer" values can be brought together to create a high score table, and an overall most hit lecturer.
We have also added a 60 second count down timer, and a difficulty setting. There is also an LED that will light up whenever there has been a successful hit.
No comments:
Post a Comment
Comments: