Merge pull request #508 from zladx/entity-physics-2

Add comments about ENTITY_PHYSICS constants
This commit is contained in:
Pierre de La Morinerie 2023-01-10 21:19:06 +01:00 committed by GitHub
commit 6f23d03910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -38,7 +38,7 @@ ENTITY_OPT1_B_MOVE_PIT_WATER equ 0
; Values for wEntitiesPhysicsFlagsTable
ENTITY_PHYSICS_HARMLESS equ $80 ; The entity does not damage Link
ENTITY_PHYSICS_PROJECTILE_NOCLIP equ $40 ; Projectiles pass through the entity
ENTITY_PHYSICS_GRABBABLE equ $20 ; The entity can be grabbed with the Power Bracelet
ENTITY_PHYSICS_GRABBABLE equ $20 ; TODO: Implies that the entity can be grabbed with the Power Bracelet, or picked up/collected, depending on entity's private state?
ENTITY_PHYSICS_SHADOW equ $10 ; The entity casts a shadow
; Mask for all the physics flags
ENTITY_PHYSICS_MASK equ $F0

View File

@ -1,10 +1,10 @@
; Array indexed by entity type, see ENTITY_* constants
;
; bits 0-3: number of allocated sprites in OAM memory,
; bit 4: display shadow on posZ > 0 if set,
; bit 5: item is pickable,
; bit 6: doesn't react to projectiles if set (arrow, hookshot, etc.),
; bit 7: doesn't hurt Link on collision if set
; bit 4: display shadow on posZ > 0 if set (ENTITY_PHYSICS_SHADOW),
; bit 5: item can be picked up (ENTITY_PHYSICS_GRABBABLE),
; bit 6: doesn't react to projectiles if set (arrow, hookshot, etc.) (ENTITY_PHYSICS_PROJECTILE_NOCLIP),
; bit 7: doesn't hurt Link on collision if set (ENTITY_PHYSICS_HARMLESS)
;
; See wEntitiesPhysicsFlagsTable
PhysicsFlagsForEntity::