Idan kuna son ƙirƙirar wasan ku a kwamfuta, to kuna buƙatar koya yadda ake aiki tare da shirye-shirye na musamman don ƙirƙirar wasanni. Irin waɗannan shirye-shiryen suna ba ku damar ƙirƙirar haruffa, zana raye-raye kuma saita matakan a gare su. Tabbas, wannan ba duka jerin hanyoyin yiwuwa bane. Za muyi la’akari da tsarin ƙirƙirar wasa a ɗayan ɗayan waɗannan shirye-shiryen - Game Maker.
Wasan Maker na ɗaya daga cikin shirye-shiryen mafi sauƙi da kuma mashahuri don ƙirƙirar wasannin 2D. Anan zaka iya ƙirƙirar wasanni ta amfani da keɓaɓɓiyar dubawa ko amfani da harshe GML (zamuyi aiki tare da shi). Game Maker Game shine mafi kyawun zaɓi ga waɗanda suke fara haɓaka wasanni.
Zazzage Makerin Wasan Makaranta kyauta
Yadda za a kafa Game Maker Game
1. Bi hanyar da ke sama kuma a can zuwa shafin yanar gizon hukuma na shirin. Za a kai ku zuwa shafin saukarwa inda za ku iya samun sigar shirin kyauta - Zazzagewa kyauta.
2. Yanzu kuna buƙatar yin rajista. Shigar da duk bayanan da suka zama dole sannan ka tafi akwatin wasiku inda zaku sami wasiyyar tabbatarwa. Bi hanyar haɗi kuma shiga cikin asusunka.
3. Yanzu zaku iya sauke wasan.
4. Amma wannan ba duka bane. Mun saukar da shirin, kawai don amfani da shi kuna buƙatar lasisi. Zamu iya samunsa kyauta na tsawon watanni 2. Don yin wannan, a kan wannan shafi daga inda kuka saukar da wasan, a cikin "Licara Lasisi", nemo shafin shafin Amazon kuma danna maɓallin "Danna nan".
5. A cikin taga da zai bude, kana buƙatar shiga cikin asusunka a kan Amazon ko ƙirƙira shi sannan ka shiga.
6. Yanzu muna da maɓallin da zaku iya samu a ƙasan shafin guda. Kwafa shi.
7. Muna tafiya cikin hanyar shigarwa mafi yawancin tsari.
8. A lokaci guda, mai sakawa zai ba mu shigar da GameMaker: Player. Mun shigar da shi ma. Ana buƙatar ɗan wasa don gwada wasannin.
Wannan ya kammala shigarwa kuma mun ci gaba da aiki tare da shirin.
Yadda ake amfani da Game Maker
Gudanar da shirin. A cikin shafi na uku, shigar da maɓallin lasin da muka kwafa, a cikin na biyu mun shigar da shiga da kalmar sirri. Yanzu sake kunna shirin. Tana aiki!
Je zuwa Sabuwar shafin ka kirkiri sabon shiri.
Yanzu ƙirƙirar rubutu. Kaɗa daman danna kan Sprites sannan sai Ka ƙirƙiri Sprite.
Ka ba shi suna. Bari dan wasa ya danna Gyara Sprite. Tagan taga zai bude wanda zamu iya canzawa ko ƙirƙirar rubutawa. Irƙiri sabon sprite, ba za mu canza girman ba.
Yanzu danna sau biyu akan sabon sprite. A cikin edita da yake buɗe, zamu iya zana sprite. A halin yanzu muna zana ɗan wasa, kuma mafi musamman tanki. Ajiye zanenmu.
Don yin motsi na tanki, kwafa da liƙa hoton tare da haɗuwa Ctrl + C da Ctrl + V, bi da bi, kuma zana wani yanayi daban na waƙoƙin. Kuna iya yin kwafin da yawa kamar yadda kuka ga sun dace. Imagesarin hotuna, da ƙarin ban sha'awa.
Yanzu zaku iya duba akwatin kusa da abun dubawa. Za ku ga halittar da aka kirkira kuma zaku iya sauya ƙimar firam. Adana hoton kuma tsakiyar shi ta amfani da maɓallin Cibiyar. Halinmu a shirye.
Ta wannan hanyar, muna buƙatar ƙirƙirar ƙarin halifofi guda uku: abokan gaba, bango da aikin projectile. Kira su makiyi, bango da harsashi, bi da bi.
Yanzu kuna buƙatar ƙirƙirar abubuwan. A kan Objects tab, kaɗa dama sannan zaɓi Createirƙiri abubuwa. Yanzu ƙirƙirar abu don kowane sprite: ob_player, ob_enemy, ob_wall, ob_bullet.
Hankali!
Lokacin ƙirƙirar abu bango, bincika akwatin mayalli. Wannan zai sa bangon ya yi tauri kuma tankokin ba za su iya wuce ta ba.
Mun juya zuwa ga mawuyacin. Bude kayan ob_player ka tafi wurin Sarrafa shafin. Irƙiri sabon taron tare da maɓallin Eventara taron kuma zaɓi Createirƙiro. Yanzu dama-danna kan Kashe Code Code.
A cikin taga da zai buɗe, kuna buƙatar yin rajistar irin ayyukan da tanki ɗinmu zai yi. Bari mu rubuta wadannan layin:
hp = 10;
dmg_time = 0;
Bari mu kirkiri abin da ya faru a Matakin, haka kuma mu sanya lambar don:
idan keyboard_check_released (ord ('W')) {gudun = 0;} idan linzamin kwamfuta (wato_kare_button_) (mb_left)hoto_angle = maki_direction (x, y, linki_x, linzamin_);
idan keyboard_check (ord ('W')) {y- = 3};
idan keyboard_check (ord ('S')) {y + = 3};
idan keyboard_check (ord ('A')) {x- = 3};
idan keyboard_check (ord ('D')) {x + = 3};
idan keyboard_check_released (ord ('S')) {gudun = 0;}
idan keyboard_check_released (ord ('A')) {gudun = 0;}
idan keyboard_check_released (ord ('D')) {gudun = 0;}
{
tare da misali_create (x, y, ob_bullet) {gudun = 30; shugabanci = nuna_ɗaɗa (ob_player.x, ob_player.y, linki_x, linzamin_);}
}
Eventara taron tattarawa - karo tare da bango. Lamba:
x = xwallafa;
y = yprepre;
Da kuma kara haduwa da abokan gaba:
idan dmg_time <= 0
{
hp- = 1
dmg_time = 5;
}
dmg_time - = 1;
Zana taron:
Yanzu ƙara Mataki - Mataki na :are:kusantar da kai ();
zana_liyoyi (50,10, string (hp));
idan hp <= 0
{
show_message ('Game kan')
daki_restart ();
};
idan misalin_number (ob_enemy) = 0
{
show_magage ('Nasara!')
daki_restart ();
}
Yanzu da muke yi tare da mai kunnawa, je zuwa abu ob_enemy. Theara eventirƙiri taron:
r 50;
shugabanci = zabi (0.90,180,270);
saurin = 2;
hp = 60;
Yanzu don motsi, ƙara Mataki:
idan nesa_to_object (ob_player) <= 0
{
shugabanci = nuna_ya gyara (x, y, ob_player.x, ob_player.y)
saurin = 2;
}
kuma
{
idan r <= 0
{
shugabanci = zabi (0.90,180,270)
saurin = 1;
r 50;
}
}
hoto_angle = shugabanci;
r- = 1;
Mataki na :arshe:
idan hp <= 0 misalin_destroy ();
Mun kirkiro halayen halakar, je zuwa shafin zane kuma a cikin ɗayan abu danna kan alamar fashewa. Yanzu lokacin da za a kashe magabci, za a sami tashin hankali.
Tarin-karo - tare da bango:
shugabanci = - shugabanci;
Takaici - karo da wani projectile:
hp- = irandom_range (10.25)
Tun da bango bai yi kowane irin aiki ba, za mu je zuwa abu ob_bullet. Coara karo karo tare da abokan gaba:
misali_destroy ();
Da tattarawa tare da bango:
misali_destroy ();
A ƙarshe, ƙirƙiri Mataki na Level 1. Dama danna-wuri -> Createirƙiri Room. Zamu je tab tab da amfani da kayan “bango” don zana taswirar matakin. Sannan muna kara dan wasa daya da abokan gaba dayawa. Mataki ya shirya!
A ƙarshe, zamu iya gudanar da wasan kuma gwada shi. Idan ka bi umarnin, to lallai babu kwari.
Shi ke nan. Mun bincika yadda za a ƙirƙiri wasa a kan kwamfutar kanmu, kuma kun sami ra'ayi game da shirin kamar Game Maker. Ci gaba da haɓaka kuma da sannu zaku iya ƙirƙirar wasanni masu ban sha'awa da haɓaka mai kayatarwa.
Sa'a!
Zazzage Maƙallin Wasanni daga shafin hukuma
Duba kuma: Sauran software na ƙirƙirar wasanni