Muuqaaleynta · bei.pm
Qaababka faylka ee ku qoran boggan waxay ku saleysan yihiin falanqaynta farsamada ee hantida maskaxeed ee Dynamix, Inc. iyo Sierra Entertainment.
Hantida maskaxeed waxay maanta qayb ka tahay Activision Publishing, Inc./ Activision Blizzard, Inc. iyo hadda waxaa leh Microsoft Corp..
Macluumaadka waxaa lagu ururiyey iyadoo la adeegsanayo Injineernimada Dhabta ah iyo Falanqaynta Xogta si loo helo kaydinta iyo is dhexgalka xogta taariikhiga ah.
Looma isticmaalin wax qeexitaanno gaar ah ama qarsoodi ah.
Ciyaarta waxaa hadda lagu iibsan karaa bogga gog.com sida soo dejin.
Hadda waxaan u gudbaynaa fasalka boqorka ee cilmiga gudaha qaababka xogta Outpost 2:
Animayshinnada.
Liisaska animayshinka waxaa lagu bilaabaa header caalami ah, oo ujeedkiisu yahay xaqiijinta xogta. Kadibna waxaa raaca qeexitaannada animayshinka gaarka ah, oo lagu kala soocay 3 heerar:
-
Animayshinka
Animayshinku waa heerka ugu sarreeya; waxay muujinaysaa animayshinka unug, dhisme ama 'animayshinka qaybaha' (dhicitaanka komet, cimilada, qaraxa) xaalad gaar ah. -
Frame
Frame waa sawir kaliya oo ku dhex jira animayshinka. Animayshinku wuxuu ka koobnaan karaa hal ama in ka badan frames. -
Subframe
Subframe waa macluumaadka ku saabsan in bitmap gaar ah loo sawiro meel gaar ah oo frame ah iyadoo la raacayo shuruudo gaar ah. Frame wuxuu ka koobnaan karaa hal ama in ka badan subframes.
Kadib, si toos ah ayaa loo raaci doonaa qeexitaannada animayshinka.
Adr | x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | xA | xB | xC | xD | xE | xF | xarfaha | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x0000 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
Fogaanta | Nooca Xogta | Magaca | Sharaxaad |
---|---|---|---|
0x0000 | uint(32) | Tirada animasyonada | Immisa diiwaanno animasho ayaa jira |
0x0004 | uint(32) | Tirada Frames | Immisa frames ah ayaa guud ahaan jirshoulda |
0x0008 | uint(32) | Tirada Subframes | Imisa subframes ah ayaa guud ahaan jiri kara |
0x000c | uint(32) | Tirada waxyaabaha ikhtiyaariga ah | Immisa "qoritaanno ikhtiyaari ah" ayaa jirta. |
Muqaal
Adr | x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | xA | xB | xC | xD | xE | xF | xarfaha | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x0000 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
0x0010 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
0x0020 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
Fogaanta | Nooca Xogta | Magaca | Sharaxaad |
---|---|---|---|
0x0000 | uint(32) | Aan la aqoon 1 | Macluumaad aan la aqoon |
0x0004 | uint(32) | Sanduuqa Xadka: Bidix | Waxay muujinaysaa bilowga bidix (pixel ahaan) ee Bounding Box. |
0x0008 | uint(32) | Sanduuqa Xadka: Sare | Waxay tilmaamaysaa bilowga kore (pixels) ee Bounding Box. |
0x000c | uint(32) | Sanduuqa Xadka: Ballac | Waxay tilmaamaysaa ballaca (px) ee Bounding Box. |
0x0010 | uint(32) | Sanduuqa Xadka: Dherer | Waxay muujineysaa dhererka (pixel ahaan) ee Bounding Box. |
0x0014 | uint(32) | X-ka leexashada | Muujinaya bartamaha toosan ee animation-ka |
0x0018 | uint(32) | Meel: Y | Muujinaya bartamaha toosan ee animation-ka |
0x001c | uint(32) | Aan la aqoonsan 2 | Macluumaad aan la aqoon |
0x0020 | uint(32) | Tirada Frames | Muujinaya tirada frames-ka animation-ka ku jira animation-kan |
0x0024 | uint(32) | Tirada daaqadaha | Muujinaya tirada daaqadaha la isticmaali doono marka la sawirayo |
Xogta lakabka sare, ee animation-ka, waxay si weyn u tahay xog maamul - Boundingbox waxay tilmaamaysaa isku-dhafka calaamadda ku saabsan gaadhi/dhisme, marka la doorto iyo sidoo kale waxay muujinaysaa aagga la gujin karo.
Offset-ku wuxuu si weyn u go'aamiyaa "barta eber"; barta, oo lagu xisaabinayo isku-dhafka ciyaarta ama laga jarayo. Waxa kale oo lagu dhihi karaa xisaabta: offset-ka halkan wuxuu tilmaamayaa asalka isku-dhafka.
Windows-yadu waxay la mid yihiin offset-ka, waxayna ka kooban yihiin (mid kasta Windows) 4 uint(32)-qiime, kuwaas oo muujinaya aagga loo isticmaali karo subframes-ka gaarka ah. Dibadda Windows-yada, haddii ay u diyaar tahay bitmap-ka, looma oggola in la sawiro.
Qaab
Adr | x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | xA | xB | xC | xD | xE | xF | xarfaha | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x0000 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
Fogaanta | Nooca Xogta | Magaca | Sharaxaad |
---|---|---|---|
0x0000 | uint(8) | Tirada subframe iyo Toggle-ka Ikhtiyaarka 1, 2 | Qiimahani waxa ku jira:
|
0x0001 | uint(8) | Aan la aqoon 1 iyo Toggle loogu talagalay Ikhtiyaar 3, 4 | Qiimahani waxa uu ka kooban yahay:
|
0x0002 | uint(8) | Ikhtiyaari 1 | Ma aqaan |
0x0003 | uint(8) | Ikhtiyaari 2 | Ma aqaan |
0x0004 | uint(8) | Ikhtiyaar 3 | Ma aqaan |
0x0005 | uint(8) | Ikhtiyaar 4 | Ma aqaan |
Qaybta Hoose
Adr | x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | xA | xB | xC | xD | xE | xF | xarfaha | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x0000 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
Fogaanta | Nooca Xogta | Magaca | Sharaxaad |
---|---|---|---|
0x0000 | uint(16) | Bitmap-Id | Muujinaya bitmap-ka loo isticmaali doono subframe-kan |
0x0002 | uint(8) | Aan la aqoon 1 | Ma cadda - si kastaba ha ahaatee, waxaan si xoog leh u maleynayaa in tani ay tahay mudnaanta sawirka (Z-Layer). |
0x0003 | uint(8) | Subframe-Id | Waxay muujinaysaa subframe-ka aan ku sugan nahay |
0x0004 | sint(16) | Meel-marin - Joogto ah | Waxay muujinaysaa meesha dhexda frame-ka subframe-ka la dhigi doono, ama inta pixel ee bitmap-ka si toos ah loo dhaqaajin doono |
0x0006 | sint(16) | Offset - Fogaanta toosan | Waxay muujinaysaa halka gudaha qaab-dhismeedka (frame) subframe-ka la dhigayo, ama inta pixels ah ee bitmap-ka si toos ah loogu dhaqaajinayo. |
Marka waxaan hadda isku dari karnaa qaababka gaar ah iyo sidoo kale animation-yada dhamaystiran, halkan waxaan ku muujinaynaa tusaale ahaan animation aad u adag, taas oo leh index 500.
Animation 500
Animation 500 waxay muujinaysaa sida loo furo Plymouth-transportka oo lagu shubay macdan caadi ah. Tani waa mid ka mid ah dhowr animation oo isticmaala faacadda daaqadaha.
Sidaas awgeed, dhammaan animation-ka ayaa la isugu geeyey.
Nasiib darro, weli waxaa jira dhibaato ku saabsan furitaanka sare, maadaama halkan bit-ka ku habboon aan lagu maamulin macluumaadka nooca sawirka.
Halkan waxaa ah qaar ka mid ah sprites-ka si qurux badan loo animoobay oo ka tirsan ciyaarta: