Cov txheej txheem:

Gamemaker Yooj Yim Game: 12 Kauj Ruam
Gamemaker Yooj Yim Game: 12 Kauj Ruam

Video: Gamemaker Yooj Yim Game: 12 Kauj Ruam

Video: Gamemaker Yooj Yim Game: 12 Kauj Ruam
Video: iclone 7 EASY Path with relief 2024, Hlis ntuj nqeg
Anonim
Image
Image

Qhov kev ua si no yog ib qho yooj yim (tej zaum koj paub ntawm lub npe). Nws muaj ib qho thaiv (uas yog koj) thiab nws tseem muaj lub platform uas tau tsim lossis lwm qhov thaiv xim.

Rau qhov kev ua si no koj yuav xav tau:

A yo yo game account rau nkag mus rau Gamemaker studio 2

Txawm li cas los xij koj yuav tsis xav tau cov phiaj xwm them nyiaj rau Gamemaker.

Kauj Ruam 1: Tsim Game Tshiab

Tsim Kev Ua Si Tshiab
Tsim Kev Ua Si Tshiab
Tsim Kev Ua Si Tshiab
Tsim Kev Ua Si Tshiab
Tsim Kev Ua Si Tshiab
Tsim Kev Ua Si Tshiab

Thawj kauj ruam yog tsim kom muaj kev ua si tshiab.

Rau qhov ntawd koj yuav tsum:

  • Nyem Tshiab
  • Nyem GameMaker Language
  • Ntaus yam koj xav kom koj lub npe ua si

Kauj ruam 2: Hloov Fps

Hloov Fps
Hloov Fps
Hloov Fps
Hloov Fps

Feem ntau thawj kauj ruam los tsim kev ua si yog hloov fps (thav duab ib ob) rau qhov xav tau. Rau peb nws yuav yog 60.

Txhawm rau ua qhov no koj yuav tsum:

  • Qhib Cov Xaiv coj mus rhaub rau sab xis
  • Nyem rau ntawm Main
  • Nrhiav Game ntas ib ob thiab hloov nws mus rau 60

Kauj Ruam 3: Tsim Sprites

Tsim Sprites
Tsim Sprites
Tsim Sprites
Tsim Sprites
Tsim Sprites
Tsim Sprites
Tsim Sprites
Tsim Sprites

Tam sim no peb muaj tag nrho peb cov kev xaiv cais tawm, peb tuaj yeem tau txais cov game sprites thiab cov khoom pib.

Ua li ntawd:

  • Txoj cai nyem rau ntawm Sprites vaj huam sib luag ntawm sab xis.
  • Tom qab ntawd nyem rau ntawm Tsim sprite
  • Hloov koj tus sprite Splayer (s nyob rau hauv pem hauv ntej qhia koj tias nws yog tus tua hluav taws)
  • Nyem Kho Duab
  • Kos koj tus neeg uas ua ntawv. Txog qhov piv txwv no kuv siv lub thawv ntsuab uas zoo kawg rau koj siv ib yam
  • Rov ua dua rau phab ntsa. Tab sis lub sijhawm no npe nws Swall thiab xim lub thawv grey

Kauj Ruam 4: Tsim Cov Hom Phiaj

Tsim Yam
Tsim Yam
Tsim Yam
Tsim Yam
Tsim Yam
Tsim Yam

Tam sim no peb muaj peb tus sprites peb tuaj yeem tsim cov khoom rau lawv.

Ua li no:

  • Txoj cai nyem rau ntawm Lub Hom Phiaj ib sab ntawm sab xis thiab xaiv Tsim Cov Khoom
  • Hloov lub npe Oplayer
  • Nyem Tsis Sprite thiab xaiv Splayer
  • Rov ua dua rau Swall tab sis npe nws Owall thiab muab nws Swall

Kauj ruam 5: Teem Variables

Teeb Variables
Teeb Variables
Teeb Variables
Teeb Variables
Teeb Variables
Teeb Variables

Tam sim no tias txhua yam peb cov khoom tau ua tiav peb tuaj yeem pib coding. Qhov thawj kauj ruam uas peb yuav ua yog teeb tsa peb cov kev hloov pauv

Ua li no:

  • Xaiv cov xwm txheej hauv Oplayer ntawv qhia zaub mov
  • Nyem tsim
  • Ntaus 4 qhov sib txawv uas tau qhia hauv daim duab kawg ntawm cov kauj ruam no nrog rau cov cim ib nrab ntawm qhov kawg ntawm txhua kab
  • Hloov 0.1 mus rau 2 (thov txim txog qhov suav tsis txheeb hauv daim duab)

Kauj Ruam 6: Pib Tsiv

Pib Tsiv
Pib Tsiv
Pib Tsiv
Pib Tsiv
Pib Tsiv
Pib Tsiv

Txhawm rau pib txav koj yuav tsum:

  • Tsim ib qho kev tshwm sim
  • Txheeb xyuas thaum cov yuam sij raug nias (saib cov cai ntawm daim duab thib ob ntawm cov kauj ruam no)
  • Txav mus thaum cov yuam sij raug nias (saib cov cai ntawm daim duab thib peb ntawm cov kauj ruam no)

Saib tag nrho cov cai rau theem no ntawm daim duab thib peb

Kauj Ruam 7: Ntxiv Kev Sib Tsoo Kab Rov Tav

Ntxiv Kab Rov Tav Los
Ntxiv Kab Rov Tav Los
Ntxiv Kab Rov Tav Los
Ntxiv Kab Rov Tav Los
Ntxiv Kab Rov Tav Los
Ntxiv Kab Rov Tav Los

Tam sim no tias peb muaj kab rov tav txav chaw peb xav tau kev sib tsoo ntawm kab rov tav

Ua li ntawd:

  • Txoj cai ua ntej x = x + hsp ntxiv cov cai tshiab uas nyob hauv daim duab 1
  • Tam sim no ntxiv cov cai uas yog hauv daim duab 2 (tsis txhob txhawj xeeb thaum kawg kuv yuav hla txhua yam txhais tau tias)
  • Tam sim no ntxiv cov cai uas yog hauv daim duab 3

Kauj Ruam 8: Kev sib tsoo ntsug

Ntsug Kev Sib Tsoo
Ntsug Kev Sib Tsoo

Cov cai no zoo nkauj ib yam li cov cai hauv cov kauj ruam dhau los, yog li tsuas yog luam tawm ntawm daim duab saum toj saud

Kauj Ruam 9: Ntxiv Gravity

Ntxiv Gravity
Ntxiv Gravity

Txoj cai hauv qab hsp = txav * taug kev

Hom vsp = vsp * grv

Kauj ruam 10: Dhia

Dhia
Dhia

Rau ntu kawg ntawm cov cai peb yuav dhia mus dhia (ha-ha)

Tsuas yog luam qhov twg thiab tus lej twg yog ua kom tiav cov cai

PS

Hloov qhov -7 mus rau -20 (thov txim txog qhov muab xam tsis raug hauv daim duab)

Kauj Ruam 11: Daim Ntawv Qhia

Daim Ntawv Qhia
Daim Ntawv Qhia
Daim Ntawv Qhia
Daim Ntawv Qhia
Daim Ntawv Qhia
Daim Ntawv Qhia
Daim Ntawv Qhia
Daim Ntawv Qhia

Txog qhov kawg ntawm koj qhov kev ua si koj yuav tsum ua daim ntawv qhia chaw

Qhib cov ntawv nplaub tshev thiab xaiv chav 1

Tom qab ntawd rub hauv txhua phab ntsa uas koj xav tau (nco ntsoov ntxiv tus neeg ua si)

Kauj Ruam 12: Qhov No Txhais Li Cas

PS

Kuv tsis nco qab hais hauv daim vis dis aus tias kev tsim cov xwm txheej tshwm sim tsuas yog thaum lub hom phiaj raug tsim

Pom zoo: