![]() ![]() There are 2 seperate burst's for the snake and the block, with the block burst having random colours, with adequate delays created using animation timer.There is a head class which extends the ball class and has a label for number of balls in snake. The snake if collects a ball then the updatelength in snake class is called, and if it collides the block, the “decreaselength” function in it gets called. The playgame class implements the "key event handler" and handles the input for snake movement. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |