제 3주 플래시 사용 방법 익히기 (1-3)

Similar documents
Page 2 of 6 Here are the rules for conjugating Whether (or not) and If when using a Descriptive Verb. The only difference here from Action Verbs is wh

CD-RW_Advanced.PDF

Page 2 of 5 아니다 means to not be, and is therefore the opposite of 이다. While English simply turns words like to be or to exist negative by adding not,

MAX+plus II Getting Started - 무작정따라하기

Chapter 1

K7VT2_QIG_v3

step 1-1

Solaris Express Developer Edition

Hi-MO 애프터케어 시스템 편 5. 오비맥주 카스 카스 후레쉬 테이블 맥주는 천연식품이다 편 처음 스타일 그대로, 부탁 케어~ Hi-MO 애프터케어 시스템 지속적인 모발 관리로 끝까지 스타일이 유지되도록 독보적이다! 근데 그거 아세요? 맥주도 인공첨가물이

Stage 2 First Phonics

강의10

2 min 응용 말하기 01 I set my alarm for It goes off. 03 It doesn t go off. 04 I sleep in. 05 I make my bed. 06 I brush my teeth. 07 I take a shower.

00 SPH-V6900_....

¹Ìµå¹Ì3Â÷Àμâ

- 2 -

<B3EDB9AEC1FD5F3235C1FD2E687770>

본문01

#Ȳ¿ë¼®

P/N: (Dec. 2003)

0125_ 워크샵 발표자료_완성.key

Week3

H3050(aap)

DE1-SoC Board

chapter4

목차 제 1 장 inexio Touch Driver소개 소개 및 주요 기능 제품사양... 4 제 2 장 설치 및 실행 설치 시 주의사항 설치 권고 사양 프로그램 설치 하드웨

하나님의 선한 손의 도우심 이세상에서 가장 큰 축복은 하나님이 나와 함께 하시는 것입니다. 그 이 유는 하나님이 모든 축복의 근원이시기 때문입니다. 에스라서에 보면 하나님의 선한 손의 도우심이 함께 했던 사람의 이야기 가 나와 있는데 에스라 7장은 거듭해서 그 비결을

APOGEE Insight_KR_Base_3P11

DocsPin_Korean.pages

UNIST_교원 홈페이지 관리자_Manual_V1.0

Microsoft PowerPoint - ch03ysk2012.ppt [호환 모드]

PowerChute Personal Edition v3.1.0 에이전트 사용 설명서

?????

<BFA9BAD02DB0A1BBF3B1A4B0ED28C0CCBCF6B9FC2920B3BBC1F62E706466>

10X56_NWG_KOR.indd

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

PowerSHAPE 따라하기 Calculate 버튼을 클릭한다. Close 버튼을 눌러 미러 릴리프 페이지를 닫는다. D 화면을 보기 위하여 F 키를 누른다. - 모델이 다음과 같이 보이게 될 것이다. 열매 만들기 Shape Editor를 이용하여 열매를 만들어 보도록

민속지_이건욱T 최종

- 이 문서는 삼성전자의 기술 자산으로 승인자만이 사용할 수 있습니다 Part Picture Description 5. R emove the memory by pushing the fixed-tap out and Remove the WLAN Antenna. 6. INS

Output file

,,,,,, (41) ( e f f e c t ), ( c u r r e n t ) ( p o t e n t i a l difference),, ( r e s i s t a n c e ) 2,,,,,,,, (41), (42) (42) ( 41) (Ohm s law),

Dialog Box 실행파일을 Web에 포함시키는 방법

Mentor_PCB설계입문

Social Network

<32B1B3BDC32E687770>

<B1E2C8B9BEC828BFCFBCBAC1F7C0FC29322E687770>

Orcad Capture 9.x

untitled

<35312DBCB1C8A3B5B52E687770>

<30322D28C6AF29C0CCB1E2B4EB35362D312E687770>

Remote UI Guide

Domino Designer Portal Development tools Rational Application Developer WebSphere Portlet Factory Workplace Designer Workplace Forms Designer

야쿠르트2010 9월재출

인켈(국문)pdf.pdf

Smart Power Scope Release Informations.pages

<31325FB1E8B0E6BCBA2E687770>

11¹Ú´ö±Ô

2 소식나누기 대구시 경북도 영남대의료원 다문화가족 건강 위해 손 맞잡다 다문화가정 행복지킴이 치료비 지원 업무협약 개인당 200만원 한도 지원 대구서구센터-서부소방서 여성의용소방대, 업무협약 대구서구다문화가족지원센터는 지난 4월 2일 다문화가족의 지역사회 적응 지원을

퇴좈저널36호-4차-T.ps, page Preflight (2)

LCD Display

49-9분동안 표지 3.3

PRO1_09E [읽기 전용]

6자료집최종(6.8))

<BCF6BDC D31385FB0EDBCD3B5B5B7CEC8DEB0D4C5B8BFEEB5B5C0D4B1B8BBF3BFACB1B85FB1C7BFB5C0CE2E687770>

pdf 16..

PowerPoint 프레젠테이션

Microsoft PowerPoint - 7-Work and Energy.ppt

300 구보학보 12집. 1),,.,,, TV,,.,,,,,,..,...,....,... (recall). 2) 1) 양웅, 김충현, 김태원, 광고표현 수사법에 따른 이해와 선호 효과: 브랜드 인지도와 의미고정의 영향을 중심으로, 광고학연구 18권 2호, 2007 여름

#중등독해1-1단원(8~35)학

VOL /2 Technical SmartPlant Materials - Document Management SmartPlant Materials에서 기본적인 Document를 관리하고자 할 때 필요한 세팅, 파일 업로드 방법 그리고 Path Type인 Ph

38이성식,안상락.hwp

<32382DC3BBB0A2C0E5BED6C0DA2E687770>

3항사가 되기 위해 매일매일이 시험일인 듯 싶다. 방선객으로 와서 배에서 하루 남짓 지내며 지내며 답답함에 몸서리쳤던 내가 이제는 8개월간의 승선기간도 8시간같이 느낄 수 있을 만큼 항해사로써 체질마저 변해가는 듯해 신기하기도 하고 한편으론 내가 생각했던 목표를 향해

가정법( 假 定 法 )이란, 실제로 일어나지 않았거나 앞으로도 일어나지 않을 것 같은 일에 대해 자신의 의견을 밝히거나 소망을 표현하는 어법이다. 가정법은 화자의 심적 태도나 확신의 정도를 나타내는 어법이기 때문 에 조동사가 아주 요긴하게 쓰인다. 조동사가 동사 앞에

0.1-6

untitled

_KF_Bulletin webcopy

저작자표시 2.0 대한민국 이용자는아래의조건을따르는경우에한하여자유롭게 이저작물을복제, 배포, 전송, 전시, 공연및방송할수있습니다. 이차적저작물을작성할수있습니다. 이저작물을영리목적으로이용할수있습니다. 다음과같은조건을따라야합니다 : 저작자표시. 귀하는원저작자를표시하여야합니

1


public key private key Encryption Algorithm Decryption Algorithm 1

PRO1_02E [읽기 전용]

<33C2F DC5D8BDBAC6AEBEF0BEEEC7D02D3339C1FD2E687770>

농심-내지

Something that can be seen, touched or otherwise sensed

4 CD Construct Special Model VI 2 nd Order Model VI 2 Note: Hands-on 1, 2 RC 1 RLC mass-spring-damper 2 2 ζ ω n (rad/sec) 2 ( ζ < 1), 1 (ζ = 1), ( ) 1

휠세미나3 ver0.4

May 2014 BROWN Education Webzine vol.3 감사합니다. 그리고 고맙습니다. 목차 From Editor 당신에게 소중한 사람은 누구인가요? Guidance 우리 아이 좋은 점 칭찬하기 고맙다고 말해주세요 Homeschool [TIP] Famil

Page 2 of 8 Here s how we can change the previous sentence to use honorific speech, to show extra respect to the father. 아버지가어디에계세요? Where s dad? Usin

歯1.PDF

WRIEHFIDWQWF.hwp

IKC43_06.hwp

Microsoft PowerPoint - 기계공학실험1-1MATLAB_개요2D.pptx

2014 HSC Korean Continuers

Journal of Educational Innovation Research 2019, Vol. 29, No. 1, pp DOI: (LiD) - - * Way to

Windows 네트워크 사용 설명서

Vol.258 C O N T E N T S M O N T H L Y P U B L I C F I N A N C E F O R U M


서강대학원123호

DBPIA-NURIMEDIA

13주-14주proc.PDF

Transcription:

Game Maker Tool & Tutorials 2011 년 9 월 2 일 영산대학교 게임 * 콘텐츠학과 채영숙 영산대학교 2011년도 2학기 게임제작개론 ( 채영숙 ) 1

What is Game Maker? http://www.yoyogames.com 100 Game Maker Games in 10 Minutes 국내제작카페 http://cafe.naver.com/crazygm.cafe http://cafe.naver.com/gmkor.cafe http://blog.daum.net/jty71/15645094 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 2

About Game Maker Allow you to make exciting computer games without the need to write a single line of code. Use easy-to-learn, drag-and-drop actions Games have backgrounds, animated graphics, music, and sound effects A built-in programming language that gives you full flexibility. Get more experienced You even can sell them. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 3

The User Interface 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 4

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 5

Resources sprites: (animated) images that are used to represent the objects sounds: these can be used in games, either as background music or as effects backgrounds: the images used as background for the rooms objects: the true entities in the game rooms: the places (levels) in which the objects live 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 6

File menu New. Choose this command to start creating a new game. If the current game was changed you are asked whether you want to save it. There is also a toolbar button for this. Open. Opens a game file. Game Maker files have the extension.gmk. You can also open old.gm6 files. If you want to open.gmd files created with version 5 of Game Maker you must select the appropriate file type at the bottom of the dialog. These might though not work correctly in the new version.) There is a toolbar button for this command. You can also open a game by dragging the file into the Game Maker window. Recent Files. Use this submenu to reopen game files you recently opened. Save. Saves the game design file under its current name. If no name was specified before, you are asked for a new name. You can only use this command when the file was changed. Again, there is a toolbar button for this. Save As. Saves the game design file under a different name. You are asked for a new name. Create Executable. Once your game is ready you will probably want to give it to others to play. Using this command you can create a stand- alone version of your game. This is simply an executable that you can give to other people to run. Advanced Mode. When clicking on this command Game Maker will switch between simple and advanced mode. In advanced mode additional commands and resources are available. Exit. Probably obvious. Press this to exit Game Maker. If you changed the current game you will be asked whether you want to save it. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 7

Edit menu Insert resource. Inserts a new instance of the currently selected type of resource before the current one. A form will open in which you can change the properties of the resource. This will be treated in detail in the following chapters. Duplicate. Makes a copy of the current resource and adds it. A form is opened in which you can change the resource. Delete. Deletes the currently selected resource (or group of resources). Be careful. This cannot be undone. You will, though, be warned. Rename. Gives the resource a new name. This can also be done in the property form for the resource. Also, you can select the resource and then click on the name. Properties. Use this command to bring up the form to edit the properties. Note that all the property forms appear within the main form. You can edit many of them at the same time. You can also edit the properties by double clicking on the resource. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 8

Resources menu In this menu, you can create new resources of each of the different types. Note that for each of them there is also a button on the toolbar and a keyboard shortcut. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 9

Scripts Menu 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 10

Run menu Run normally. Runs the game as it would normally run. The game is run in the most efficient way and will look and act as in an executable game. Run in Debug mode. Runs the game in debug mode. In this mode you can check certain aspects of the game and you can pause and step through it. This is useful when something goes wrong but is a bit advanced. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 11

Window menu Cascade. Cascade all the windows such that each of them is partially visible. Arrange Icons. Arrange all the iconified property windows. (Useful in particular when resizing the main form.) Close All. Close all the property windows, asking the user whether or not to save the changes made. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 12

Help menu Contents. Use this command to show this help file. Online Help. This command will bring you to a location on the website where you can obtain all sorts of additional help and where you can also download some tutorials. Upgrade. You can use this command to upgrade the Lite Edition of Game Maker to the Pro Edition. The Pro Edition has many aditional features. Here you can find information on how to upgrade the program. If you did upgrade it you can use this command to enter the registration key you received. Web site. Connects you to the Game Maker website where you can find information about the most recent version of Game Maker and collections of games and resources for Game Maker. We recommend that you check out the site at least once a month. Forums. This command will bring you to the forums where users help each other with many aspects of Game Maker. About Game Maker. Gives some short information about this version of Game Maker. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 13

Let us look at an Example Create Sprite Create Sound Create Object Create Event Create a new Room Backgrounds + Objects 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 14

Defining sprites Sprites are the visual representations of all the objects in the game. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 15

Sounds and music To create a sound resource in your game, use the item Create Sound in the Resources menu or use the corresponding button on the toolbar. The following form will pop up. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 16

Backgrounds 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 17

Defining objects 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 18

Events 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 19

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 20

Actions 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 21

참고사이트 http://blog.daum.net/jty71/15645094 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 22

TUTORIAL 1. YOUR FIRST GAME 2. CREATING A SCROLLING SHOOTER 3. MAZE GAMES 4. 3-DIMENSIONAL GAMES 5. A FIRST PERSON SHOOTER 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 23

Game Maker Tutorial 1. Your First Game 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 24

Agenda To understand a number of the basic aspects of Game Maker 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 25

The Game Idea Title: Catch the Clown A little action game. A clown moves around in a playing field. The goal of the player is to catch the clown by clicking with the mouse on him. If the player progresses through the game the clown starts moving faster and it becomes more difficult to catch him. For each catch the score is raised and the goal is to get the highest possible score. Expected playing time is just a few minutes. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 26

A Design Document Game objects Sounds Controls Game flow Levels 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 27

Game objects Two game objects: the clown and the wall. The wall object has a square like image. The wall surrounding the playing area is made out of these objects. The wall object does nothing. It just sits there to stop the clown from moving out of the area. The clown object has the image of a clown face. It moves with a fixed speed. Whenever it hits a wall object it bounces. When the player clicks on the clown with the mouse the score is raised with 10 points. The clown jumps to a random place and the speed is increased with a small amount. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 28

Sounds Use two sounds A bounce sound that is used when the clown hits a wall a click sound that is used when the player manages to click with the mouse on the clown. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 29

Controls The only control the player has is the mouse. Clicking with the left mouse button on the clown will catch it. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 30

Game flow At the start of the game the score is set to 0. The room with the moving clown is shown. The game immediately begins. When the player presses the <Esc> key the game ends. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 31

Levels There is just one level. The difficulty of the game increases because the speed of the clown increases after each successful catch. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 32

Processes Adding Sprites and Sounds Creating the clown sprite resource Create two sound resources Objects and Actions Create the wall object Create the clown object Let the clown object move Handling a collision with the wall Handling a mouse press Creating the Room Create background music Adding the alarm clock Adding a help text 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 33

Adding Sprites and Sounds The clown: The wall: 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 34

Creating the clown sprite resource 1. From the Resources menu, choose Create Sprite. 2. Click on the Name field where currently is says sprite0. This is the default name for the sprite. Rename it to spr_clown. 3. Click on the Load Sprite button. This opens the standard Windows file requester. 4. Navigate to the Resources folder that came with this tutorial and selected the image file clown.bmp. The Sprite Properties form should now look like Figure 2. 5. Press the OK button to close the form. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 35

1. Choose Sprites -> Create Sprite 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 36

2. Name field : spr_clown spr_clown 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 37

3. Load Sprite button 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 38

4. select the image file clown.png 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 39

5. Press the OK button to close the form 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 40

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 41

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 42

Creating the wall sprite 1. From the Resources menu, choose Create Sprite. Click on the Name field and rename it to spr_wall. 2. Click on the Load Sprite button and select the image file wall.png. 3. As the wall image coves the whole area it should not be transparent. So click on the checkmark next to Transparent to remove it. 4. Press the OK button to close the form. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 43

1 spr_wall 2 wall.png 3 4 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 44

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 45

Create two sound resources 1. From the Resources menu, choose Create Sound. The Sound Properties form appears. Click on the Name field and rename it to snd_bounce. 2. Click on the Load Sound button, navigate to the Resources folder that came with the tutorial, and select the sound file bounce.wav. The form should now look as shown in Figure 3. 3. Press the OK button to close the form. 4. Create another sound resource and name it snd_click. 5. Click the Load Sound button and select the sound file click.wav. 6. Close the form. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 46

snd_bounce 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 47

snd_click 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 48

Objects and Actions Instances of game objects Wall object Clown object Create Event Collision Event Mouse Event 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 49

Create the wall object 1. From the Resources menu, choose Create object. 2. Click on the Name field and rename the object to obj_wall. 3. Click on the icon at the end of the Sprite field and in the list of available sprites select the spr_wall sprite. 4. Instances of the wall object must be solid, that is, no other instances should be allowed to penetrate them. To this end click on the box next to the Solid property to enable it. 5. The filled-in form is shown in Figure 5. Press OK to close the form. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 50

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 51

obj_wall 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 52

Create the clown object: 1. From the Resources menu, choose Create object. 2. Click on the Name field and rename the object to obj_clown. 3. Click on the icon at the end of the Sprite field and select the spr_clown sprite. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 53

obj_clown 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 54

Let the clown object move 4. Press the Add Event button. 5. Click on the Create button. The create event is now added to the list of events. It is automatically selected (with a blue highlight). 6. Next you need to include a Move Fixed action in the list of actions. To this end, press and hold the mouse on the action image with the eight red arrows in the page at the right, drag it to the empty actions list, and release the mouse. An action form is shown asking for information about the action. 7. In the action form for the Move Fixed action you can indicate in which direction the instance should start moving. Select all eight directions (not the middle one; which corresponds to no motion). Note that the selected directions turn red. When multiple directions are selected one is chosen randomly. Also set the Speed to 4. See Figure 7 for the result. Press OK to indicate that we are ready with this action. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 55

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 56

Drag and drop here 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 57

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 58

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 59

Handling a collision with the wall 1. Press the Add Event button. In the Event Selector click on the Collision button and select obj_wall. The collision event is now added to the list of events. 2. Include a Bounce action by dragging it from the page at the right. There are two properties we can change but their default values are fine. We are not interested in precise bounces and we want to bounce against solid objects. (Remember that we made the wall object solid.) Press OK to close the action form. 3. Select the page with the tab main1. From it include the Play Sound action and drag it below the Bounce action already present. In the action from, click on the icon to the right of the Sound property and from the list select snd_bounce. Leave the Loop property to false as we want to play the sound only once. Press OK to close it. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 60

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 61

Drag and drop here 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 62

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 63

Drag and drop here 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 64

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 65

Handling a mouse press 1. Press the Add Event button. In the Event Selector click on the Mouse button and in the menu that appears select Left Pressed. This event happens when the user presses the left mouse button while the mouse cursor is on top of the instance. 2. From the tabbed page labeled score include the Set Score action. As new score indicate a value of 10. Also click on the box next to the property Relative to enable it. When Relative is enabled the value is added to the current score. Otherwise the score would be replaced by the value. 3. From the page main1 include a Sound action. As Sound indicate snd_click. Leave Loop to false. 4. From the page move include a Jump to Random action. This action places the instance in a random collision-free position. The parameters can be left unchanged. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 66

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 67

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 68

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 69

Drag and drop here 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 70

Drag and drop here 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 71

Drag and drop here 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 72

Creating the Room 1. From the Resources menu choose Create Room. 2. On the left you see three tabbed pages. Select the page labeled settings. In the Name field type in rm_main. In the Caption for the room field type Catch the Clown. 3. Select the objects tab. Enlarge the window somewhat such that you can see the complete room area at the right. At the top, change the value for Snap X and Snap Y to 32. As the size of our sprites is 32, this makes it easier to place the sprites at the correct locations. 4. At the left you see the image of the clown object. This is the currently selected object. Place one instance of it in the room by clicking with the mouse somewhere in the centre of the grey area. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 73

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 74

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 75

rm_main Catch the Clown 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 76

32 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 77

<Shift> key + drag the mouse with the mouse button pressed. Obj_wall 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 78

Saving and Testing 1. Save from the File menu 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 79

Create background music 1. From the Resources menu, choose Create Sound. The Sound Properties form appears. Click on the Name field and rename it to snd_music. 2. Click on the Load Sound button, navigate to the Resources folder and select the sound file music.mid. Note that this is a midi file. Midi files are often used for background music as they use less memory. 3. Press the OK button to close the form. 4. Reopen the clown object by double clicking on it in the resource list at the left of the window. 5. Select the Create event. From the main1 page include a Play Sound action. As Sound indicate snd_music and set Loop to true because we want the music to repeat itself forever. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 80

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 81

v v snd_music v v 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 82

v v v v v v v snd_music true v 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 83

Add a background image 1. From the Resources menu, choose Create Background. The Background Properties form appears. Click on the Name field and rename it to back_main. 2. Click on the Load Background button, navigate to the Resources folder and select the image file background.bmp. Note that the Transparent property is default disabled for background images. 3. Press OK to close the form. 4. Reopen the room by double clicking on it in the resource list. 5. Select the backgrounds tab. Unselect the property Draw background color because we no longer need the gray background. 6. Click on the little menu icon in the middle and pick the back_main in the popup menu. Note the two properties Tile Hor. and Tile Vert. They indicate that the background must be tiled horizontally and vertically, that is, repeated to fill the whole room. For this to work correctly the background image must be made such that it nicely fits against itself without showing cracks. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 84

v 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 85

v v back_main v v 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 86

v v 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 87

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 88

Adding the alarm clock 1. Reopen the clown object by double clicking on it in the resource list at the left of the window. 2. Select the Create event. From the main2 page include a Set Alarm action. As Number of steps indicate 50. The alarm number we keep as Alarm 0. 3. Click on Add Event. Choose the button Alarm and in the popup menu select Alarm 0. 4. In the event include the Move Fixed action (from the move tab). Select all eight arrows. Set the Speed to 0 and enable the Relative property. In this way 0 is added to the speed, that is, it does not change. 5. To set the alarm clock again, include a Set Alarm action. As Number of steps again indicate 50. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 89

v v v v 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 90

Drag and drop here 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 91

Drag and drop here 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 92

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 93

Adding a help text 1. From the Resources menu select Change Game Information. A simple text editor will appear. 2. Type in some useful information for the player, in particular about the goal of the game and the way to control it. You can use different fonts, sizes, and colors. 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 94

v v v 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 95

영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 96

실행결과 영산대학교 2011 년도 2 학기게임제작개론 ( 채영숙 ) 97