-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from MisterGC/features/assests-round1
Features/assests round1
- Loading branch information
Showing
37 changed files
with
10,399 additions
and
179 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
== Keeper of the Garden == | ||
![Keeper of the Garden Title](devlog/m5_clean_title_screen.png) | ||
# Keeper of the Garden | ||
My Game for [Ludum Dare 46](https://ldjam.com/events/ludum-dare/46). | ||
You are the `Keeper of the Garden`, take care of plants and fight against greedy creatures. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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 @@ | ||
// (c) [email protected] - zlib license, see "LICENSE" file | ||
import QtQuick 2.12 | ||
import QtGraphicalEffects 1.12 | ||
|
||
Glow { | ||
property var image: null | ||
parent: image.parent | ||
width: image.width | ||
height: image.height | ||
radius: 20 | ||
samples: 17 | ||
color: "#00dce7" | ||
source: image | ||
Behavior on radius { NumberAnimation {duration: 2000}} | ||
} |
This file contains 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// (c) [email protected] - zlib license, see "LICENSE" file | ||
|
||
import QtQuick 2.12 | ||
import QtMultimedia 5.12 | ||
import Box2D 2.0 | ||
import Clayground.Physics 1.0 | ||
import Clayground.ScalingCanvas 1.0 | ||
|
@@ -11,9 +12,10 @@ GameEntity | |
bodyType: Body.Dynamic | ||
bullet: true | ||
|
||
property int energy: 3 | ||
source: theWorld.resource("visual/player.png"); | ||
property int energy: 4 | ||
|
||
property real moveSpeed: 25 | ||
property real moveSpeed: 35 | ||
property real dodgeSpeed: 0 | ||
property real _desiredVeloX: 0 | ||
property real _desiredVeloY: 0 | ||
|
@@ -23,7 +25,22 @@ GameEntity | |
property bool isProtecting: false | ||
// Workaround to trigger collision checks even if player doesn't | ||
// move between triggering protections two time | ||
onIsProtectingChanged: { awake = false; awake = true; } | ||
onIsProtectingChanged: { | ||
awake = false; awake = true; | ||
if (isProtecting) protectSound.play(); | ||
else protectSound.stop(); | ||
} | ||
SoundEffect { | ||
id: protectSound | ||
source: theWorld.resource("sound/protecting.wav") | ||
loops: SoundEffect.Infinite | ||
} | ||
onIsDodgingChanged: if (isDodging) dodgeSound.play(); | ||
SoundEffect { | ||
id: dodgeSound | ||
source: theWorld.resource("sound/dodge.wav") | ||
volume: .5 | ||
} | ||
|
||
debug: true | ||
text: energy > 0 ? "♥".repeat(energy) : "☠" | ||
|
@@ -44,7 +61,7 @@ GameEntity | |
id: protectionRangeVisu | ||
opacity: .2 | ||
color: "red" | ||
visible: thePlayer.isProtecting | ||
visible: false | ||
property int scaleFac: thePlayer.isProtecting ? 10 : 1 | ||
x: -.5 * (width - thePlayer.width) | ||
y: -.5 * (width - thePlayer.width) | ||
|
@@ -65,6 +82,11 @@ GameEntity | |
property real protection: thePlayer.isProtecting ? .5 : 0 | ||
} | ||
} | ||
GlowEffect { | ||
visible: thePlayer.isProtecting || thePlayer.isDodging | ||
image: thePlayer.image | ||
color: thePlayer.isProtecting ? "#00dce7" : "#e79100" | ||
} | ||
|
||
onDodgeSpeedChanged: { | ||
_updateVelocity(); | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.