![]() ![]() You can recreate this effect using any object's image.Then, in the act method, I make each debris object move in the direction it is facing and remove itself from the world when it touches an edge. sound of hobbling feet, and a very attenuated, tremulous voice asked, querulously, through the keyhole, ' Who's there ' He put his mouth to the same. In the Debris class' constructor, I set the object's initial rotation to a random angle, distort the image scaling the image to a random rectangle of size w by h, where w and h are random numbers, and set the object's initial speed to a random number. The Debris class uses an image which is just cut our of the Rock's image (using an image editing program like Gimp). ![]() The scenario comes with a sound ready for you to use, named ' eating.wav '.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |