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

Slides:



Advertisements
Similar presentations
The Important Thing About By. The Important Thing About ******** The important thing about ***** is *****. It is true s/he can *****, *****, and *****.
Advertisements

Warm Up Example 1 Check whether the ordered pair is a solution of 2x – 3y > -2 a.(0,0) 2(0)-3(0)> -2 0> -2 True b.(0,1) 2(0)-3(1)> -2 -3> -2 False.
6. WinForms: GUI Programming in.NET. 2 Microsoft Objectives.NET supports two types of form-based apps, WinForms and WebForms. WinForms are the traditional,
Nov 2005 MSc Slide 1 - Another Example of a Structural Pattern Alternative way of adding Functionality to an existing class (alternative to a derived class)
 2007 Dr. Natheer Khasawneh. Chapter 13. Graphical User Interface Concepts: Part 1.
Windows form application using System.Windows.Forms; using System.Drawing; class MyForm:Form{ public static void Main(){ Application.Run(new.
Chapter 1: An Introduction to Visual Basic 2012
Graphics and Multimedia Session 13 Mata kuliah: M0874 – Programming II Tahun: 2010.
IEG3080 Tutorial 3 Prepared by Ryan. Outline Object Oriented Programming Concepts Encapsulation Inheritance Polymorphism Delegation Course Project.
GTECH 731 Lab Session 5 Lab 4 Review, Lab 5 Intro 10/5/10 Lab 4 Review Lab 5 Overview.
Graph G is shown: And 7 of its subgraphs are: How many of these subgraphs are induced?
Determine whether each curve below is the graph of a function of x. Select all answers that are graphs of functions of x:
Software Engineering1 The.NET Framework and the CLI 2D Graphics with GDI+ Visual Studio.NET 2008.
CST238 Week 5 Questions / Concerns? Announcements – HW#1 due (Project ideas) – Check-off Take Home lab#4 Recap New topics – Drawing Coming up: – GUI Bloopers.
CIS 115 Lecture 3.  Forms  Form properties  Controls  Control properties  Event Driven Programming  Form Events  Control Events  Event Handlers.
Lecture 4 Advanced Topics Devi, Erick, Reddy. » Declare dynamic component, an example: ˃Create a button Button newBtn = new Button(); ˃Create an array.
CSC 298 Windows Forms.
Chapter 2 More Controls Programming in C#. NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
Dr Dat Tran - Week 1 Lecture Notes 1 Windows Forms Programming Graphical User Interfaces PG (7110) University of Canberra School of Information Sciences.
Graphing Inequalities in Two Variables ALGEBRA 1 UNIT 6: INEQUALITIES.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
GDI+ 1. Objectives 2 GDI+ class  Create and render Graphic  Display information on the computer screen, printer 3.
Objectives: 1.Graph (and write) inequalities on a number line. 2.Solve and graph one-variable inequalities. (Linear) 3.Solve and graph compound inequalities.
CSTP FS99CS423 (cotter)1 Java Graphics java.awt.*;
Neal Stublen What’s an indexer?  An array has an indexer… int[] myArray = new int[5]; for (int index = 0; index < 5; ++index) {
C# GUI - Basics. Objectives.NET supports two types: WinForms, traditional, desktop GUI apps. WebForms – newer, for Web apps. Visual Studio.NET supports.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
1 Solve each: 1. 5x – 7 > 8x |x – 5| < 2 3. x 2 – 9 > 0 :
Java.  In java you can paint your own custom drawing (such as graphs, charts, drawings and, in particular, computer games) because you cannot find standard.
Algebra 1cc Functions 3 Determine the domain and range of a function from its graph Recall: the domain of a function is its independent or x values. The.
Make an Icon in Paint. Open Paint – found under the Accessories menu in Start - Programs Image – Attributes – set the size of the picture to 32 x32 pixels.
TRUE or FALSE? PowerPoint is a presentation application software program.
private void Application_Launching(object sender, LaunchingEventArgs e) { } private void Application_Activated(object.
Chapter 2 More Controls Programming in C#. NET Objectives Use text boxes, group boxes, check boxes, radio buttons, and picture boxes effectively.
Windows Programming C# Software Development. Overview  DLLs / PInvoke  DirectX .NET Component Library  Custom Controls  Event Model (in C++)  GUI.
 2002 Prentice Hall. All rights reserved. 1 Outline Mouse Event Handling Keyboard Event Handling Graphical User Interface Concepts:
MsgBox, Input Box Functions Check boxes, radio button MsgBox, Input Box Functions Lab 3 3 Ismail M. Romi: PPU- IT Dept.
基 督 再 來 (一). 經文: 1 你們心裡不要憂愁;你們信神,也當信我。 2 在我父的家裡有許多住處;若是沒有,我就早 已告訴你們了。我去原是為你們預備地去 。 3 我 若去為你們預備了地方,就必再來接你們到我那 裡去,我在 那裡,叫你們也在那裡, ] ( 約 14 : 1-3)
Which lesson is it? It is English.. What do you do at this lesson? a) Read texts, learn poems; b) Count, do sums; c) Jump, run, play sport; d) Sing songs,
Image from
Programming with Microsoft Visual Basic 2012 Chapter 1: An Introduction to Visual Basic 2012.
GUI Programming Prepared by: Ahmad Ramin Rahimee Assistant Professor ICTI.
Timed Math Quiz. In This Part, You Learn How to Generate random numbers by using the Random class. Trigger events to occur at a specific time by using.
4-5 Inequalities (pages ) P6  Represent inequalities on a number line or a coordinate plane.
Abstract Art does not look realistic.
Chapter 1: An Introduction to Visual Basic 2015
Graphics and Multimedia
Sketching the Derivative
ThS. Nguyễn Hà Giang Khoa CNTT - Hutech
Windows Forms Introduction
Transformations of curves
Слайд-дәріс Қарағанды мемлекеттік техникалық университеті
.. -"""--..J '. / /I/I =---=-- -, _ --, _ = :;:.
USING GRAPHS TO SOLVE EQUATIONS
True or False: {image} is one-to-one function.
II //II // \ Others Q.
I1I1 a 1·1,.,.,,I.,,I · I 1··n I J,-·
Find the reference angle for the angle measuring {image}
Drawing Quadratic Graphs
6. WinForms 2003 C# GUI - Basics.
Objectives: Graph (and write) inequalities on a number line.
Drawing Graphs The parabola x Example y
Chapter 2 User Interface Design
Drawing Graphs The straight line Example
Curve Sketching: Sketching
Understanding Buttons and TextBoxes
. '. '. I;.,, - - "!' - -·-·,Ii '.....,,......, -,
Line Graphs.
label1 Name label2 Time (0-23) textBox1 textBox2 textBox3 button1
05 | Capturing User Input Michael “Mickey” MacDonald | Indie Game Developer Bryan Griffiths | Software Engineer/Game Developer.
Presentation transcript:

Programovací Jazyky II

Factory (Továrňa)

Super Mario.NET

Návrh Hry

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

Návrh Hry

EGameAvatarStatus  RightStopped  LeftStopped  RightRunning  LeftRunning  Jumping

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

Návrh Hry

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

Návrh Hry

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

Návrh Hry

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

Návrh Hry

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

Návrh Hry

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

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)