Ọ bụrụ na ịchọrọ ịmepụta egwuregwu nke gị na kọmputa ahụ, ị ga-achọ ịmụta otú ị ga-esi arụ ọrụ na mmemme pụrụ iche maka ịme egwuregwu. Ihe omume ndị dị otú a na-enye gị ohere ịmepụta ihe odide, dọpụta ihe omume na ịmepụta ihe maka ha. N'ezie, nke a abụghị ndepụta niile nke ohere. Anyị ga-atụle usoro nke ịmepụta egwuregwu n'otu n'ime mmemme ndị a - Onye mepụtara egwuregwu.
Onye na-eme egwuregwu bụ otu n'ime usoro kachasị mfe na nke kachasị ewu ewu maka ịme egwuregwu 2D. N'ebe a, ị nwere ike ịmepụta egwuregwu site na iji ntụpọ drag'n'drop ma ọ bụ iji asụsụ GML wuru na ya (anyị ga-arụ ọrụ na ya). Onye na-eme egwuregwu bụ nhọrọ kasị mma maka ndị na-amalite ịme egwuregwu.
Download Game Maker maka n'efu
Esi tinye onye na-eme egwuregwu
1. Soro njikọ dị n'elu wee gaa ebe nrụọrụ weebụ gọọmentị nke usoro ihe omume ahụ. A ga-akpọrọ gị gaa na saịtị nbudata ebe ị nwere ike ịchọta mbipụta free nke usoro ihe omume - Free Download.
2. Ugbu a, ị ga-edebanye aha. Tinye data niile dị mkpa ma banye na igbe akwụkwọ ozi ebe akwụkwọ ozi ahụ ga-abịa. Soro njikọ ahụ ma banye na akaụntụ gị.
3. Ugbu a ị nwere ike ibudata egwuregwu ahụ.
4. Ma ọ bụghị ihe niile. Ihe omume anyị ebudatara, naanị iji ya chọrọ ikikere. Anyị nwere ike nweta ya n'efu maka ọnwa 2. Iji mee nke a, n'otu ibe ebe ị ibudatara egwuregwu ahụ, na "Tinye ikikere" ihe, chọta Amazon tab ma pịa bọtịnụ "Pịa ebe a".
5. Na window nke meghere, ịkwesịrị ịbanye na akaụntụ gị na Amazon ma ọ bụ mepụta ya, wee banye.
6. Ugbu a, anyị nwere isi na ị nwere ike ịchọta na ala nke otu ibe. Detuo ya.
7. Anyị na-agafe usoro nhazi kachasị.
8. N'otu oge ahụ, onye ntinye ga-enye anyị ka anyị wụnye GameMaker: Player. Wụnye ya. A chọrọ onye ọkpụkpọ iji nwalee egwuregwu.
Nke a mezighara nwụnye ma anyị na-arụ ọrụ na usoro ihe omume ahụ.
Esi eji onye mepụtara egwuregwu
Gbaa usoro ihe omume a. Na kọlụm nke atọ anyị tinye igodo ikike nke anyị depụtara, na nke abụọ anyị na-abanye nbanye na paswọọdụ. Ugbu a malitegharịa usoro ihe omume ahụ. Ọ na-arụ ọrụ!
Gaa na New tab ma mepụta oru ohuru.
Ugbu a mepụta sprite. Right-click on the Sprites item, wee mepụta Sprite.
Nye ya aha. Kwe ka ọ bụrụ onye ọkpụkpọ ma pịa Dezie Edit. A ga-emepe windo ebe anyị nwere ike ịgbanwe ma ọ bụ mepụta sprite. Mepụta sprite ọhụrụ, nha agaghị agbanwe.
Ugbu a pịa okpukpu abụọ. Na nchịkọta akụkọ mepere emepe anyị nwere ike ịbịaru sprite. N'oge a anyị na-adọrọ onye ọkpụkpọ, yana kpọmkwem - tank. Chekwaa ịbịaru anyị.
Iji mee ka ọkpụkpụ anyị na-emegharị, detuo na mado ihe oyiyi ahụ na Ctrl + C na Ctrl + V njikọta, n'otu aka ahụ, na ịdọrọ ọkwa dị iche iche caterpillar maka ya. Ị nwere ike ịme ọtụtụ edere ka ịchọrọ. Ihe ndi ozo, ihe ndi ozo na-adi nma.
Ugbu a ị nwere ike itinye akọrọ n'ihu n'ihu. Ị ga-ahụ mmegharị ahụ e kere eke ma ị nwere ike ịgbanwe okpụmpe eletrik. Chekwaa foto ahụ ma jiri ya na bọtịnụ Center. Àgwà anyị dị njikere.
N'otu ụzọ ahụ, ọ dị anyị mkpa ịmepụta ndị ọzọ na-ede ede: onye iro, mgbidi ahụ na ihe ngosi. Ka anyi kpọọ ha onye iro, mgbidi na mgbochi.
Ugbu a ịkwesịrị ịmepụta ihe. Na Ihe Obosara taabụ, pịa nri ma họrọ Mepụta ihe. Ugbu a mepụta ihe maka sprite ọ bụla: ob_player, ob_enemy, ob_wall, ob_bullet.
Ntị!
Mgbe ị na-eke ihe mgbidi, lelee igbe dị n'akụkụ Solid. Nke a ga - eme ka mgbidi siri ike ma tankị agaghị enwe ike ịgafere ya.
Gaa na ihe siri ike. Mepee ihe ob_player ma gaa na taabụ Control. Mepụta mmemme ohuru na bọtịnụ Tinye mmemme wee họrọ Mepụta. Ugbu a, pịa bọtịnụ nri na Usoro Mmehie.
Na windo nke meghere, ịkwesịrị ịdebanye aha ndị ọrụ tank anyị ga-arụ. Ka anyị dee ederede ndị a:
hp = 10;
dmg_time = 0;
Mepụta ihe omume nzọụkwụ n'otu ụzọ ahụ ma dee koodu maka ya:
ọ bụrụ na keyboard_check_released (ord ('W')) {ọsọ = 0;} ọ bụrụ na mouse_check_button_pressed (mb_left)image_angle = point_direction (x, y, mouse_x, mouse_y);
ọ bụrụ na keyboard_check (ord ('W')) {y- = 3};
ọ bụrụ na keyboard_check (ord ('S')) y + = 3};
ọ bụrụ na keyboard_check (ord ('A')) {x- = 3};
ọ bụrụ na keyboard_check (ord ('D')) {x + = 3};
ọ bụrụ na keyboard_check_released (ord ('S')) ọsọ ọsọ = 0;}
ma ọ bụrụ na keyboard_check_released (ord ('A')) {ọsọ = 0;}
ma ọ bụrụ na keyboard_check_released (ord ('D')) {ọsọ = 0;}
{
na example_create (x, y, ob_bullet) {ọsọ = 30; ntụziaka = point_direction (ob_player.x, ob_player.y, mouse_x, mouse_y);}
}
Tinye ihe mgbagwoju anya - ngwakota na mgbidi. Usoro:
x = xprevious;
y = yforught;
Tinyere onye iro:
ma ọ bụrụ na dmg_time <= 0
{
hp- = 1
dmg_time = 5;
}
dmg_time - = 1;
Dee ihe omume:
Tinyezie Nzọụkwụ - Nkwụsị Nzọụkwụ:draw_self ();
draw_text (50,10, eriri (hp));
ma ọ bụrụ na hp <= 0
{
show_message ('Game n'elu')
room_restart ();
};
ma ọ bụrụ na example_number (ob_enemy) = 0
{
show_message ('Mmeri!')
room_restart ();
}
Ugbu a na anyị na onye ọkpụkpọ ahụ na-eme, gaa na ihe ob_enemy. Tinye Mmetụta Mepụta:
r = 50;
ntụziaka = họrọ (0,90,180,270);
ọsọ = 2;
hp = 60;
Ugbu a, ka anyị tinye Nzọụkwụ na njem ahụ:
ma ọ bụrụ distance_to_object (ob_player) <= 0
{
ntụziaka = point_direction (x, y, ob_player.x, ob_player.y)
ọsọ = 2;
}
ọzọ
{
ma ọ bụrụ na r <= 0
{
ntụziaka = họrọ (0,90,180,270)
ọsọ = 1;
r = 50;
}
}
image_angle = ntụziaka;
r- = 1;
Nzọụkwụ Nkwụsị:
ọ bụrụ na hp <= 0 instance_destroy ();
Mepụta ihe mebiri, gaa na taabụ taabụ na ihe ọzọ, pịa akara ngosi ahụ na mgbawa ahụ. Ugbu a, mgbe ị na-egbu onye iro, a ga-enwe ihe ịgbawa agbawa.
Ogbugba ndu - nkwekorita na mgbidi:
ntụziaka = - ntụziaka;
Ogbugba ndu - nkwekorita na ihe omuma:
hp- = irandom_range (10.25)
Ebe ọ bụ na mgbidi adịghị arụ ọrụ ọ bụla, anyị na-aga n'ihu n'ihe ob_bullet. Tinye nkwekorita ijikọta na onye iro:
eg_destroy ();
Na mgbachi na mgbidi:
eg_destroy ();
N'ikpeazụ, mepụta ọkwa 1. Anyị na-eji nri-pịa Ụlọ -> Mepụta Ime ụlọ. Gaa na ihe dị na taabụ ma were map dị larịị jiri ihe Wall. Wee tinye otu onye ọkpụkpọ na ọtụtụ ndị iro. Ọkwa dị njikere!
N'ikpeazụ, anyị nwere ike ịmalite egwuregwu ma nwalee ya. Ọ bụrụ na ị gbasoro ntụziaka ahụ, ọ ga-abụrịrị na ọ ga-adị mma.
Nke ahụ niile. Anyị lere anya iji mepụta egwuregwu na kọmputa gị onwe gị, i wee nwee echiche nke usoro ihe omume dịka Onye mepụtara Game. Gaa n'ihu ịzụlite na n'oge na-adịghị anya, ị ga-enwe ike ịmepụta ọtụtụ ihe egwuregwu na-adọrọ mmasị ma dị elu.
Ezigbo ihu!
Download Game Maker site na saịtị ọrụ
Hụkwa: Ngwudata ndị ọzọ maka ịme egwuregwu