haafuture.blogg.se

When was screen snake created
When was screen snake created













when was screen snake created

/ function to play the sound effect when player win

when was screen snake created

PlayerLose.Play() //Play the die sound effect after player died

when was screen snake created

PlayerLose.SoundLocation = + "/SnakeLose_1.wav" SoundPlayer playerLose = new SoundPlayer() / function to play sound effect when game over Play the background music at the beginning Locate the SoundPlayer to the correct sound directoryīackgroundMusic.SoundLocation = + "/SnakeBGM_1.wav" SoundPlayer backgroundMusic = new SoundPlayer() Create SoundPlayer objbect to control sound playback / function for playing background music / Define a structure for the position for every object in the game by row and column I have attached the code snippet below of my snake game. I am not sure what should i change in my code to achieve the desired result. I would like to make the console window screen as wall so that player lose the game if they hit the wall. I want the player to lose when it hits the border of the screen.Right now my snake can go from one side and come out on the other side.















When was screen snake created