Skip to content

Commit

Permalink
feat: new effects
Browse files Browse the repository at this point in the history
  • Loading branch information
Veradictus committed Sep 27, 2023
1 parent c1993b3 commit daa457c
Show file tree
Hide file tree
Showing 20 changed files with 268 additions and 2 deletions.
210 changes: 208 additions & 2 deletions packages/client/data/sprites.json
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,15 @@
"offsetY": -24
},

{
"id": "effectentity/fire",
"width": 16,
"height": 16,
"animations": { "idle": { "length": 8, "row": 0 } },
"offsetX": -4,
"offsetY": -4
},

{ "id": "mobs/angel", "width": 32, "height": 32, "offsetX": -8, "offsetY": -13 },
{ "id": "mobs/card", "width": 32, "height": 32, "offsetX": -8, "offsetY": -13 },
{ "id": "mobs/card2", "width": 32, "height": 32, "offsetX": -8, "offsetY": -13 },
Expand Down Expand Up @@ -6130,8 +6139,8 @@
},
{
"id": "projectiles/poisonball",
"width": 40,
"height": 40,
"width": 50,
"height": 48,
"animations": {
"travel": {
"length": 10,
Expand All @@ -6141,6 +6150,58 @@
"offsetX": -18,
"offsetY": -17
},
{
"id": "projectiles/bloodball",
"width": 50,
"height": 48,
"animations": {
"travel": {
"length": 8,
"row": 0
}
},
"offsetX": -18,
"offsetY": -17
},
{
"id": "projectiles/lightningarc",
"width": 50,
"height": 48,
"animations": {
"travel": {
"length": 8,
"row": 0
}
},
"offsetX": -18,
"offsetY": -17
},
{
"id": "projectiles/firearc",
"width": 50,
"height": 48,
"animations": {
"travel": {
"length": 8,
"row": 0
}
},
"offsetX": -18,
"offsetY": -17
},
{
"id": "projectiles/shadowarc",
"width": 50,
"height": 48,
"animations": {
"travel": {
"length": 8,
"row": 0
}
},
"offsetX": -18,
"offsetY": -17
},
{
"id": "projectiles/boulder",
"idleSpeed": 75,
Expand Down Expand Up @@ -6466,6 +6527,19 @@
"offsetX": -18,
"offsetY": -15
},
{
"id": "effects/lightningexplosion",
"width": 50,
"height": 48,
"animations": {
"effect": {
"length": 8,
"row": 0
}
},
"offsetX": -18,
"offsetY": -15
},
{
"id": "effects/boulder",
"animations": {
Expand Down Expand Up @@ -6513,6 +6587,138 @@
"offsetX": -8,
"offsetY": -10
},
{
"id": "effects/attack",
"width": 32,
"height": 32,
"animations": {
"effect": {
"length": 5,
"row": 0
}
},
"offsetX": -8
},
{
"id": "effects/strength",
"width": 32,
"height": 32,
"animations": {
"effect": {
"length": 5,
"row": 0
}
},
"offsetX": -8
},
{
"id": "effects/defense",
"width": 32,
"height": 32,
"animations": {
"effect": {
"length": 5,
"row": 0
}
},
"offsetX": -8
},
{
"id": "effects/magic",
"width": 32,
"height": 32,
"animations": {
"effect": {
"length": 5,
"row": 0
}
},
"offsetX": -8
},
{
"id": "effects/archery",
"width": 32,
"height": 32,
"animations": {
"effect": {
"length": 5,
"row": 0
}
},
"offsetX": -8
},
{
"id": "effects/attacksuper",
"width": 32,
"height": 32,
"animations": {
"effect": {
"length": 5,
"row": 0
}
},
"offsetX": -8
},
{
"id": "effects/strengthsuper",
"width": 32,
"height": 32,
"animations": {
"effect": {
"length": 5,
"row": 0
}
},
"offsetX": -8
},
{
"id": "effects/defensesuper",
"width": 32,
"height": 32,
"animations": {
"effect": {
"length": 5,
"row": 0
}
},
"offsetX": -8
},
{
"id": "effects/magicsuper",
"width": 32,
"height": 32,
"animations": {
"effect": {
"length": 5,
"row": 0
}
},
"offsetX": -8
},
{
"id": "effects/archerysuper",
"width": 32,
"height": 32,
"animations": {
"effect": {
"length": 5,
"row": 0
}
},
"offsetX": -8
},
{
"id": "effects/bleed",
"width": 32,
"height": 32,
"animations": {
"effect": {
"length": 5,
"row": 0
}
},
"offsetX": -8
},
{
"id": "mobs/icegoblin",
"width": 32,
Expand Down
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.
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.
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.
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.
Binary file modified packages/client/public/img/sprites/projectiles/poisonball.png
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.
60 changes: 60 additions & 0 deletions packages/client/src/entity/character/character.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,66 @@ export default class Character extends Entity {
[Modules.Effects.Boulder]: {
key: 'effects/boulder',
animation: new Animation('effect', 7, 0, 32, 32)
},
[Modules.Effects.AccuracyBuff]: {
key: 'effects/accuracy',
animation: new Animation('effect', 5, 0, 32, 32),
perpetual: true,
speed: 200
},
[Modules.Effects.StrengthBuff]: {
key: 'effects/strength',
animation: new Animation('effect', 5, 0, 32, 32),
perpetual: true,
speed: 200
},
[Modules.Effects.DefenseBuff]: {
key: 'effects/defense',
animation: new Animation('effect', 5, 0, 32, 32),
perpetual: true,
speed: 200
},
[Modules.Effects.MagicBuff]: {
key: 'effects/magic',
animation: new Animation('effect', 5, 0, 32, 32),
perpetual: true,
speed: 200
},
[Modules.Effects.ArcheryBuff]: {
key: 'effects/archery',
animation: new Animation('effect', 5, 0, 32, 32),
perpetual: true,
speed: 200
},
[Modules.Effects.AccuracySuperBuff]: {
key: 'effects/accuracysuper',
animation: new Animation('effect', 5, 0, 32, 32),
perpetual: true,
speed: 200
},
[Modules.Effects.StrengthSuperBuff]: {
key: 'effects/strengthsuper',
animation: new Animation('effect', 5, 0, 32, 32),
perpetual: true,
speed: 200
},
[Modules.Effects.DefenseSuperBuff]: {
key: 'effects/defensesuper',
animation: new Animation('effect', 5, 0, 32, 32),
perpetual: true,
speed: 200
},
[Modules.Effects.MagicSuperBuff]: {
key: 'effects/magicsuper',
animation: new Animation('effect', 5, 0, 32, 32),
perpetual: true,
speed: 200
},
[Modules.Effects.ArcherySuperBuff]: {
key: 'effects/archerysuper',
animation: new Animation('effect', 5, 0, 32, 32),
perpetual: true,
speed: 200
}
};

Expand Down

0 comments on commit daa457c

Please sign in to comment.