Raftronaut
Member
dale_coop said:Here a modified one, you could try
(see my comments, in the script)Code:;; checking center left collision point LDA collisionPoint4 BNE RailsLeftRight ;; there is a collision ;; checking center right collision point LDA collisionPoint5 BNE RailsLeftRight ;; there is a collision ;; no left/right collision... RailsTopBottom: ;; block vertical movement: LDA yPrev STA Object_y_hi,x STA yHold_hi JMP endRails RailsLeftRight: ;; solid from sides: LDA #TILE_SOLID STA tile_solidity ;; but it sticks !!!! ;; so... ;; add here a small sliding down: LDA yPrev CLC ADC #$01 STA Object_y_hi,x STA yHold_hi endRails:
Dale, this "rail tile" is basically finished for me now. Though I think the earlier Vanilla version of this tile would be helpful for the Shmup community. I have mentioned before that I am planning to start a vanilla shmup project soon to share insights into common shmup game play elements.
Would you mind if I shared your code for the RAILS in the scripts section? Obviously I would give you the full credit, but I could make video examples and post the directions if you would approve of it.