# HG changeset patch # User prymula # Date 1706703793 -3600 # Node ID 0c50890ef159cb08af76e7bb4f4c7120e3d5bf5d # Parent 0962f0296c8a569d2cbee8f1b8fda9b1d77cabd1 flappyufo-0.230919-1 diff -r 0962f0296c8a -r 0c50890ef159 flappyufo/DEBIAN/debian.control --- a/flappyufo/DEBIAN/debian.control Tue Jan 30 16:43:10 2024 +0100 +++ b/flappyufo/DEBIAN/debian.control Wed Jan 31 13:23:13 2024 +0100 @@ -3,7 +3,7 @@ Priority: extra Maintainer: Przemysław R. Pietraszczyk Build-Depends: debhelper-compat (= 12), default-jdk, default-jdk-headless, fakeroot, ant -Standards-Version: 0.230919-0 +Standards-Version: 0.230919-1 Homepage: https://prymula.ct8.pl diff -r 0962f0296c8a -r 0c50890ef159 flappyufo/DEBIAN/debian.rules --- a/flappyufo/DEBIAN/debian.rules Tue Jan 30 16:43:10 2024 +0100 +++ b/flappyufo/DEBIAN/debian.rules Wed Jan 31 13:23:13 2024 +0100 @@ -1,8 +1,6 @@ #!/usr/bin/make -f export DH_VERBOSE = 1 -#export PYBUILD_NAME = photocrop -#export PYBUILD_SYSTEM = custom clean: ant clean @@ -13,16 +11,12 @@ binary: mkdir -pm 0755 debian/flappyufo - mkdir -pm 0755 debian/flappyufo/usr/bin + mkdir -pm 0755 debian/flappyufo/usr/games mkdir -pm 0755 debian/flappyufo/usr/share/flappyufo mkdir -pm 0755 debian/flappyufo/usr/share/applications - cp build/jar/FlappyUfo.jar debian/flappyufo/usr/bin + cp build/jar/FlappyUfo.jar debian/flappyufo/usr/games cp res/flappyufo.png debian/flappyufo/usr/share/flappyufo cp flappyufo.desktop debian/flappyufo/usr/share/applications dh_gencontrol dh_builddeb -# dh $@ --with python3 --buildsystem=pybuild -# dh $@ --with python3 -#override_dh_auto_configure: -# dh_auto_configure -- diff -r 0962f0296c8a -r 0c50890ef159 flappyufo/DEBIAN/flappyufo.dsc --- a/flappyufo/DEBIAN/flappyufo.dsc Tue Jan 30 16:43:10 2024 +0100 +++ b/flappyufo/DEBIAN/flappyufo.dsc Wed Jan 31 13:23:13 2024 +0100 @@ -5,19 +5,19 @@ Source: flappyufo Binary: flappyufo Architecture: all -Version: 0.230919-0 +Version: 0.230919-1 Maintainer: Przemysław R. Pietraszczyk Homepage: https://prymula.ct8.pl DEBTRANSFORM-TAR: debian.tar.gz -DEBTRANSFORM-TAR: flappyufo-0.230919-0.tar.gz +DEBTRANSFORM-TAR: flappyufo-0.230919-1.tar.gz -Standards-Version: 0.230919-0 +Standards-Version: 0.230919-1 Build-Depends: debhelper-compat (>= 12), default-jdk, default-jdk-headless, fakeroot, ant Package-List: flappyufo deb x11 optional arch=all Files: - b31649bc23b2b7bca9ab70ea3410711a 128820 flappyufo-0.230919-0.tar.gz - 29e7e7e60bc81891e3da3871b9eeb549 764 flappyufo-0.230919-0.debian.tar.xz + b31649bc23b2b7bca9ab70ea3410711a 128820 flappyufo-0.230919-1.tar.gz + 29e7e7e60bc81891e3da3871b9eeb549 764 flappyufo-0.230919-1.debian.tar.xz -----BEGIN PGP SIGNATURE----- diff -r 0962f0296c8a -r 0c50890ef159 flappyufo/DEBIAN/format.sh diff -r 0962f0296c8a -r 0c50890ef159 flappyufo/RPM/flappyufo.spec --- a/flappyufo/RPM/flappyufo.spec Tue Jan 30 16:43:10 2024 +0100 +++ b/flappyufo/RPM/flappyufo.spec Wed Jan 31 13:23:13 2024 +0100 @@ -15,10 +15,10 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%define unmangled_version 0.230919-0 +%define unmangled_version 0.230919-1 Name: flappyufo Version: 0.230919 -Release: 0 +Release: 1 Summary: Clone Flappy Bird from Android License: GPL URL: https://prymula.ct8.pl diff -r 0962f0296c8a -r 0c50890ef159 flappyufo/src/flappyufo/FlappyUfo.java --- a/flappyufo/src/flappyufo/FlappyUfo.java Tue Jan 30 16:43:10 2024 +0100 +++ b/flappyufo/src/flappyufo/FlappyUfo.java Wed Jan 31 13:23:13 2024 +0100 @@ -378,11 +378,10 @@ private boolean checkCollisions(){ - int startX = Math.max(ufox, 0); + int startX = Math.max(ufox,0); int endX = Math.min(ufox + ufo.getWidth(), img.getWidth()); - //int startY = Math.max(ufoy - ufo.getHeight(),0); //because Y goes from top to bottom - int startY = Math.max(ufoy, 0); //because Y goes from top to bottom - int endY = Math.min(ufoy + ufo.getHeight(), img.getHeight()); + int startY = Math.max(ufoy - ufo.getHeight(),0); //because Y goes from top to bottom + int endY = Math.min(ufoy, img.getHeight()); for (int y = startY; y < endY; y++) { diff -r 0962f0296c8a -r 0c50890ef159 flappyufo/win32/wrapper.c --- a/flappyufo/win32/wrapper.c Tue Jan 30 16:43:10 2024 +0100 +++ b/flappyufo/win32/wrapper.c Wed Jan 31 13:23:13 2024 +0100 @@ -22,7 +22,7 @@ -void main( int argc, TCHAR *argv[] ) +void _main( int argc, TCHAR *argv[] ) { STARTUPINFO si; PROCESS_INFORMATION pi;