Presentation is loading. Please wait.

Presentation is loading. Please wait.

Programovací Jazyky II. Factory (Továrňa) Super Mario.NET.

Similar presentations


Presentation on theme: "Programovací Jazyky II. Factory (Továrňa) Super Mario.NET."— Presentation transcript:

1 Programovací Jazyky II

2 Factory (Továrňa)

3 Super Mario.NET

4 Návrh Hry

5

6 GameWindow - Návrh  BackColor: 107; 140; 255  DoubleBuffered: True  FormBorderStyle: FixedSingle  Icon  MaximizeBox: False  StartPosition: CenterScreen  Size: 800; 600  Text: Super Mario.NET

7 Návrh Hry

8 EGameAvatarStatus  RightStopped  LeftStopped  RightRunning  LeftRunning  Jumping

9 GameAvatar  Abstract Class  Images, ImagesIndex, RunningBuffer  Status  X, Y  Draw (Graphics graph)  UpdatePosition (EGameAvatarStatus status)  GameAvatar ( )

10 Návrh Hry

11 Mario, Luigi  Sealed Class  Dedia z triedy GameAvatar  Mario ( ), Luigi ( )

12 Návrh Hry

13 GameLevel  Abstract Class  abstract void Draw (Graphics graph)

14 Návrh Hry

15 MarioLevel, LuigiLevel  Sealed Class  Dedia z triedy GameLevel  override void Draw (Graphics graph)

16 Návrh Hry

17 GameFactory  Abstract Class  abstract GameLevel CreateLevel ( )  abstract GameAvatar CreateAvatar()

18 Návrh Hry

19 MarioFactory, LuigiFactory  override GameLevel CreateLevel ( )  override GameAvatar CreateAvatar ( )

20 GameWindow  GameLevel Level  GameAvatar Avatar  GameWindow ( )  void InitializeLevel (GameFactory factory)  void Paint (object sender, PaintEventArgs e)  void KeyDown (object sender, KeyEventArgs e)  void KeyUp (object sender, KeyEventArgs e)


Download ppt "Programovací Jazyky II. Factory (Továrňa) Super Mario.NET."

Similar presentations


Ads by Google