Pārlūkot izejas kodu

more cave balance

tags/v0.1.4^2
Shaun pirms 7 gadiem
vecāks
revīzija
bf662bb84a
2 mainītis faili ar 25 papildinājumiem un 13 dzēšanām
  1. +11
    -0
      src/client/js/rendering/renderer.js
  2. +14
    -13
      src/server/config/maps/cave/zone.js

+ 11
- 0
src/client/js/rendering/renderer.js Parādīt failu

@@ -473,6 +473,17 @@ define([
this.updateSprites();
},

isVisible: function(x, y) {
var stage = this.stage;
var sx = -stage.x;
var sy = -stage.y;

var sw = this.width;
var sh = this.height;

return (!((x < sx) || (y < sy) || (x >= sx + sw) || (y >= sy + sh)));
},

updateSprites: function() {
if (this.titleScreen)
return;


+ 14
- 13
src/server/config/maps/cave/zone.js Parādīt failu

@@ -35,11 +35,12 @@ module.exports = {
type: 'melee'
}, {
type: 'smokeBomb',
radius: 1,
duration: 10,
radius: 0,
repeat: 5,
duration: 7,
randomPos: true,
range: 2,
selfCast: 0.1,
selfCast: 0.2,
statMult: 1,
damage: 0.03,
element: 'arcane',
@@ -47,12 +48,12 @@ module.exports = {
particles: {
scale: {
start: {
min: 4,
max: 14
min: 15,
max: 25
},
end: {
min: 2,
max: 8
min: 10,
max: 0
}
},
opacity: {
@@ -64,23 +65,23 @@ module.exports = {
max: 2
},
speed: {
start: 2,
start: 3,
end: 0
},
color: {
start: ['fc66f7', 'a24eff'],
end: ['933159', '393268']
},
chance: 0.08,
chance: 0.1,
randomColor: true,
randomScale: true,
blendMode: 'add',
spawnType: 'rect',
spawnRect: {
x: -15,
y: -15,
w: 30,
h: 30
x: -10,
y: -10,
w: 20,
h: 20
}
}
}]


Notiek ielāde…
Atcelt
Saglabāt