Yog tias koj xav tsim koj tus kheej kev ua si hauv computer, tom qab ntawd koj yuav tsum kawm paub yuav ua li cas nrog cov program tshwj xeeb rau kev tsim cov games. Cov kev pab cuam ntawd tso cai rau koj los tsim cov cim, kos duab kom muaj zog thiab ua yeeb yam rau lawv. Tau kawg, qhov no tsis yog tag nrho cov npe ntawm qhov muaj peev xwm. Peb yuav txiav txim siab cov txheej txheem tsim cov kev ua si hauv ib qho ntawm cov program no - Game Game Game.
Game Maker yog ib qho uas yooj yim thiab nrov tshaj plaws rau tsim 2D kev ua si. Ntawm no koj tuaj yeem tsim kev ua si uas siv drag'n'drop interface lossis siv built-in GML cov lus (peb yuav ua haujlwm nrog nws). Game Maker yog qhov kev xaiv zoo tshaj plaws rau cov uas nyuam qhuav pib los tsim kev ua si.
Download tau Game Maker dawb
Yuav ua li cas rau nruab cov Game Game
1. Ua raws li cov kab ntawv saum toj saud thiab muaj mus rau hauv official lub vev xaib ntawm programme. Koj yuav raug coj mus rau nplooj ntawv rub koj nyob qhov twg tuaj yeem nrhiav qhov dawb version ntawm qhov kev pab cuam - Dawb download tau.
2. Tam sim no koj yuav tsum rau npe. Nkag mus rau tag nrho cov ntaub ntawv tsim nyog thiab mus rau lub npov xa ntawv uas koj yuav tau txais tsab ntawv lees paub. Ua raws li qhov txuas thiab nkag rau hauv koj tus lej.
3. Tam sim no koj tuaj yeem rub tau qhov kev ua si.
4. Tab sis tsis yog txhua yam. Peb tau rub txoj haujlwm, tsuas yog siv nws koj xav tau daim ntawv tso cai. Peb tuaj yeem tau txais nws dawb rau 2 lub hlis. Txhawm rau ua qhov no, nyob ntawm tib nplooj ntawv los ntawm qhov chaw koj rub tawm qhov kev ua si, hauv "Ntxiv Cov Ntawv Tso Cai" cov khoom, nrhiav Amazon tab thiab nyem rau ntawm "Nyem qhov no" khawm rov qab.
5. Hauv qhov rai uas qhib, koj yuav tsum nkag mus rau hauv koj tus account hauv Amazon lossis tsim nws thiab tom qab ntawd nkag mus.
6. Tam sim no peb muaj ib qhov tseem ceeb uas koj tuaj yeem nrhiav rau hauv qab ntawm tib phab. Luam rau nws.
7. Peb mus dhau ntawm txoj kev teeb tsa txhim kho feem ntau.
8. Tib lub sijhawm, lub chaw teeb tsa yuav muab peb rau nruab GameMaker: Player. Peb nruab nws heev. Ib tug neeg uas ua ntawv raug tseev kom ua rau kev sim ua si.
Qhov no ua tiav qhov kev teeb tsa thiab peb pib ua haujlwm nrog qhov program.
Yuav Siv Cov Game Game Ua Li Cas
Khiav qhov kev pab cuam. Hauv seem thib peb, ntaus tus lej tsav uas peb tau theej, thiab hauv ob peb nkag mus rau tus ID nkag mus thiab tus lej zais. Tam sim no rov qab qhov kev pab cuam. Nws ua haujlwm!
Mus rau hauv Tshiab tab thiab tsim qhov project tshiab.
Tam sim no tsim ib sprite. Txoj cai-nias rau ntawm Sprites thiab tom qab ntawd Tsim Sprite.
Muab nws lub npe rau nws. Cia cov neeg uas ua ntawv yuav thiab nyem Kho kom raug Sprite. Lub qhov rai yuav qhib rau qhov uas peb tuaj yeem hloov lossis tsim qhov chaw tsim hluav taws xob. Tsim qhov tshiab sprite, peb yuav tsis hloov qhov loj.
Tam sim no ob npaug nyem rau ntawm qhov ntsuas tshiab. Hauv kev kho teeb meem uas qhib, peb tuaj yeem kos ib qhov chaw tsim khoom. Peb tam sim no teeb duab neeg uas ua ntawv, thiab tshwj xeeb tshaj yog tshwj xeeb tank. Txuag peb daim duab.
Txhawm rau ua kom muaj kev txav txav ntawm peb lub tank, luam thiab muab cov duab nrog cov sib txuas ua ke Ctrl + C thiab Ctrl + V, thiab kos rau qhov chaw sib txawv rau cov ciav hlau. Koj tuaj yeem ua cov ntawv luam ntau li koj pom zoo. Cov duab ntxiv, nthuav ntau cov animation.
Tam sim no koj tuaj yeem khij lub npov nyob ib sab ntawm cov khoom ua ntej saib. Koj yuav pom cov animation tsim thiab koj tuaj yeem hloov cov ncej tus nqi. Txuag cov duab thiab muab nws tso rau hauv nruab khawm. Peb tus cwj pwm yog npaj txhij.
Tib txoj kev, peb yuav tsum tsim peb qhov txuas ntxiv: tus yeeb ncuab, phab ntsa thiab projectile. Hu lawv tus yeeb ncuab, phab ntsa thiab mos txwv, feem.
Tam sim no koj yuav tsum tsim cov khoom. Ntawm Cov Khoom tab, nyem-xaiv thiab xaiv Tsim cov khoom. Tam sim no tsim ib qho khoom siv rau txhua tus sprite: ob_player, ob_enemy, ob_wall, ob_bullet.
Saib xyuas!
Thaum tsim cov khoom ntsa, xyuas lub thawv Lub thawv. Qhov no yuav ua rau lub phab ntsa kom ruaj khov thiab tso tsheb hlau luam yuav hla tsis dhau nws.
Peb tig mus rau qhov nyuaj. Qhib lub ob_player kwv thiab mus rau Control tab. Tsim kev tshwm sim tshiab nrog Ntxiv Ntxiv khawm thiab xaiv Tsim. Tam sim no txoj cai mus nyem rau ntawm Qhov Kev Ua Haujlwm Code cov khoom.
Hauv qhov rai uas qhib, koj yuav tsum sau npe ua dab tsi peb lub tank yuav ua. Cia peb sau kab hauv qab no:
hp = 10;
dmg_time = 0;
Peb tsim cov Kev Sib Tw Sib Tw nyob rau tib txoj kev, sau cov cai rau nws:
yog keyboard_check_released (ord ('W')) {nrawm = 0;} yog tias nas_kck_button_ nyuaj siab (mb_left)duab_angle = point_direction (x, y, mouse_x, mouse_y);
yog keyboard_kawb (tsa ('W')) {y- = 3};
yog keyboard_kawb (tsa ('S')) {y + = 3};
yog keyboard_yooj (tsa ('A')) {x- = 3};
yog keyboard_kawb (ord ('D')) {x + = 3};
yog keyboard_check_released (ord ('S')) {ceev = 0;}
yog keyboard_check_released (ord ('A')) {nrawm = 0;}
yog keyboard_check_released (ord ('D')) {nrawm = 0;}
{
nrog example_create (x, y, ob_bullet) {nrawm = 30; kev taw qhia = point_direction (ob_player.x, ob_player.y, mouse_x, mouse_y);}
}
Ntxiv qhov kev sib tsoo Collision - kev sib tsoo nrog phab ntsa. Txoj Cai:
x = xprevious;
y = yprevious;
Thiab tseem ntxiv kev sib tsoo nrog cov yeeb ncuab:
yog dmg_time <= 0
{
hp- = 1
dmg_time = 5;
}
dmg_time - = 1;
Kos cov kev tshwm sim:
Tam sim no ntxiv Theem - Xaus Kauj Ruam:draw_self ();
draw_text (50,10, txoj xov (hp));
yog hp <= 0
{
show_message ('Game over')
chav_restart ();
};
if example_number (ob_enemy) = 0
{
show_message ('Yeej!')
chav_restart ();
}
Tam sim no peb tau ua nrog cov neeg uas ua ntawv, mus rau ob_enemy khoom. Ntxiv Tsim Qhov kev tshwm sim:
r yog 50;
kev taw qhia = xaiv (0.90,180,270);
ceev = 2;
hp = 60;
Tam sim no rau cov lus tsa suab, ntxiv Kauj Ruam:
yog distance_to_object (ob_player) <= 0
{
kev taw qhia = point_direction (x, y, ob_player.x, ob_player.y)
ceev = 2;
}
lwm tus
{
yog r <= 0
{
kev taw qhia = xaiv (0.90,180,270)
ceev = 1;
r yog 50;
}
}
duab_angle = kev taw qhia;
r- = 1;
Kauj ruam kawg:
yog hp <= 0 Xwsli_destroy ();
Peb tsim qhov kev tshwm sim Kev puas tsuaj, mus rau qhov kos duab kos thiab hauv lwm yam khoom nyem rau ntawm lub pob tawg. Tam sim no, thaum tua tus yeeb ncuab, yuav muaj qhov tawg tawg.
Kev sib tsoo - sib tsoo nrog lub phab ntsa:
kev coj = - kev coj ua;
Kev sib tsoo - sib tsoo nrog ib tus me:
hp- = irandom_range (10.25)
Txij thaum lub phab ntsa tsis ua haujlwm, peb mus rau ntawm ob_bullet khoom. Ntxiv kev sib tsoo tsoo nrog tus yeeb ncuab:
Piv txwv_destroy ();
Thiab Kev Sib Tw nrog phab ntsa:
Piv txwv_destroy ();
Thaum kawg, tsim cov qib tiaj 1. Sab xis-nyem Chav -> Tsim Chav. Peb yuav mus rau ntawm lub npov khoom thiab siv tus ntsa "Ntsa" los kos duab qhia qib. Tom qab ntawd peb ntxiv ib qho player thiab ntau tus yeeb ncuab. Qib npaj lawm!
Thaum kawg, peb tuaj yeem khiav qhov kev ua si thiab kuaj nws. Yog tias koj ua raws li cov lus qhia, tom qab ntawd yuav tsum tsis muaj kab.
Tus ntawd yog txhua yam. Peb tau kuaj xyuas seb yuav tsim kev ua si li cas nyob rau hauv lub computer peb tus kheej, thiab koj tau txais ib lub tswv yim hais txog qhov program xws li Game Maker. Txuas ntxiv mus rau kev tsim kho thiab sai sai no koj yuav muaj peev xwm tsim kev ua si zoo dua thiab zoo nkauj ntau dua.
Hmoov zoo!
Download tau Game Game los ntawm cov nom lub site
Saib ntxiv: Lwm cov software rau tsim kev ua si