forked from htv04/funkin-rewritten
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c4b9f4
commit 76715a6
Showing
16 changed files
with
478 additions
and
20 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
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,64 @@ | ||
local SpookyDarkCharacter = BaseCharacter:extend() | ||
|
||
function SpookyDarkCharacter:new() | ||
BaseCharacter.new(self, "sprites/characters/skid-and-pump-dark.lua") | ||
|
||
self.child = love.filesystem.load("sprites/characters/skid-and-pump.lua")() | ||
self.child.alpha = 1 | ||
end | ||
|
||
function SpookyDarkCharacter:update(dt) | ||
BaseCharacter.update(self, dt) | ||
|
||
self.child:update(dt) | ||
|
||
self.child.x, self.child.y = self.x, self.y | ||
self.child.orientation = self.orientation | ||
self.child.sizeX, self.child.sizeY = self.sizeX, self.sizeY | ||
self.child.offsetX, self.child.offsetY = self.child.offsetX, self.child.offsetY | ||
self.child.shearX, self.child.shearY = self.shearX, self.shearY | ||
self.child.flipX, self.child.flipY = self.flipX, self.flipY | ||
|
||
self.child.shader = self.shader | ||
|
||
self.child.holdTimer = self.holdTimer | ||
end | ||
|
||
function SpookyDarkCharacter:draw() | ||
if not self.visible then return end | ||
|
||
self.child:draw() | ||
self.spr:draw() | ||
end | ||
|
||
function SpookyDarkCharacter:udraw(sx, sy) | ||
if not self.visible then return end | ||
|
||
self.child:udraw(sx, sy) | ||
self.spr:udraw(sx, sy) | ||
end | ||
|
||
function SpookyDarkCharacter:beat(beat) | ||
self.child:beat(beat) | ||
self.spr:beat(beat) | ||
end | ||
|
||
function SpookyDarkCharacter:animate(...) | ||
self.child:animate(...) | ||
self.spr:animate(...) | ||
end | ||
|
||
function SpookyDarkCharacter:isAnimated() | ||
return self.spr:isAnimated() | ||
end | ||
|
||
function SpookyDarkCharacter:getAnimName() | ||
return self.spr:getAnimName() | ||
end | ||
|
||
function SpookyDarkCharacter:setAnimSpeed(speed) | ||
self.child:setAnimSpeed(speed) | ||
self.spr:setAnimSpeed(speed) | ||
end | ||
|
||
return SpookyDarkCharacter |
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
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.