Playing around with shaders for effects on the scene.
This commit is contained in:
parent
3519c73079
commit
071808a0f8
8 changed files with 68 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
|||
#include "animator.hpp"
|
||||
#include "constants.hpp"
|
||||
#include <SFML/Audio.hpp>
|
||||
#include "dbc.hpp"
|
||||
|
||||
void Animator::step(sf::Sprite& sprite, int rect_x, int rect_y, int rect_w, int rect_h) {
|
||||
if(playing) {
|
||||
|
@ -15,4 +17,5 @@ void Animator::step(sf::Sprite& sprite, int rect_x, int rect_y, int rect_w, int
|
|||
|
||||
void Animator::play() {
|
||||
playing = true;
|
||||
sound.play();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue