A downloadable game for Windows and macOS

Pigs flying? Who would have ever thought of that? Well, Hugo the Pig did when he discovered Farmer Joe's glider. Help Hugo escape the farm and Farmer Joe's reach as he soars through the mountains! Start flying by pressing P and control Hugo with the WASD keys. W and A control up and down rotation of his movement and A and D control the left and right. Try to fly as far as you can. Note that this is my first game written from scratch using Java and OpenGL through LWJGL. 


I have compiled native versions for both macOS and Windows. The file structures for the natives are very similar. Download the specific zip file for your system and extract it.  Open the folder and double click on the executable (will be called "macos" or "windows"). If it is your first time launching, you may get a few security warnings. These can be dismissed and, if you are on Mac, you have to go through System Preferences to do so(note that there will be two warnings and thus two dismissals). Let me know if you have any issues with the install and I apologize for any inconvenience. 


All the models are downloaded from Google Poly under the CC-BY License. The creator of these files is Poly User "Poly by Google." Some of the code for the engine is adapted from Antonio Hernández Bejarano's guide. In the project you will find a version of the Java Runtime Environment(JRE) that is legally allowed to be distributed due to it being created with the Java JDK 11 tool "jlink." All legal information about it can be found in the LEGAL folder within the "when-pigs-fly-runtime" folder.


There are a few known bugs, as expected, with this being a game jam and my first experience with OpenGL. There are issues with the model loading on different screens after reload and the terrain collision detection. If there are any issues you find, please let me know in the comments. 


The project is open source and can be found on my GitHub page. Please leave any issues there and a star would be greatly appreciated. Please also do not redistribute the Java runtime for this. 

StatusOn hold
PlatformsWindows, macOS
Rated 5.0 out of 5 stars
Tags3D, Flight, Funny, infinite-runner, java, lwjgl, moonshot, pig, Singleplayer


WhenPigsFlyMac.zip 102 MB
WhenPigsFlyWindows.zip 104 MB

Leave a comment

Log in with itch.io to leave a comment.