From: Michael Gernoth Date: Tue, 29 Apr 2008 15:47:42 +0000 (+0200) Subject: fix sprite offset when not flipped (now it's broken when the screen is flipped) X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/fpga-games/commitdiff_plain/e68e4aa04e310748e9bb64f78dca1cd81a8b9bb3?hp=ccb8c4aabc8cc4d44a1218b9dc235f4d7be116b5 fix sprite offset when not flipped (now it's broken when the screen is flipped) --- diff --git a/galaxian/src/mc_video.v b/galaxian/src/mc_video.v index c93b557..aafdcd3 100644 --- a/galaxian/src/mc_video.v +++ b/galaxian/src/mc_video.v @@ -148,7 +148,7 @@ wire [7:3]W_HF_CNT = I_H_CNT[7:3]^{5{W_H_FLIP1}}; wire [7:0]W_VF_CNT = I_V_CNT[7:0]^{8{I_V_FLIP}}; assign O_8HF = W_HF_CNT[3]; -assign O_1VF = W_VF_CNT[0]; +assign O_1VF = I_V_CNT[0]^1'b1; //XXX: breaks when flipped reg [7:0]W_OBJ_D; wire [3:0]W_6J_DA = {I_H_FLIP , W_HF_CNT[7],W_HF_CNT[3],I_H_CNT[2]};