Minor Tweaks
This commit is contained in:
parent
8ecd448b00
commit
a1a5217309
|
@ -1,6 +1,9 @@
|
||||||
function main() {
|
function main() {
|
||||||
log.Info("Azulian '%s' initialized!", Self.Doodad.Title);
|
log.Info("Azulian '%s' initialized!", Self.Doodad.Title);
|
||||||
|
|
||||||
|
|
||||||
|
Self.Canvas.SetBackground(RGBA(0, 153, 255, 100));
|
||||||
|
|
||||||
var playerSpeed = 12;
|
var playerSpeed = 12;
|
||||||
var gravity = 4;
|
var gravity = 4;
|
||||||
var Vx = Vy = 0;
|
var Vx = Vy = 0;
|
||||||
|
|
|
@ -2,6 +2,8 @@ function main() {
|
||||||
Self.AddAnimation("open", 0, [1]);
|
Self.AddAnimation("open", 0, [1]);
|
||||||
var unlocked = false;
|
var unlocked = false;
|
||||||
|
|
||||||
|
Self.Canvas.SetBackground(RGBA(0, 255, 255, 100));
|
||||||
|
|
||||||
// Map our door names to key names.
|
// Map our door names to key names.
|
||||||
var KeyMap = {
|
var KeyMap = {
|
||||||
"Blue Door": "Blue Key",
|
"Blue Door": "Blue Key",
|
||||||
|
@ -32,6 +34,5 @@ function main() {
|
||||||
});
|
});
|
||||||
Events.OnLeave(function(e) {
|
Events.OnLeave(function(e) {
|
||||||
console.log("%s has stopped touching %s", e, Self.Doodad.Title)
|
console.log("%s has stopped touching %s", e, Self.Doodad.Title)
|
||||||
Self.Canvas.SetBackground(RGBA(0, 0, 1, 0));
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ function main() {
|
||||||
|
|
||||||
var timer = 0;
|
var timer = 0;
|
||||||
|
|
||||||
Self.SetHitbox(0, 0, 72, 9);
|
Self.SetHitbox(0, 0, 72, 6);
|
||||||
|
|
||||||
var animationSpeed = 100;
|
var animationSpeed = 100;
|
||||||
var opened = false;
|
var opened = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user