Starphase

Rating: 
5
Your rating: None Average: 5 (1 vote)

Star Phase (Fork from https://github.com/Jigoku/starphase)

A top down / side scrolling space shooter made with Lua and Love2D.

This app depends on LÖVE runtime, make sure you install it first: https://openrepos.net/content/sashikknox/love-2d-runtime

This is yet more a technical demo than a full game, there is only one stage which randomly changes the background colors and planets and one boss. There's nothing after you beat the boss, feel free to contribute if you want to see more content.

I added to this fork:

  • Thumbstick control support (You can navigate menus and play the game with the left thumbstick)
  • Added touch controls and several tweaks to run on mobiles (check releases for more info).
  • Two players mode (work in progress)
  • Dialogs
  • Boss (first stage)
  • Credits

Tweaks for the mobile version:

  • Disabled love-webp libraries
  • Reduced size of planets resolution
  • Only 3 music tracks kept in order to reduce the size of the game to keep distribution easy.

Version 0.1.4b-1 adds:

local multiplayer and remote network controls improvements (to be used together with the virtual gamepad):

  • Added network menu to enable, disable and set up network controls
  • Player one can also be controlled remotely (in one player mode)
  • Added network menu to set up the remote server ip, ports and the ip of the virtual gamepad that connects to it.

Music and sounds play very loud and current LÖVE builds do not feature master volume control (pressing volume buttons does not affect the game). As a workaround to the problem I suggest using headphones.

 

Version 0.1.5 adds:

- Stop spawning enemies when reaching the boss (the boss can now be defeated and has a reasonable difficulty level)

- Hud progress keep updating even during the dialogs.

 

Version 0.1.6 adds:

- Corrected touch and network menu (can be opened during the splash screen). Now different touch layouts can be selected and network configuration for network controls can be added.

- Error causing the touch controls to be hidden during the title fixed

- Added virtual numeric pad to the network menu

Version 0.1.7 adds:

- Landscape mode

- automatic device orientation detection

Version 0.1.8 adds:

- Cutscenes

Cutscenes are heavy and make distribution hard, there is for now just one cutscene after beating the first boss but it is not included with the game. The game has an exception and will show a message and continue the routine, so the cutscenes are optional and will be distributed separately.

Version 0.1.9 adds:

- Increased thumbstick and buttons radius (similar layout to other games in landscape mode)

Contributions welcome, feel free to clone and push your contributions from / to: https://codeberg.org/glitchapp/starphase-mobile

Version 0.2.0 adds:

Adjustments to the portrait arcade view of the game.

Adjustments to touch sensitivity of the touch controls

Improved touch layouts for the portrait arcade view

Screenshots: 

Category:

Keywords:

Application versions: 
AttachmentSizeDate
File starphase-0.1.4-1.noarch.rpm42.02 MB18/03/2024 - 13:53
File starphase-0.1.4b-1.noarch.rpm44.69 MB20/03/2024 - 13:53
File starphase-0.1.5-1.noarch.rpm44.69 MB24/04/2024 - 18:14
File starphase-0.1.6-1.noarch.rpm44.74 MB02/05/2024 - 20:40
File starphase-0.1.7-1.noarch.rpm44.74 MB06/05/2024 - 12:27
File starphase-0.1.8-1.noarch.rpm44.77 MB23/05/2024 - 21:14
File starphase-0.1.9-1.noarch.rpm55.29 MB25/05/2024 - 08:23
File starphase-0.2.1-1.noarch.rpm55.29 MB06/07/2024 - 12:00
Changelog: 

Version 0.2.0 adds:

Adjustments to the portrait arcade view of the game.

Adjustments to touch sensitivity of the touch controls

Improved touch layouts for the portrait arcade view

Comments

windes's picture

Can't add screenshot here. Sailfish last, 4.5.0.25, love - last from chum.

glitchapp's picture

I have a new phone with the same sailfish version (4.5) and love2d from chum and the game works (tested with last build of the game).

glitchapp's picture

right, I can not test on your sailfish version, tell me if the chum builds for boxclip work for you and if they do I may submit starphase for automatic building to obs and hope that it solve issues with modern sailfish versions...

windes's picture

Can't find installed game, blue screen with text if error.

glitchapp's picture

Hi, thanks for the feedback. I can not reproduce your error on sailfish 3.4. I have löve from chum repository: https://build.sailfishos.org/package/show/sailfishos:chum:testing/love2d

I always install the games on my phone and test them before submitting them. Please share your sailfish and love version, test it with the löve builds from chum repository and if there's any error on screen feel free to share it. There's not much I can do regarding the incompatibilities with modern sailfish versions, I'm not in charge of building the löve runtimes I'm afraid... I just hope the new builds solve the issues.

baboo's picture

Yes. I tried installing love from obs after installing libmodplug. Same.
I also just updated starphase and virtual touch input. Same errors/crashes as before.
When launching virtualtouch input, gives the same error: attempt to compare nil with number. Launching it with terminal, it works for a while, keep touching the buttons for a while and it crashes:
INFO: [LOVE] Error: src/touchKeyboard.lua:58: attempt to perform arithm
etic on local 'x' (a nil value)
stack traceback:
[string "boot.lua"]:777: in function '__sub'
src/touchKeyboard.lua:58: in function 'touchpressed'
src/Gamepad/touchEvents.lua:18: in function
[string "boot.lua"]:604: in function <[string "boot.lua"]:594>
[C]: in function 'xpcall'
But Starphase, however you launch it gives the 'attempt to compare nil with number' error.
And just a note here: love from obs is launched in a small portion/window of the screen, while the one from openrepos, launches full screen (on my device anyway)

glitchapp's picture

I can not reproduce it on a sailfish 3.4 version and it sounds to me that your error are related to this discussion here: https://forum.sailfishos.org/t/harbour-is-libudev-really-need-to-be-depr...

I would suggest to join the discussion, it sounds to me that modern versions of sailfish miss some library (libudev maybe?) and that's what causing the errors... I don't know how to solve it but maybe they have idea.

Regarding the error with starphase, please provide the exact line where the error occurs and will try to initialize that variable and see if it solves the problem, however such a problem does not occur on desktop or my phone.

Thanks for the feedback!

baboo's picture

32bit. I tried rpm from OBS, didnt work. I then manually installed 'liblove' in case it doesnt get installed automatically.
I dont know what modplug is but i found & installed 'libmodplug' in openrepos.
Nothing worked unfortunately.

glitchapp's picture

I think I could not install love from obs before installing libmodplug, have you tried to install love from obs after libmodplug is installed? that worked for me...

baboo's picture

The animated balloon with clouds. Yes it's working.

glitchapp's picture

according to some other feedback one of the reason why the apps do not work is sailjail, try to download and install my app "virtual Gamepad" which I rebuilt to make the folder match the app's name and let me know if it works. If that's the case I would try to fix all apps that have similar issues.

glitchapp's picture

strange...  do you have 32bits or 64bits? try the following files if you are on 64bits: https://build.sailfishos.org/project/show/home:nephros:devel:games:love

and try this one if you are on 32bits : https://build.sailfishos.org/package/binaries/home:nephros:devel:games:l...

make sure you also install modplug first

baboo's picture

Thank you for your efforts. However, all your recent games are complaining about missing their respective file/directory in /usr/share (bluescreen). Yet they are already there.
Running from terminal launches the game(s) for a second only to display a different error again:
[defaultuser@XperiaXA2-DualSIM ~]$ love /usr/share/Block
drop/blockdrop-mobile-fork-v0.1-3.love
[ALSOFT] (WW) pthread_setschedparam failed: Operation no
t permitted (1)
[ALSOFT] (WW) D-Bus not supported
[ALSOFT] (WW) pthread_setschedparam failed: Operation no
t permitted (1)
[ALSOFT] (WW) D-Bus not supported
xkbcommon: ERROR: couldn't find a Compose file for local
e "en_US.utf8" (mapped to "en_US.utf8")
INFO: [LOVE] Error: touchControls.lua:123: attempt to co
mpare number with nil
stack traceback:
[string "boot.lua"]:777: in function '__lt'
touchControls.lua:123: in function 'checkTouchMo
vement'
main.lua:162: in function 'update'
[string "boot.lua"]:612: in function <[string "b
oot.lua"]:594>
[C]: in function 'xpcall'
* OS version (4.5.0.25)
*same error for all your games
*also posted on virtual touchInput page(different error)

glitchapp's picture

make sure you install modplug which is also needed and feel free to provide further feedback.

glitchapp's picture

hello and thank you for your feedback. I removed and downloaded the game again to my mobile from the build above just in case I made a mistake on the last build, the game starts and runs as expected. Unfortunately I can not reproduce your error. The screenshots I uploaded are taken from my mobile.

I would suggest to make sure first that your installed love build works. Simply type love on a terminal and see if you see the love animation.

Please Let me know so that we can discard that and check for other reasons why the game is not working on your mobile.