728x90 SMALL SFML_Custum_2D_Game_Engine1 [ChatGPT][SFML][커스텀 2D 게임 엔진 개발] SFML 기반 커스텀 2D게임 엔진용 스프라이트 편집기 생성 예제 코드 샘플 SFML 기반 커스텀 2D게임 엔진용 스프라이트 편집기 생성 예제 코드 샘플 /* Here's an example of how you could move the sprite using the arrow keys */ #include int main() { sf::RenderWindow window(sf::VideoMode(800, 600), "Sprite Editor"); sf::Texture sprite_texture; if (!sprite_texture.loadFromFile("sprite.png")) { return -1; } sf::Sprite sprite(sprite_texture); float speed = 200.0f; // pixels per second sf::Clock clock; wh.. 2023. 1. 13. 이전 1 다음 728x90 LIST