-
-
Notifications
You must be signed in to change notification settings - Fork 197
New port: The Impossible Game #2443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kirbylife
wants to merge
4
commits into
PortsMaster:main
Choose a base branch
from
kirbylife:theimpossiblegame
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ## Notes | ||
|
|
||
| Thanks to Grip Games and Fluke Games for creating this [iconic rhythm-platformer](https://store.steampowered.com/app/251630/The_Impossible_Game/). | ||
| Thanks to [box86](https://github.com/ptitSeb/box86) and [gl4es](https://github.com/ptitSeb/gl4es) for the tools that made this port possible. | ||
| Ported by kirbylife. | ||
|
|
||
| ### Install instructions | ||
|
|
||
| - Buy the game from [Steam](https://store.steampowered.com/app/251630/The_Impossible_Game/). | ||
| - Install the port from PortMaster. | ||
| - Copy the Linux game files from Steam into the `ports/theimpossiblegame/gamedata/` directory. | ||
| - To download the Linux depot from Steam on Windows/Mac, open the Steam console (`steam://open/console`) and run: | ||
| ``` | ||
| download_depot 251630 251632 | ||
| ``` | ||
| Then copy the contents of the downloaded folder into `ports/theimpossiblegame/gamedata/`. | ||
| - The main executable inside the depot is called `ImpossibleGame`. Make sure it is present at `ports/theimpossiblegame/gamedata/ImpossibleGame`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| #!/bin/bash | ||
|
|
||
| XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share} | ||
|
|
||
| if [ -d "/opt/system/Tools/PortMaster/" ]; then | ||
| controlfolder="/opt/system/Tools/PortMaster" | ||
| elif [ -d "/opt/tools/PortMaster/" ]; then | ||
| controlfolder="/opt/tools/PortMaster" | ||
| elif [ -d "$XDG_DATA_HOME/PortMaster/" ]; then | ||
| controlfolder="$XDG_DATA_HOME/PortMaster" | ||
| else | ||
| controlfolder="/roms/ports/PortMaster" | ||
| fi | ||
|
|
||
| source $controlfolder/control.txt | ||
| source $controlfolder/device_info.txt | ||
| export PORT_32BIT="Y" | ||
| [ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt" | ||
|
|
||
| get_controls | ||
|
|
||
| BINARYNAME="ImpossibleGame" | ||
| GAMEDIR=/$directory/ports/theimpossiblegame | ||
|
|
||
| CUR_TTY=/dev/tty0 | ||
| $ESUDO chmod 666 $CUR_TTY | ||
|
|
||
| > "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1 | ||
|
|
||
| cd $GAMEDIR | ||
|
|
||
| # Setup gl4es | ||
| if [ -f "${controlfolder}/libgl_${CFW_NAME}.txt" ]; then | ||
| source "${controlfolder}/libgl_${CFW_NAME}.txt" | ||
| else | ||
| source "${controlfolder}/libgl_default.txt" | ||
| fi | ||
|
|
||
| cd $GAMEDIR/gamedata/ | ||
|
|
||
| # Remove any Steam runtime libsteam_api.so that may have been copied from Steam | ||
| # to ensure we use only our stub | ||
| rm -f libsteam_api.so | ||
|
|
||
| # Setup Box86 | ||
| export BOX86_LOG=1 | ||
| export BOX86_DLSYM_ERROR=1 | ||
| export BOX86_SHOWSEGV=1 | ||
| export BOX86_SHOWBT=1 | ||
| export BOX86_DYNAREC=1 | ||
|
|
||
| export LD_LIBRARY_PATH="$GAMEDIR/box86/native":"/usr/lib/arm-linux-gnueabihf/":"/usr/lib32":"$LD_LIBRARY_PATH" | ||
| export BOX86_LD_LIBRARY_PATH="$GAMEDIR/box86/x86":"$GAMEDIR/box86/native":"$GAMEDIR/libs/x86" | ||
|
|
||
| if [ "$LIBGL_FB" != "" ]; then | ||
| export SDL_VIDEO_GL_DRIVER="$GAMEDIR/gl4es/libGL.so.1" | ||
| fi | ||
|
|
||
| export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig" | ||
|
|
||
| $GPTOKEYB "box86" xbox360 & | ||
| GPTK_PID=$! | ||
| $GAMEDIR/box86/box86 ./$BINARYNAME | ||
| kill $GPTK_PID 2>/dev/null | ||
|
|
||
| pm_finish |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <gameList> | ||
| <game> | ||
| <path>./The Impossible Game.sh</path> | ||
| <name>The Impossible Game</name> | ||
| <desc> | ||
| The Impossible Game is a brutally challenging rhythm-based platformer where you control a square navigating a course of obstacles. One wrong move and you start from the very beginning. With pulse-pounding music, pixel-perfect timing, and a built-in level editor, it's simple to learn but nearly impossible to master. | ||
| </desc> | ||
| <releasedate>20140508T000000</releasedate> | ||
| <developer>Fluke Games, Grip Games</developer> | ||
| <publisher>Fluke Games</publisher> | ||
| <genre>platformer</genre> | ||
| <image>./theimpossiblegame/cover.png</image> | ||
| </game> | ||
| </gameList> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,30 @@ | ||||||
| { | ||||||
| "version": 4, | ||||||
| "name": "theimpossiblegame.zip", | ||||||
| "items": ["TheImpossibleGame.sh", "theimpossiblegame"], | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done! |
||||||
| "items_opt": [], | ||||||
| "attr": { | ||||||
| "title": "The Impossible Game", | ||||||
| "porter": ["kirbylife"], | ||||||
| "desc": "The Impossible Game is a brutally challenging rhythm-based platformer where you control a square navigating a course of obstacles. One wrong move and you start from the very beginning. With pulse-pounding music, pixel-perfect timing, and a built-in level editor, it's simple to learn but nearly impossible to master.", | ||||||
| "desc_md": null, | ||||||
| "inst": "Copy the Linux game files from Steam to the ports/theimpossiblegame/gamedata directory. To get the Linux files from Steam, open the Steam console steam://open/console and run: \"download_depot 251630 251632\", then copy the contents of the downloaded depot into ports/theimpossiblegame/gamedata/.", | ||||||
| "inst_md": "Copy the Linux game files from Steam to the ports/theimpossiblegame/gamedata directory.\nTo get the Linux files from Steam, open the [Steam console](steam://open/console) and run:\n```\ndownload_depot 251630 251632\n```\nThen copy the contents of the downloaded depot into ports/theimpossiblegame/gamedata/.", | ||||||
| "genres": ["platformer"], | ||||||
| "image": null, | ||||||
| "rtr": false, | ||||||
| "exp": false, | ||||||
| "runtime": [], | ||||||
| "store": [ | ||||||
| { | ||||||
| "name": "Steam", | ||||||
| "gameurl": "https://store.steampowered.com/app/251630/The_Impossible_Game/", | ||||||
| "developerurl": "" | ||||||
| } | ||||||
| ], | ||||||
| "availability": "paid", | ||||||
| "reqs": [], | ||||||
| "arch": ["armhf"], | ||||||
| "min_glibc": "" | ||||||
| } | ||||||
| } | ||||||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file added
BIN
+15.2 KB
ports/theimpossiblegame/theimpossiblegame/box86/x86/libgobject-2.0.so.0
Binary file not shown.
Binary file added
BIN
+15.8 KB
ports/theimpossiblegame/theimpossiblegame/box86/x86/libgtk-x11-2.0.so.0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
19 changes: 19 additions & 0 deletions
19
ports/theimpossiblegame/theimpossiblegame/licenses/LICENSE-box86.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| Copyright (c) 2018-2021 Sebastien Chevalier ("ptitSeb") | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in | ||
| all copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
| THE SOFTWARE. |
20 changes: 20 additions & 0 deletions
20
ports/theimpossiblegame/theimpossiblegame/licenses/LICENSE-gl4es.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| Copyright (c) 2016-2018 Sebastien Chevalier | ||
| Copyright (c) 2013-2016 Ryan Hileman | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in | ||
| all copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
| THE SOFTWARE. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README needs a controls table
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!