Skip to content

Commit

Permalink
Change/love 11.3 (#17)
Browse files Browse the repository at this point in the history
* ⬆️ Upgrade to LÖVE 11.3

* ⬆️ Upgrade to push v0.4
* 👽️ Change color values to be in the range of 0-1
* 👽️ Adapt to removals/deprecations from LÖVE 11.3

* 🔥 Remove code for debugging

* 🐛 Fix health alarm resume after pause

* 📝 Update README with new love2d version

* 🔥 Remove old explosion sound
  • Loading branch information
RafaelWO authored Dec 20, 2021
1 parent 6fe85c0 commit b8c826d
Show file tree
Hide file tree
Showing 24 changed files with 347 additions and 278 deletions.
23 changes: 5 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<a href="https://github.com/RafaelWO/space-love/releases">
<img alt="GitHub all releases" src="https://img.shields.io/github/downloads/rafaelwo/space-love/total">
</a>
<a href="https://github.com/love2d/love/releases/tag/0.10.2">
<img alt="Love2d version" src="https://img.shields.io/badge/love2d-0.10.2-%23ea316e">
<a href="https://github.com/love2d/love/releases/tag/11.3">
<img alt="Love2d version" src="https://img.shields.io/badge/love2d-11.3-%23ea316e">
</a>
</p>

Expand All @@ -21,24 +21,12 @@ Download the latest version of the game via the [releases][].
### Windows and MacOS
For Windows (win32, win64) and MacOS users, please download the corresponding `.zip` file.

If you have installed LÖVE or want to install it - for this, install the corresponding [release 0.10.2 from GitHub](https://github.com/love2d/love/releases/tag/0.10.2) - you can simply download the `.love` file from the [releases][] and double-click the file to start the game.
If you have installed LÖVE or want to install it (see the [official website](https://love2d.org/) for installing it) you can simply download the `.love` file from the [releases][] and double-click the file to start the game.

### Linux
To run the game on Linux you have to install LÖVE 0.10.2. You can do this manually using the link above or run the following commands in a terminal.

```bash
LOVE_URL='https://github.com/love2d/love/releases/download/0.10.2'
TEMP_DEB1="$(mktemp)"
TEMP_DEB2="$(mktemp)"
wget -O "$TEMP_DEB1" "$LOVE_URL/liblove0_0.10.2ppa1_amd64.deb"
wget -O "$TEMP_DEB2" "$LOVE_URL/love_0.10.2ppa1_amd64.deb"
sudo dpkg -i "$TEMP_DEB1" "$TEMP_DEB2"
rm -f "$TEMP_DEB1" "$TEMP_DEB2"
```

To run the game on Linux you have to install LÖVE 11.3 from the [official website](https://love2d.org/).
Then download the `.love` file from the [releases][] and simply double-click it.


## Instructions
#### Menu
Use the arrow keys <kbd>&uarr;</kbd> <kbd>&darr;</kbd> to navigate within menus and press <kbd>enter</kbd> to select.
Expand All @@ -52,7 +40,7 @@ Press <kbd>esc</kbd> to quit.

## Used Libraries, Art Packs, Sounds
### Art Pack
The sprites (plus backgrounds, fonts and some sound effects) used in this game are from the art pack [Space Shooter Redux](https://opengameart.org/content/space-shooter-redux) by [Kenny](www.kenney.nl).
The sprites (plus backgrounds, fonts and some sound effects) used in this game are from the art pack [Space Shooter Redux](https://opengameart.org/content/space-shooter-redux) by [Kenny](https://www.kenney.nl).

Some UI elements are from the [UI Pack: RPG Expansion](https://www.kenney.nl/assets/ui-pack-rpg-expansion) by Kenny.

Expand All @@ -62,7 +50,6 @@ The soundtracks are from Juhani Junkala and can be found [here](https://opengame

Other sound effects:
- Various sounds from [512 Sound Effects](https://opengameart.org/content/512-sound-effects-8-bit-style)
- [Explosion](https://opengameart.org/content/explosion-0)

### Libraries
* [Class](https://github.com/vrld/hump)
Expand Down
17 changes: 13 additions & 4 deletions conf.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
function love.conf(t)
t.identity = "space-love" -- The name of the save directory (string)
t.version = "0.10.2" -- The LÖVE version this game was made for (string)
t.appendidentity = false -- Search files in source directory before save directory (boolean)
t.version = "11.3" -- The LÖVE version this game was made for (string)
t.console = false -- Attach a console (boolean, Windows only)
t.accelerometerjoystick = false -- Enable the accelerometer on iOS and Android by exposing it as a Joystick (boolean)
t.externalstorage = false -- True to save files (and read from the save directory) in external storage on Android (boolean)
t.gammacorrect = true -- Enable gamma-correct rendering, when supported by the system (boolean)
t.gammacorrect = false -- Enable gamma-correct rendering, when supported by the system (boolean)

t.audio.mic = false -- Request and use microphone capabilities in Android (boolean)
t.audio.mixwithsystem = true -- Keep background music playing when opening LOVE (boolean, iOS and Android only)

t.window.title = "Space Love" -- The window title (string)
t.window.icon = nil -- Filepath to an image to use as the window's icon (string)
Expand All @@ -16,15 +20,20 @@ function love.conf(t)
t.window.minheight = 1 -- Minimum window height if the window is resizable (number)
t.window.fullscreen = false -- Enable fullscreen (boolean)
t.window.fullscreentype = "desktop" -- Choose between "desktop" fullscreen or "exclusive" fullscreen mode (string)
t.window.vsync = true -- Enable vertical sync (boolean)
t.window.vsync = 1 -- Vertical sync mode (number)
t.window.msaa = 0 -- The number of samples to use with multi-sampled antialiasing (number)
t.window.depth = nil -- The number of bits per sample in the depth buffer
t.window.stencil = nil -- The number of bits per sample in the stencil buffer
t.window.display = 1 -- Index of the monitor to show the window in (number)
t.window.highdpi = false -- Enable high-dpi mode for the window on a Retina display (boolean)
t.window.usedpiscale = true -- Enable automatic DPI scaling when highdpi is set to true as well (boolean)
t.window.x = nil -- The x-coordinate of the window's position in the specified display (number)
t.window.y = nil -- The y-coordinate of the window's position in the specified display (number)

t.modules.audio = true -- Enable the audio module (boolean)
t.modules.data = true -- Enable the data module (boolean)
t.modules.event = true -- Enable the event module (boolean)
t.modules.font = true -- Enable the font module (boolean)
t.modules.graphics = true -- Enable the graphics module (boolean)
t.modules.image = true -- Enable the image module (boolean)
t.modules.joystick = false -- Enable the joystick module (boolean)
Expand All @@ -34,9 +43,9 @@ function love.conf(t)
t.modules.physics = false -- Enable the physics module (boolean)
t.modules.sound = true -- Enable the sound module (boolean)
t.modules.system = true -- Enable the system module (boolean)
t.modules.thread = true -- Enable the thread module (boolean)
t.modules.timer = true -- Enable the timer module (boolean), Disabling it will result 0 delta time in love.update
t.modules.touch = false -- Enable the touch module (boolean)
t.modules.video = false -- Enable the video module (boolean)
t.modules.window = true -- Enable the window module (boolean)
t.modules.thread = true -- Enable the thread module (boolean)
end
Loading

0 comments on commit b8c826d

Please sign in to comment.