|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Want a new Job?
Chapters
Services
Feature Zones
|
IntroductionSpace Invaders is one of the most famous arcades in the world, and many of us programmers developed our own version of this game in our favourite programming language. I decided to create a version using only WinForms objects, maintaining as many features as possible (primarily, the graphics).
BackgroundAt first, you must know that every label object has got its image property, which can be used as background for a text. Of course, if you set text to empty Using the CodeThere is a class for each of the main actors of the game: bullets, invaders and ship. In the main form, a timer is used for checking the keyboard, and another timer for moving the actors. To handle keyboard input smoothly, I didn't use the Note: Use the left and right arrow keys for moving the ship, and space key for shooting. History
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||