A dungeon delver roguelike using Pathfinder 2nd edition rules
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Implemented get_opposite_direction_bit

+36
+36
gb/src/dungeon.asm
··· 283 283 ret 284 284 285 285 GetOppositeDirectionBit:: 286 + push hl 287 + ld a, e 288 + push de 289 + ld hl, BIT_DOOR_NORTH 290 + ld e, [hl] 291 + cp a, e 292 + jp nz, .FuncBody 293 + ld hl, BIT_DOOR_SOUTH 294 + ld b, [hl] 295 + jp .FuncEnd 296 + .FuncBody 297 + ld hl, BIT_DOOR_WEST 298 + ld e, [hl] 299 + cp a, e 300 + jp nz, .FuncBody2 301 + ld hl, BIT_DOOR_EAST 302 + ld b, [hl] 303 + jp .FuncEnd 304 + .FuncBody2 305 + ld hl, BIT_DOOR_SOUTH 306 + ld e, [hl] 307 + cp a, e 308 + jp nz, .FuncBody3 309 + ld hl, BIT_DOOR_NORTH 310 + ld b, [hl] 311 + jp .FuncEnd 312 + .FuncBody3 313 + ld hl, BIT_DOOR_EAST 314 + ld e, [hl] 315 + cp a, e 316 + jp nz, .FuncEnd 317 + ld hl, BIT_DOOR_WEST 318 + ld b, [hl] 319 + .FuncEnd 320 + pop de 321 + pop hl 286 322 ret