I'm trying to write a basic enemy chases player left and right script, and I keep striking out here...
Basically, I'm trying to do this:
If(playerX>objectX){enemy dir == right}else{enemy dir==left}
My asm skills are really pretty crappy, but this is how I've attempted to rewrite that:
Ldx player_object
Lda object_movement_x
Cmp
BMI move left
(Move right script)
MoveLeft:
(MoveLeft script)
Rts
Have I completely shit out here ?
Basically, I'm trying to do this:
If(playerX>objectX){enemy dir == right}else{enemy dir==left}
My asm skills are really pretty crappy, but this is how I've attempted to rewrite that:
Ldx player_object
Lda object_movement_x
Cmp
BMI move left
(Move right script)
MoveLeft:
(MoveLeft script)
Rts
Have I completely shit out here ?