Private String whitebuttons = ĪddObject(new Key(whitebuttons, whitesoundfiles +".wav", "white-key.png", "white-key-down.png"), 63*i + 54, 100) ĪddObject(new Key(blackbuttons, blacksoundfiles+".wav", "black-key.png", "black-key-down. But now the that i have it compliling right my world disappear when i try to complie it on the scenario page. Variable 'sound' will hold the name of the sound file. Explain the code that is already there and what it does. 5.1 Do This: Open the scenario piano-1 and look at the code that is already there for the two classes that already exist, Piano and Key. Create a new String variable, sound, for the Key class. Start by opening the scenario called piano-1 from the Handout folder. I need help entering a couple codes please. I been going at it for hours and I'm staring to get frustrated. Use the space bar to change the piano one octave higher, or revert it one octave lower. It is the keyboard key below the previous white key. Each black key is a key from the second row. I had to create and if statement saying that if there is a null then dont create a key. 9 Piano Scenario Mack 9 hey guy, so I'm using the piano scenario. Each white key is a key from the top row of your keyboard: starting from '1', and ending at ''. once i did this it created black keys that did not do anything at all. Tags: game with-source piano guitar tiles, heroes. but i had to use nulls to space the black keys out. Bass Drop (Piano Tiles, but worse) School project - Spaghetti Code with german comments 1055 views / 512 in the last 7 days. I finally got he piano to host black keys.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |