Presentation is loading. Please wait.

Presentation is loading. Please wait.

C# PUZZLE GAME.

Similar presentations


Presentation on theme: "C# PUZZLE GAME."— Presentation transcript:

1 C# PUZZLE GAME

2 C# PUZZLE GAME #include < > #include < > char main ( ) { } C# 자료구조 기말과제.h GAME OUTLINE.h 김두원, 김수년, 김경훈, 임소현 Structure 속성{ Array, Button Image, Graphics } Structure 매서드{ For, If, Goto, Foreach, Random #REGION 1. 환경 변수; #REGION 2. 버튼 생성; #REGION 3. 버튼 섞기; #REGION 4. 버튼 이동; Return A+;

3 #REGION 4. 버튼 섞기 (4/4) #REGION 3. 버튼 이동 (3/4) #REGION 2. 버튼 생성 (2/4)
int PuzzleCount = 9; // 9개의 버튼 int PuzzleRowCol = 3; // 3 BY 3 int[,] PuzzleTable; // 버튼의 주소 값 PuzzleTable = new int[PuzzleRowCol, PuzzleRowCol]; Image[] imgPuzzleBtn; imgPuzzleBtn = new Image[PuzzleCount]; Button[] btn; btn = new Button[PuzzleCount]; Image ImgChild = Image.FromFile("child.jpg"); Graphics gChild = Graphics.FromImage(ImgChild); /* gChild 라는 Graphics 사진첩 생성 ImgChild라는 Image 사진을 사진첩에 꽂기 */

4


Download ppt "C# PUZZLE GAME."

Similar presentations


Ads by Google