Yuav Tsim Kev Ua Si Li Cas Hauv Is Taws Nem

Cov txheej txheem:

Yuav Tsim Kev Ua Si Li Cas Hauv Is Taws Nem
Yuav Tsim Kev Ua Si Li Cas Hauv Is Taws Nem

Video: Yuav Tsim Kev Ua Si Li Cas Hauv Is Taws Nem

Video: Yuav Tsim Kev Ua Si Li Cas Hauv Is Taws Nem
Video: Txwj nkawm lub neej yuav ua li cas lub neej thiaj sib hlub txog hnub kawg. 2024, Hlis ntuj nqeg
Anonim

Yog li, koj muaj lub siab xav tsim koj tus kheej kev ua si hauv computer. Koj tuaj yeem coj txoj hauv kev nyuaj dua, uas koom nrog kev kawm qhov pib ntawm lub cajmeem hauv Delphi, C ++ thiab qee yam lus. Txawm li cas los xij, qhov no yog txheej txheem mob siab ua haujlwm uas siv sijhawm thiab siv zog ntau dua. Nws yooj yim dua rau siv tus tsim thiab npaj cov tshuab ua si, feem ntau koj tuaj yeem nrhiav ntawm lub vev xaib www.gcup.ru. Cia peb xav txog qhov kev tsim ntawm kev ua si siv cov piv txwv ntawm Game Game program

Yuav tsim kev ua si li cas hauv Is Taws Nem
Yuav tsim kev ua si li cas hauv Is Taws Nem

Nws yog qhov tsim nyog

Game txiag program

Cov Lus Qhia

Kauj ruam 1

Tus xeeb ceem

Ua ntej, tsim cov cim kev ua si (cia peb hu nws, piv txwv li, obj_player). Txhawm rau kom nws kawm taug kev, hauv "sab laug" khawm, khij qhov kev sib tsoo ntawm cov khoom thiab qhov hloov txav raws txoj kab X los ntawm kev saib xyuas -4. Ua tib yam hauv khawm "Txoj Cai", hloov cov kev hloov pauv mus rau + 4. Tsis txhob hnov qab txog kev hloov ntawm cov sprites. Tam sim no peb tus cwj pwm tuaj yeem taug kev sab laug thiab sab xis.

Yuav tsim kev ua si li cas hauv Is Taws Nem
Yuav tsim kev ua si li cas hauv Is Taws Nem

Kauj ruam 2

Lub Platform

Tsim qhov khoom tshiab (obj_platform), uas tom qab ntawd yuav los ua lub platform. Hauv qhov xwm txheej no, tsis txhob hnov qab xyuas lub npov Khoom Siv hauv obj_platform.

Kauj ruam 3

Lub ntiajteb txawj nqus

Peb rov qab mus rau lub obj_player cim. Hauv daim ntawv qhia ua zaub mov, xaiv cov xwm txheej raws li qhia hauv daim duab.

Daim ntawv ceeb toom qhov sib txawv ntawm sab laug. Nrog nws cov kev pab, txoj kev poob qis tuaj yeem raug txwv 12.

Yuav tsim kev ua si li cas hauv Is Taws Nem
Yuav tsim kev ua si li cas hauv Is Taws Nem

Kauj ruam 4

Thaws

Txhawm rau tsim kev dhia, koj yuav tsum siv lub dhia dhia nce mus nce los, uas koj tuaj yeem tsim qhov siab tshaj plaws ntawm qhov jumps. Hauv cov ntawv qhia tsim ua zaub mov, tsim cov sib txawv nrog dhia = 0. Cov Txiaj Ntsig yog tsim los siv khawm khawm qhia liab hauv daim duab. Thaum koj rub nws los Ua Tes Haujlwm, cov haujlwm tshwm tuaj. Qhia rau hauv tag nrho cov kev cai tsim nyog, raws li qhia hauv daim duab.

Yuav tsim kev ua si li cas hauv Is Taws Nem
Yuav tsim kev ua si li cas hauv Is Taws Nem

Kauj ruam 5

Hauv tshuab raj xovxwm, ua raws tib txoj kev ib yam li hauv cov duab hauv qab no:

Yuav tsim kev ua si li cas hauv Is Taws Nem
Yuav tsim kev ua si li cas hauv Is Taws Nem

Kauj Ruam 6

Thiab ob peb kauj ruam ntxiv hauv kov cov khoom obj_platform. Yog li, lub cav tseem ceeb rau peb qhov kev ua si tau npaj txhij. Nws tseem nyob rau hauv kev tso npe ntxiv cov haujlwm ntxiv.

Yuav tsim kev ua si li cas hauv Is Taws Nem
Yuav tsim kev ua si li cas hauv Is Taws Nem

Kauj Ruam 7

Stairs

Txhawm rau tsim cov taw ntaiv, peb xav tau cov tab saum Up, Down thiab Step tabs. Tsim ib yam tshiab obj_ladder. Tom ntej, nyob rau hauv Kauj Ruam tab, muab cov nqi raws li pom hauv daim duab:

Yuav tsim kev ua si li cas hauv Is Taws Nem
Yuav tsim kev ua si li cas hauv Is Taws Nem

Kauj ruam 8

Peb ua haujlwm nrog Pab Pawg Up (saib daim duab). Peb ua haujlwm nrog Down tab tib txoj kev, tsuas yog tsis txhob hnov qab hloov y = -4 nrog y = + 4.

Yuav tsim kev ua si li cas hauv Is Taws Nem
Yuav tsim kev ua si li cas hauv Is Taws Nem

Kauj Ruam 9

Yeeb ncuab

Dab tsi yog game tsis muaj neeg phem? Yog li ntawd, peb tus phab ej yuav tsum muaj tus yeeb ncuab. Tsim obj_enemy tshiab, tom qab ntawd mus rau Tsim kev tshwm sim. Muaj, tsim ib qho kev txiav txim thiab teeb tsa cov tsis xws li cov qauv hauv daim duab.

Tom ntej no, peb tsim cov khoom siv obj_rotate thiab ua kom pom tsis tau. Ua li no, koj tsuas yog xav tau khij kab ntawv uas tsis pom kev.

Yuav tsim kev ua si li cas hauv Is Taws Nem
Yuav tsim kev ua si li cas hauv Is Taws Nem

Kauj ruam 10

Kev tua neeg ntawm tus kheej

Lub sijhawm no yog lub sijhawm tseem ceeb tshaj plaws: koj yuav tsum tau muab kev txaus siab rau qhov kev tua tus yam ntxwv. Txhawm rau ua qhov no, peb yuav siv lub neej thiab kev noj qab haus huv uas twb tau tsim rau hauv Game Game.

Hauv qhov kev tshwm sim Theem, ua raws li hauv qab no:

Yuav tsim kev ua si li cas hauv Is Taws Nem
Yuav tsim kev ua si li cas hauv Is Taws Nem

Kauj ruam 11

Cim xeeb.

Ua bayonets nyob rau hauv qhov kev ua si hauv tib txoj hauv kev uas koj tsim cov neeg phem. Tom qab ntawd muab tso: Teev cia cov mob huv rau-1

Kauj ruam 12

Qhov no yuav ua kom paub tseeb tias kev noj qab haus huv ntawm cov cim kev ua si yuav txo qis nrog txhua kov ntawm cov bayonets. Thaum kev noj qab haus huv tsawg dua ib zaug, tus xeeb ceem yuav hlawv ib lub neej.

Yuav tsim kev ua si li cas hauv Is Taws Nem
Yuav tsim kev ua si li cas hauv Is Taws Nem

Kauj ruam 13

Ntawm theem kawg, peb yuav ua tiav qee qhov kev sib chwv: peb yuav ua rau theem loj, peb yuav sau npe rau kev muaj peev xwm taug qab lub koob yees duab rau kev ua yeeb yam. Txhawm rau ua qhov no, hauv chav hauv qhov pom clutch, peb coj ua yeeb yam hauv qab no (saib daim duab).

Hloov cov nqi ntawm Hbor thiab Vbor. Lawv muaj lub luag haujlwm rau x thiab y tswj hwm, thaum ncav lub koob yees duab pib txav.

Cov no yog qhov pib ntawm kev tsim lub platformer yooj yim nrog Game Maker.

Pom zoo: