changeset 5:0c50890ef159

flappyufo-0.230919-1
author prymula <prymula76@outlook.com>
date Wed, 31 Jan 2024 13:23:13 +0100
parents 0962f0296c8a
children 542e305f23f4
files flappyufo/DEBIAN/debian.control flappyufo/DEBIAN/debian.rules flappyufo/DEBIAN/flappyufo.dsc flappyufo/DEBIAN/format.sh flappyufo/RPM/flappyufo.spec flappyufo/src/flappyufo/FlappyUfo.java flappyufo/win32/wrapper.c
diffstat 6 files changed, 14 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- 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
 
 
--- 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 --
--- 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 <prymula76@outlook.com>
 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-----
 
--- 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
--- 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++) {
--- 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;