Entry 458
Corbenik's seeds draw twice a frame, its lasers in their own blend, its first press image at the body's last transparency, as the code does
22mrender
Filescrates/piney-world/src/combat/boss.rs crates/piney-world/src/combat/corbenik.rs crates/piney-world/src/field_world.rs crates/piney-world/src/town.rs crates/piney-battle/src/boss/corbenik/second.rs docs/engine/boss-corbenik.md
Three of Corbenik's pictures as the code draws them
Worklog 457 left three of Corbenik's pictures short of the game's code.
The seed's second draw.
ccBoss08Seed::PreDrawAnm(QUA gcmn 0x003b09f0) sets its clip's matrix (50 up, 3x) and callsccAnm::Draw. Then itsccBoss::Drawdraws the clip again.ccAnm::Drawhands the anm's +0x88 toccObj::Draw.ccBoss::Drawcopies the boss's transparency into the anm's +0x88 every call, before its 0.05 test, andccCoord's constructor starts it at 1. So the first draw is at the lastDraw's transparency.- The layer:
ccBoss::DrawandDrawAfterImagesboth end withSetActiveLayer(0), and the seeds run in the first form'sSlave()after them. Case 0 ofSetActiveLayer's jump table is sysLayer (priority 0, the field layers' shared view, after objLayer). - The port:
BossRun::anm_alphakeeps each part's last copy, andShown::Againdraws the seed's actor once more on the object layer before its own draw.
The lasers' blend.
- Both effects' constructors (laser rain 0x003795e0, reflected laser
0x00376f60) set
OBJ_ex31les1's model ALPHA toalphaBlendTbl[1]and callSetRenderState(1, 0)on it. They also set the head clipANM_ex31les3toSetBlendType(1). - The field now draws
les1with blend 1 throughdraw::model_blended, and the head clip through the newtown::anim_draw_blended.
The first press image.
OnThinkBodyPressat 0x003b5460 sets the body's matrix to the image and draws its clip with no transparency set, so the anm draws at the lastccBoss::Draw's. The later images (0x003b598c) set the image's own.- The rules now send the body's transparency for that first image.
Checked.
corbenik_under_godstill ends event 313 (76,284 frames).- The second form's harness passes (its pictures are not compared).
- The piney-game suite passes.
Still unknown
- None of the three is compared with game frames; each draw's inputs are from the code. The layer constant for sysLayer's place is approximated by the object layer (same priority, drawn after it).