본문 바로가기
728x90
SMALL

전체 글153

[ChatGPT][SFML][커스텀 2D 게임 엔진 개발] SFML기반 커스텀 2D 게임 엔진용 engine.hpp 파일의 예제 샘플 SFML기반 커스텀 2D 게임 엔진용 engine.hpp 파일의 예제 샘플 // Here is an example of an engine.hpp file for an SFML game engine #ifndef ENGINE_HPP #define ENGINE_HPP #include class Engine { public: // Initialize the engine static bool init(); // Update the engine static void update(); // Render the engine static void render(); // Clean up the engine static void cleanup(); // Get the main window static sf::RenderW.. 2023. 1. 14.
[ChatGPT][SFML][커스텀 2D 게임 엔진 개발] SFML기반 커스텀 2D 게임 엔진용 main.cpp 파일의 예제 샘플 SFML기반 커스텀 2D 게임 엔진용 main.cpp 파일의 예제 샘플 // Here is an example of a main.cpp file for an SFML game engine #include #include "engine.hpp" int main() { // Initialize the engine if (!Engine::init()) { // Handle initialization error } // Main loop flag bool quit = false; // Event handler sf::Event event; // While application is running while (!quit) { // Handle events on queue while (Engine::getWindo.. 2023. 1. 14.
[ChatGPT][SDL2][커스텀 2D 게임 엔진 개발] SDL2기반 커스텀 2D 게임 엔진용 engine.h 파일의 예제 샘플 SDL2기반 커스텀 2D 게임 엔진용 engine.h 파일의 예제 샘플 // Here is an example of an engine.h file for an SDL2 game engine #ifndef ENGINE_H #define ENGINE_H // Initialize the engine bool engine_init(); // Update the engine void engine_update(); // Render the engine void engine_render(); // Clean up the engine void engine_cleanup(); #endif /* This header file declares function prototypes for initializing, updatin.. 2023. 1. 14.
[ChatGPT][SDL2][커스텀 2D 게임 엔진 개발] SDL2기반 커스텀 게임 엔진용 main.c 파일의 예제 샘플 SDL2기반 커스텀 게임 엔진용 main.c 파일의 예제 샘플 // Here is an example of a main.c file for an SDL2 game engine #include #include "engine.h" int main(int argc, char* argv[]) { // Initialize the engine if (!engine_init()) { // Handle initialization error } // Main loop flag bool quit = false; // Event handler SDL_Event e; // While application is running while (!quit) { // Handle events on queue while (SDL_Poll.. 2023. 1. 14.
728x90
LIST