Playing around with shaders for effects on the scene.

This commit is contained in:
Zed A. Shaw 2025-01-27 11:36:00 -05:00
parent 3519c73079
commit 071808a0f8
8 changed files with 68 additions and 4 deletions

View file

@ -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();
}