Game Maker Tutorial2. A SCROLLING SHOOTER 1945
2011-09-09영산대학교 2011년도 2학기 게임제작개론 1
Global Variables score the current value of the score
lives the current number of lives
mouse_x x-position of the mouse
mouse_y y-position of the mouse
room_speed current speed of the room (in steps per second)
room_caption caption shown in the window title
room_width width of the room in pixels
room_height height of the room in pixels
2011-09-09
영산대학교 2011년도 2학기게임제작개론
2
Introduction Very popular type of arcade action game
The player controls an object, for example a plane, spaceship, or car, which moves over a scrolling background.
Obstacles appear on the background that must be avoided and enemies appear that must be shot.
Often bonus objects appear that can be picked up for addition benefits.
During the game the number, variety, and strength of the enemies increases making it harder and harder to survive.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
3
Agenda
The player flies in a plane over a sea and
enemy planes try to destroy the player.
How to create the illusion of motion using a
scrolling background
How to control the plane
How to make enemies and bullets
How to deal with the score, with lives and
with the damage of the plane.
The use of variables.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
4
Variables and properties x : the x-coordinate of the instance
y : the y-coordinate of the instance
hspeed : the horizontal speed (in pixels per step)
vspeed : the vertical speed (in pixels per step)
direction: the current direction of motion in degrees (0-360; 0 is horizontally to the right)
speed: the current speed in this direction
visible: whether the object is visible (1) or invisible (0)
solid: whether the object is solid (1) or not solid (0)
2011-09-09
영산대학교 2011년도 2학기게임제작개론
5
For Example
Our spaceship to be able to shoot only once every five steps in the game
◦ can_shoot : the variable to see whether this is allowed
1 : shooting is allowed
0 : shooting is temporarily not allowed
◦ the creation event/ an alarm event
variables to indicate whether the spaceship has an active shield, whether it has some special weapon upgrade, etc.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
6
Set the value of a variable
If a variable has a value
2011-09-09
영산대학교 2011년도 2학기게임제작개론
7
Set the value of a variable
To change the value of a
given variable
To specify the name of
the variable and the new
value
2011-09-09
영산대학교 2011년도 2학기게임제작개론
8
If a variable has a value To check what the value of
a particular variable is
◦ If the value of the variable is equal to the number given, the question returns true and the next action or block of actions is performed.
◦ If it is not equal, the next action or block of actions is not performed.
To indicate that the check should be whether the variable value is smaller than the given value or larger than the given value
2011-09-09
영산대학교 2011년도 2학기게임제작개론
9
2011-09-09영산대학교 2011년도 2학기 게임제작개론 10
2011-09-09영산대학교 2011년도 2학기 게임제작개론 11
The player controls the big yellow plane that flies upwards.
All four types of enemy planes are shown in the image above.
At the bottom the score, number of lives left, and
the damage (in the form of the green bar) are shown.
1945 design document
Description
◦ Control a plane flying over a sea
◦ Encounter an increasing number of enemy planes
that try to destroy you.
◦ Avoid these or shoot them.
◦ The goal is to stay alive as long as you can and to
destroy as many enemy planes as you can.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
12
Game objects
◦ The background : A scrolling sea with some islands.
◦ The player’s plane: Flies over this sea.
◦ Bullets: Shot to destroy enemy planes.
◦ Four types of enemy planes:
A plane that you encounter and should be destroyed,
A plane that fires bullets downwards,
A plane that fires bullets towards the player’s plane,
and a fast enemy plane that comes from behind rather
than from the front.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
13
Sounds
◦ There are some explosion sounds and there is some background music.
Controls
◦ The player controls the game with the arrow keys.
◦ With the space key you fire a bullet.
◦ Only one bullet can be fired every five steps.
Game flow
◦ The player immediately jumps into the game.
◦ The player has three lives.
◦ When all lives are gone a high-score table is shown.
◦ Pressing the <F1> (help) key will give a brief explanation.
◦ Pressing the <Esc> key will end the game.
Levels
◦ There is just one level, but more and more enemy planes will arrive:
◦ first only the easy type but later the more difficult types.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
14
- SCROLLING
BACKGROUND
:- 4 WAYS MOVING OBJECTS
2011-09-09영산대학교 2011년도 2학기 게임제작개론 15
작업 파일 위치
Tutorial 중 shooter.zip 파일 풀기
GM Tutorial(2)-Scrooling Shooter
◦ Examples
◦ Resources
◦ GM Tutorial -Scrooling Shooter.pdf
2011-09-09
영산대학교 2011년도 2학기게임제작개론
16
The illusion of motion(동작의 환상)
In the game 1945 the game world scrolls
vertically.
The impression as if it flies over the scrolling
background
2011-09-09
영산대학교 2011년도 2학기게임제작개론
17
How do we create a scrolling background
Two possibilities
1. To use a tiling background image that
moves downwards through the room
2. To build a much larger room but only show part
of the room using a so-called view
small image as a background resource
name : back_water
2011-09-09
영산대학교 2011년도 2학기게임제작개론
18
2011-09-09영산대학교 2011년도 2학기 게임제작개론 19
Water.png
back_water
2011-09-09영산대학교 2011년도 2학기 게임제작개론 20
To change three settings
2011-09-09영산대학교 2011년도 2학기 게임제작개론 21
1. Uncheck the box labeled Draw background color
2011-09-09영산대학교 2011년도 2학기 게임제작개론 22
2. In the middle click on the menu icon and
select the back_water background image
2011-09-09영산대학교 2011년도 2학기 게임제작개론 23
3. To make the background move, set the Vert.
speed to 2.
2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 24
To enhance the feeling of motion
2011-09-09영산대학교 2011년도 2학기 게임제작개론 25
island1.png island2.png island3.png
spr_island1
island1.png
spr_island2
island2.png
spr_island3
island3.png
2011-09-09영산대학교 2011년도 2학기 게임제작개론 26
spr_island2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 27
spr_island3
2011-09-09영산대학교 2011년도 2학기 게임제작개론 28
Step event of the island
When the island disappears below the bottom
of the room we want to make it reappear at
the top
2011-09-09
영산대학교 2011년도 2학기게임제작개론
29
2011-09-09영산대학교 2011년도 2학기 게임제작개론 30
obj_island1
2011-09-09영산대학교 2011년도 2학기 게임제작개론 31
Drag & drop
Control tab
Test Variable
2011-09-09영산대학교 2011년도 2학기 게임제작개론 32
yroom_height
larger than
A random position of objects
To jump to a random position above the
room
◦ function random()
◦ random(room_width) as the x-coordinate
2011-09-09
영산대학교 2011년도 2학기게임제작개론
33
2011-09-09영산대학교 2011년도 2학기 게임제작개론 34
random(room_width)
-65
Drag & drop
move tab
2011-09-09영산대학교 2011년도 2학기 게임제작개론 35
2011-09-09영산대학교 2011년도 2학기 게임제작개론 36
The main plane
A sprite for the plane
◦ a propeller plane
◦ a sprite consisting of
three images
2011-09-09
영산대학교 2011년도 2학기게임제작개론
37
Set the X and Y of the Origin to 32
2011-09-09
영산대학교 2011년도 2학기게임제작개론
38
2011-09-09영산대학교 2011년도 2학기 게임제작개론 39
spr_myplane
32 32Myplane_sprite3.png
2011-09-09영산대학교 2011년도 2학기 게임제작개론 40
2011-09-09영산대학교 2011년도 2학기 게임제작개론 41
obj_myplane
x
40
larger than
2011-09-09영산대학교 2011년도 2학기 게임제작개론 42
-4
0
2011-09-09영산대학교 2011년도 2학기 게임제작개론 43
2011-09-09영산대학교 2011년도 2학기 게임제작개론 44
2011-09-09영산대학교 2011년도 2학기 게임제작개론 45
2011-09-09영산대학교 2011년도 2학기 게임제작개론 46
2011-09-09영산대학교 2011년도 2학기 게임제작개론 47
2011-09-09영산대학교 2011년도 2학기 게임제작개론 48
2011-09-09영산대학교 2011년도 2학기 게임제작개론 49
2011-09-09영산대학교 2011년도 2학기 게임제작개론 50
640(room_width)
480
(room_height)
(0,0)
(640,480)
[2] ENEMY AND WEAPON- 파일명: 1945_2.GMK
2011-09-09영산대학교 2011년도 2학기 게임제작개론 51
Enemy and Weapon
To extend our game with some enemy planes and a canon on the plane that you can fire
◦ a bullet sprite
◦ The bullet should be fired when the user presses the space key
◦ Allow the player to fire two bullets every second
a variable can_shoot : set this variable to 1/0
◦ If so we create a bullet just in front of the ship, relative at position (0,-16)
◦ Set alarm 0 to 15.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
52
Create a Sprite : Bullet(1)
2011-09-09영산대학교 2011년도 2학기 게임제작개론 53
spr_bullet
Bullet.png
Create an bullet object
an object with
bullet sprite.
◦ the default depth 0
appear below the
plane but above the
islands.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
54
spr_bullet
obj_bullet
Creation event : bullet
2011-09-09영산대학교 2011년도 2학기 게임제작개론 55
• we give it a vertical speed of –8 to make it
move upwards.
-8
Move tab
2011-09-09영산대학교 2011년도 2학기 게임제작개론 56
y
-16
smaller than
Control tab
- variables
main1 tab
- object
2011-09-09영산대학교 2011년도 2학기 게임제작개론 57
can_shoot
1
Control tab
- variables
2011-09-09영산대학교 2011년도 2학기 게임제작개론 58
can_shoot
1
Control tab
- variables
2011-09-09영산대학교 2011년도 2학기 게임제작개론 59
2011-09-09영산대학교 2011년도 2학기 게임제작개론 60
can_shoot
1
equal to
Control tab
- variables
2011-09-09영산대학교 2011년도 2학기 게임제작개론 61
obj_bullet
0
-16
main1 tab
- Objects
2011-09-09영산대학교 2011년도 2학기 게임제작개론 62
can_shoot
0
Control tab
- variables
2011-09-09영산대학교 2011년도 2학기 게임제작개론 63
15
Alam 0
Main2 tab
-Timing
2011-09-09영산대학교 2011년도 2학기 게임제작개론 64
2011-09-09영산대학교 2011년도 2학기 게임제작개론 65
Make the first enemy
a small plane
◦ that simply flies downwards
◦ It does not shoot but when it hits the main plane
the game is lost.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
66
Create a sprite
for the enemy plane and an object
◦ In the creation event we set the vertical speed to 4
to make the plane fly downwards.
◦ When the plane reaches the bottom of the room
we make it reappear at a random place at the top
of the room, in exactly the same way as we did for
the islands.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
67
Create a sprite : an enemy
2011-09-09
영산대학교 2011년도 2학기게임제작개론
68
spr_enemy1
enemy1_sprite3.png
Create enemy events
2011-09-09
영산대학교 2011년도 2학기게임제작개론
69
• Set the vertical speed to 4 to make the plane fly
downwards
4
Move of Enemy plane
When the plane reaches the bottom of the
room we make it reappear at a random place
at the top of the room
2011-09-09
영산대학교 2011년도 2학기게임제작개론
70
Object Event : obj_enemy1
2011-09-09영산대학교 2011년도 2학기 게임제작개론 71
y
room_height+32
larger than random(room_width)
-16
Collision events for the enemy plane
The collision event with the bullet
◦ destroy the enemy plane, and
The collision event with the main plane
◦ destroy the main plane and end the game
2011-09-09
영산대학교 2011년도 2학기게임제작개론
72
The collision event with the bullet
A number of actions
◦ A sound for a small explosion
◦ A sprite that indicates the explosion
2011-09-09
영산대학교 2011년도 2학기게임제작개론
73
Sounds for two small explosion
2011-09-09영산대학교 2011년도 2학기 게임제작개론 74
snd_explosion1snd_explosion2
snd_explosion1.wav
snd_explosion2.wav
Create a Sprite : Explosion1
2011-09-09영산대학교 2011년도 2학기 게임제작개론 75
spr_explosion1
explosion1 _sprite6.png
Create a Sprite : Explosion2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 76
spr_explosion2
explosion2 _sprite7.png
Create an Event : explosion1
2011-09-09영산대학교 2011년도 2학기 게임제작개론 77
obj_explosion1
spr_explosion1
Create an Event : explosion2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 78
Tab: main2
Tab: score
Tab: main2
Tab: main1obj_explosion2
spr_explosion2
1000
true
Create an Event : obj_enemy1&obj_bullet
obj_enemy1&obj_my_plane
2011-09-09영산대학교 2011년도 2학기 게임제작개론 79
2011-09-09영산대학교 2011년도 2학기 게임제작개론 80
Tab: main1
Tab: main1
Tab: main1
2011-09-09영산대학교 2011년도 2학기 게임제작개론 81
Tab: move
Tab: score
Create an Event : obj_enemy1-obj_myplane
2011-09-09영산대학교 2011년도 2학기 게임제작개론 82
Tab: main1
Tab: main1
Tab: main1
Place an enemy plane in the room
We start with just one enemy plane and get
more of them over time.
Create one more object
◦ controller_enemy
To control the creation of enemy planes
make the object invisible during the game by unchecking
the box labeled Visible.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
83
2011-09-09영산대학교 2011년도 2학기 게임제작개론 84
Creation Event
create an enemy place at a random location
just above the room.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
85
Tab: main1
Set the alarm clock to 200.
In the event for this alarm clock we create another
enemy plane and set the alarm clock again, but this time
to 500.
The effect is that at the beginning of the game there is
one enemy plane. After 200 steps, that is, about seven
seconds, a second enemy plane appears. After about 15
seconds, a third plane appears, etc.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
86
2011-09-09영산대학교 2011년도 2학기 게임제작개론 87
Tab: main2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 88
Tab: main1
2011-09-09영산대학교 2011년도 2학기 게임제작개론 89
Tab: 2
Place one instance of the controller object in
the room
2011-09-09
영산대학교 2011년도 2학기게임제작개론
90
실행결과
2011-09-09영산대학교 2011년도 2학기 게임제작개론 91
실습작업 파일(11월 16일)
Scrolling Shooter Tutorial Directory
◦ Examples -> 1945-2.gmk
◦ Resources-> *.bmp, *.png, *.gif, *.ico, *.mid, *.wav
◦ GM Tutorial- Scrolling Shooter.pdf
2011-09-09
영산대학교 2011년도 2학기게임제작개론
92
[3]SCORE, LIVES, DAMAGE
2011-09-09영산대학교 2011년도 2학기 게임제작개론 93
2011-09-09영산대학교 2011년도 2학기 게임제작개론 94
Agenda
Make a new object called the controller_life.
◦ It does not need a sprite as we will control the
drawing itself using the drawing event.
◦ To show the score, the damage (in the black area
at the left), and the number of planes left, that is
the number of lives.
Check for the health and lives
◦ Make some changes in the collision event of the
enemy plane and the main plane.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
95
controller_life object: Create Object
2011-09-09영산대학교 2011년도 2학기 게임제작개론 96
controller-life
controller_life object: Create Events
2011-09-09영산대학교 2011년도 2학기 게임제작개론 97
2011-09-09
영산대학교 2011년도 2학기게임제작개론
98
Tab: score
0 3 100 don’t show
No more Lives Events
2011-09-09영산대학교 2011년도 2학기 게임제작개론 99
Tab: score
Tab: main2
back_water
No more Health Events
2011-09-09영산대학교 2011년도 2학기 게임제작개론 100
2011-09-09영산대학교 2011년도 2학기 게임제작개론 101
Tab: score
Tab: main1
Tab: main1
100 snd_explosion2
obj_explosion2
not
obj_myplane
Sprite Addition: spr_bottom
2011-09-09영산대학교 2011년도 2학기 게임제작개론 102
Sprite Addition: spr_bottom
2011-09-09영산대학교 2011년도 2학기 게임제작개론 103
bottom.png
spr_bottom
Sprite Addition: spr_life
2011-09-09영산대학교 2011년도 2학기 게임제작개론 104
Sprite Addition: spr_life
2011-09-09영산대학교 2011년도 2학기 게임제작개론 105
spr_life
life.png
Draw Events Addition :controller_life
2011-09-09영산대학교 2011년도 2학기 게임제작개론 106
Draw Events Addition :controller_life
2011-09-09영산대학교 2011년도 2학기 게임제작개론 107
Tab: draw
Tab: draw
Tab: score
spr_bottom
0
404
-1
180
440
2011-09-09영산대학교 2011년도 2학기 게임제작개론 108
Tab: score
Tab: score
x1:12
y1:449
x2:138
y2:459back color: none
bar color:green to red
16
410
spr_life
Controller_enemy Object Addition
2011-09-09영산대학교 2011년도 2학기 게임제작개론 109
Controller_enemy Object
2011-09-09영산대학교 2011년도 2학기 게임제작개론 110
Tab: main1 tab
obj_enemy1
random(room_width)
-100
Conroller_life in Room
2011-09-09영산대학교 2011년도 2학기 게임제작개론 111
실행 결과
2011-09-09영산대학교 2011년도 2학기 게임제작개론 112
[4] MORE ENEMIES- 파일명: 1945_4.GMK
2011-09-09영산대학교 2011년도 2학기 게임제작개론 113
Agenda
To add three new types of enemy planes to
our game.
◦ One will fire bullets straight down.
◦ The second plane will fire bullets towards the main
plane.
◦ The third type will not fire bullets but comes from
the bottom of the room and is more difficult to
avoid or shoot.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
114
실습작업 파일(11월 23일)
Scrolling Shooter Tutorial Directory
◦ Examples -> 1945-3.gmk
◦ Resources-> *.bmp, *.png, *.gif, *.ico, *.mid, *.wav
◦ GM Tutorial- Scrolling Shooter.pdf
2011-09-09
영산대학교 2011년도 2학기게임제작개론
115
Create a Sprite enemy planes:spr_enemy2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 116
spr_enemy2
enemy2_strip3.png
Create a Sprite enemy planes: spr_enemy3
2011-09-09영산대학교 2011년도 2학기 게임제작개론 117
spr_enemy3
enemy3_strip3.png
Create a Sprite enemy planes: spr_enemy4
2011-09-09영산대학교 2011년도 2학기 게임제작개론 118
spr_enemy4
enemy4_strip3.png
Create a Sprite enemy bullet:
spr_enemybullet1
2011-09-09영산대학교 2011년도 2학기 게임제작개론 119
enemybullet1.png
spr_enemybullet1
Create a Sprite enemy bullet:
spr_enemybullet2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 120
enemybullet2.png
spr_enemybullet2
Create sound : snd_explosion3
2011-09-09영산대학교 2011년도 2학기 게임제작개론 121
snd_explosion1.wav
snd_explosion3
Create enemybullet object
2011-09-09
영산대학교 2011년도 2학기게임제작개론
122
spr_enemybullet 1
obj_enemybullet 1
2011-09-09영산대학교 2011년도 2학기 게임제작개론 123
8
Move tab
2011-09-09영산대학교 2011년도 2학기 게임제작개론 124
y
room_height+16
lager than
Control tab - variables
main1 tab - object
2011-09-09영산대학교 2011년도 2학기 게임제작개론 125
Create Object Obj_enemybullet2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 126
2011-09-09영산대학교 2011년도 2학기 게임제작개론 127
2011-09-09영산대학교 2011년도 2학기 게임제작개론 128
2011-09-09영산대학교 2011년도 2학기 게임제작개론 129
Create Object : obj_enemy2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 130
obj_enemy2
spr_enemy2
Create Event : obj_enemy2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 131
2011-09-09영산대학교 2011년도 2학기 게임제작개론 132
4
Tab: move
Create Event: step
2011-09-09영산대학교 2011년도 2학기 게임제작개론 133
2011-09-09영산대학교 2011년도 2학기 게임제작개론 134
random(room_width)
-16
y
room_height+32
larger than
Tab: control
Tab: move
2011-09-09영산대학교 2011년도 2학기 게임제작개론 135
Tab: control
Tab: main1
obj_enemybullet1
0
1630
Create Event: collision with obj_myplane
2011-09-09영산대학교 2011년도 2학기 게임제작개론 136
2011-09-09영산대학교 2011년도 2학기 게임제작개론 137
Tab: main1
Tab: main1
snd_explosion1
false
obj_explosion1
0
0
2011-09-09영산대학교 2011년도 2학기 게임제작개론 138
Tab: move
Tab: score
random(room_width)
-16 -30
Create Event: collision with obj_bullet
2011-09-09영산대학교 2011년도 2학기 게임제작개론 139
2011-09-09영산대학교 2011년도 2학기 게임제작개론 140
Tab: main1
Tab: main1
Tab: main1
snd_explosion1
false
obj_explosion1
0
0
2011-09-09영산대학교 2011년도 2학기 게임제작개론 141
5->10random(room_width)
-16 10
Create Object : obj_enemy3
2011-09-09영산대학교 2011년도 2학기 게임제작개론 142
2011-09-09영산대학교 2011년도 2학기 게임제작개론 143
2011-09-09영산대학교 2011년도 2학기 게임제작개론 144
30->80
obj_enemybullet1
-> obj_enemybullet2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 145
2011-09-09영산대학교 2011년도 2학기 게임제작개론 146
10->20
Create Object : obj_enemy4
2011-09-09영산대학교 2011년도 2학기 게임제작개론 147
2011-09-09영산대학교 2011년도 2학기 게임제작개론 148
2011-09-09영산대학교 2011년도 2학기 게임제작개론 149
2011-09-09영산대학교 2011년도 2학기 게임제작개론 150
10->40
Change Object : obj_enemy1
2011-09-09영산대학교 2011년도 2학기 게임제작개론 151
4
2011-09-09영산대학교 2011년도 2학기 게임제작개론 152
2011-09-09영산대학교 2011년도 2학기 게임제작개론 153
2011-09-09영산대학교 2011년도 2학기 게임제작개론 154
10->5
8
Create Object Event enemy bullet:
obj_enemybullet1
2011-09-09영산대학교 2011년도 2학기 게임제작개론 155
Tab: move
8
Step Event of obj_enemybullet1
2011-09-09영산대학교 2011년도 2학기 게임제작개론 156
Tab: control
Tab: main
y
room_height+16
larger than
2011-09-09영산대학교 2011년도 2학기 게임제작개론 157
Tab: main1
Tab: main1
Tab: score
snd_explosion3
false
-5
Create Object Event enemy bullet:
obj_enemybullet2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 158
2011-09-09영산대학교 2011년도 2학기 게임제작개론 159
Tab: control
Tab: move
Tab: move
obj_myplane.x: the value of the x
coordinate of the plane
Tab: control
obj_myplane
0
larger than
obj_myplane.x
obj_myplane.y
8
8
2011-09-09영산대학교 2011년도 2학기 게임제작개론 160
Tab: main1
Tab: main1
Tab: score
snd_explosion3
false
-5
2011-09-09영산대학교 2011년도 2학기 게임제작개론 161
Tab: main1
obj_explosion2 : addition
2011-09-09영산대학교 2011년도 2학기 게임제작개론 162
Tab: main1
Tab: score
obj_myplane
0
0-1
controller_enemy: addition
2011-09-09영산대학교 2011년도 2학기 게임제작개론 163
Tab: main2
1000
Alam12000
Alam2
3000
Alam3
2011-09-09영산대학교 2011년도 2학기 게임제작개론 164
obj_enemy2
random(room_width)
-16
500
Alam1
2011-09-09영산대학교 2011년도 2학기 게임제작개론 165
obj_enemy3
random(room_width)
-16
1000
Alam2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 166
obj_enemy4
random(room_width)
room_height+16
300
Alam3
[5]FINISHING THE GAME -파일명: 1945_5.GMK
2011-09-09영산대학교 2011년도 2학기 게임제작개론 167
Agenda
To turn it into a real game a couple of finishing
touches
◦ Some background music, a loading image, a better
icon, etc.
◦ A delay in planes to reappear when shot, making it
more interesting for the player to try and shoot
planes, rather than simply avoid them.
◦ A special fire bonus
when the player reaches a score of 400
and another one when he reaches 1000 points.
2011-09-09
영산대학교 2011년도 2학기게임제작개론
168
Create a background: back_score
2011-09-09영산대학교 2011년도 2학기 게임제작개론 169
Background: back_score
2011-09-09영산대학교 2011년도 2학기 게임제작개론 170
score.png
Font: Score_font
2011-09-09영산대학교 2011년도 2학기 게임제작개론 171
Create Sound: snd_background
2011-09-09영산대학교 2011년도 2학기 게임제작개론 172
Addition of obj_myplane
2011-09-09영산대학교 2011년도 2학기 게임제작개론 173
2011-09-09영산대학교 2011년도 2학기 게임제작개론 174
score
400
Larger than
obj_bullet
-24
-8
2011-09-09영산대학교 2011년도 2학기 게임제작개론 175
score
1000
Larger than
obj_bullet
24
-8
2011-09-09영산대학교 2011년도 2학기 게임제작개론 176
obj_bullet
0
-16
obj_bullet
0
-48
Change obj_enemybullet1
2011-09-09영산대학교 2011년도 2학기 게임제작개론 177
snd_explosion3
false -5
2011-09-09영산대학교 2011년도 2학기 게임제작개론 178
Change obj_enemybullet2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 179
2011-09-09영산대학교 2011년도 2학기 게임제작개론 180
obj_myplane
0
Larger than
obj_myplane.x
obj_myplane.y
8
2011-09-09영산대학교 2011년도 2학기 게임제작개론 181
snd_explosion3
false -5
2011-09-09영산대학교 2011년도 2학기 게임제작개론 182
Change controller_enemy
2011-09-09영산대학교 2011년도 2학기 게임제작개론 183
2011-09-09영산대학교 2011년도 2학기 게임제작개론 184
obj_enemy1
random(room_width)
-16
obj_enemy1
8
Smaller than500
Alam 0
2011-09-09영산대학교 2011년도 2학기 게임제작개론 185
obj_enemy2
random(room_width)
-16
obj_enemy2
5
Smaller than
500
Alam 1
2011-09-09영산대학교 2011년도 2학기 게임제작개론 186
obj_enemy3
random(room_width)
-16
obj_enemy3
3
smaller than
1000
Alam 2
2011-09-09영산대학교 2011년도 2학기 게임제작개론 187
obj_enemy4
random(room_width)
room_height+16
500
Alam 3
2011-09-09영산대학교 2011년도 2학기 게임제작개론 188
controller_lifecontroller_enemy
2011-09-09영산대학교 2011년도 2학기 게임제작개론 189
Check at Global Game Settings
2011-09-09영산대학교 2011년도 2학기 게임제작개론 190
실행 결과
2011-09-09영산대학교 2011년도 2학기 게임제작개론 191
[6] USING TIME LINES-파일명: 1945_6.GMK
2011-09-09영산대학교 2011년도 2학기 게임제작개론 192
Create Time lines : (Advanced Mode)
2011-09-09영산대학교 2011년도 2학기 게임제작개론 193
tl_enemies
Time line: tl_enemies
2011-09-09영산대학교 2011년도 2학기 게임제작개론 194
Time line : step 0
2011-09-09영산대학교 2011년도 2학기 게임제작개론 195
2011-09-09영산대학교 2011년도 2학기 게임제작개론 196
Time line : step 100
2011-09-09영산대학교 2011년도 2학기 게임제작개론 197
2011-09-09영산대학교 2011년도 2학기 게임제작개론 198
Time line : step 200
2011-09-09영산대학교 2011년도 2학기 게임제작개론 199
Step 200
2011-09-09영산대학교 2011년도 2학기 게임제작개론 200
Time line : step 300
2011-09-09영산대학교 2011년도 2학기 게임제작개론 201
2011-09-09영산대학교 2011년도 2학기 게임제작개론 202
100 – 150 – 200 – 250 – 300
- 350 – 400 – 450 – 500
Time line : step 400
2011-09-09영산대학교 2011년도 2학기 게임제작개론 203
Step 400
2011-09-09영산대학교 2011년도 2학기 게임제작개론 204
100 – 150 – 200 – 250 – 300
- 350 – 400 – 450 – 500
Time line : step 500/530
2011-09-09영산대학교 2011년도 2학기 게임제작개론 205
2011-09-09영산대학교 2011년도 2학기 게임제작개론 206
100 – 150 – 200 – 250 – 300
- 350 – 400 – 450 – 500
Time line : step 600
2011-09-09영산대학교 2011년도 2학기 게임제작개론 207
Step 600
2011-09-09영산대학교 2011년도 2학기 게임제작개론 208
Step 1000
2011-09-09영산대학교 2011년도 2학기 게임제작개론 209
Controller enemy 부분 수정
2011-09-09영산대학교 2011년도 2학기 게임제작개론 210
[7] A ROOM WITH A VIEW:- -파일명: 1945_7.GMK
2011-09-09영산대학교 2011년도 2학기 게임제작개론 211
2011-09-09영산대학교 2011년도 2학기 게임제작개론 212
2011-09-09영산대학교 2011년도 2학기 게임제작개론 213
2011-09-09영산대학교 2011년도 2학기 게임제작개론 214
2011-09-09영산대학교 2011년도 2학기 게임제작개론 215
Rooms : rm_main
2011-09-09영산대학교 2011년도 2학기 게임제작개론 216
2011-09-09영산대학교 2011년도 2학기 게임제작개론 217
2011-09-09영산대학교 2011년도 2학기 게임제작개론 218
Delete Events of obj_island1, 2 3
2011-09-09영산대학교 2011년도 2학기 게임제작개론 219
2011-09-09영산대학교 2011년도 2학기 게임제작개론 220
Change Actions of controller_life
2011-09-09영산대학교 2011년도 2학기 게임제작개론 221
기말고사 Report
제출일: 12월 3일 금요일 수업시간에 발표
팀 구성 : 1인 이상 4인 이하
주제: 자유
제출물: 제작 *.gmk파일과 PT 자료
제출 방법◦ 수업시간에 팀별 발표(PT 준비)
제작의도, 제작방법 및 내용, 자체평가
◦ 학생 상호간 평가 이해도, 완성도, 성실성, 창의성, 발표력
기말고사 총점의 50% 반영
2011-09-09
영산대학교 2011년도 2학기게임제작개론
222