Batch Renderer 1/2
@ -1,5 +1,6 @@
|
||||
set(SRC_FILES
|
||||
"Src/imp/cpp/Main.cpp"
|
||||
"Src/imp/cpp/Game.cpp"
|
||||
)
|
||||
|
||||
add_executable(IAERPG ${SRC_FILES})
|
||||
|
||||
|
After Width: | Height: | Size: 622 B |
BIN
Samples/RPG/Resources/Cute_Fantasy_Free/Animals/Cow/Cow.png
Normal file
|
After Width: | Height: | Size: 983 B |
BIN
Samples/RPG/Resources/Cute_Fantasy_Free/Animals/Pig/Pig.png
Normal file
|
After Width: | Height: | Size: 735 B |
BIN
Samples/RPG/Resources/Cute_Fantasy_Free/Animals/Sheep/Sheep.png
Normal file
|
After Width: | Height: | Size: 748 B |
3
Samples/RPG/Resources/Cute_Fantasy_Free/Credits.txt
Normal file
@ -0,0 +1,3 @@
|
||||
This asset pack is taken from here https://kenmi-art.itch.io/cute-fantasy-rpg
|
||||
|
||||
This is the free version
|
||||
BIN
Samples/RPG/Resources/Cute_Fantasy_Free/Enemies/Skeleton.png
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
Samples/RPG/Resources/Cute_Fantasy_Free/Enemies/Slime_Green.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 386 B |
|
After Width: | Height: | Size: 585 B |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 921 B |
|
After Width: | Height: | Size: 7.3 KiB |
BIN
Samples/RPG/Resources/Cute_Fantasy_Free/Player/Player.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
BIN
Samples/RPG/Resources/Cute_Fantasy_Free/Tiles/Beach_Tile.png
Normal file
|
After Width: | Height: | Size: 648 B |
BIN
Samples/RPG/Resources/Cute_Fantasy_Free/Tiles/Cliff_Tile.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
Samples/RPG/Resources/Cute_Fantasy_Free/Tiles/FarmLand_Tile.png
Normal file
|
After Width: | Height: | Size: 371 B |
BIN
Samples/RPG/Resources/Cute_Fantasy_Free/Tiles/Grass_Middle.png
Normal file
|
After Width: | Height: | Size: 99 B |
BIN
Samples/RPG/Resources/Cute_Fantasy_Free/Tiles/Path_Middle.png
Normal file
|
After Width: | Height: | Size: 99 B |
BIN
Samples/RPG/Resources/Cute_Fantasy_Free/Tiles/Path_Tile.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
Samples/RPG/Resources/Cute_Fantasy_Free/Tiles/Water_Middle.png
Normal file
|
After Width: | Height: | Size: 99 B |
BIN
Samples/RPG/Resources/Cute_Fantasy_Free/Tiles/Water_Tile.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
10
Samples/RPG/Resources/Cute_Fantasy_Free/read_me.txt
Normal file
@ -0,0 +1,10 @@
|
||||
Hello! Thank you for downloading the Cute Fantasy asset pack.
|
||||
|
||||
This project will be getting updates over time. This version of the asset pack is not final and there will be few more additional sprites.
|
||||
|
||||
License - Free Version
|
||||
- You can use these assets in non-commercial projects.
|
||||
- You can modify the assets.
|
||||
- You can not redistribute or resale, even if modified
|
||||
|
||||
If you like the asset pack leave a comment. It helps to support the asset pack and get more people to see it. Thanks!
|
||||
55
Samples/RPG/Src/imp/cpp/Game.cpp
Normal file
@ -0,0 +1,55 @@
|
||||
// IAEngine: 2D Game Engine by IA
|
||||
// Copyright (C) 2025 IASoft (PVT) LTD (oss@iasoft.dev)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include <Game.hpp>
|
||||
|
||||
namespace ia::iae::rpg
|
||||
{
|
||||
GameRequestedConfig *RequestEngineConfig()
|
||||
{
|
||||
STATIC GameRequestedConfig EngineConfig{
|
||||
.DesignWidth = 800,
|
||||
.DesignHeight = 600,
|
||||
.WindowWidth = 800,
|
||||
.WindowHeight = 600,
|
||||
};
|
||||
return &EngineConfig;
|
||||
}
|
||||
|
||||
VOID OnInitialize()
|
||||
{
|
||||
}
|
||||
|
||||
VOID OnTerminate()
|
||||
{
|
||||
}
|
||||
|
||||
VOID OnDebugDraw()
|
||||
{
|
||||
}
|
||||
|
||||
VOID OnFixedUpdate()
|
||||
{
|
||||
}
|
||||
|
||||
VOID OnUpdate(IN FLOAT32 deltaTime)
|
||||
{
|
||||
}
|
||||
|
||||
VOID OnResize(IN INT32 newWidth, IN INT32 newHeight)
|
||||
{
|
||||
}
|
||||
} // namespace ia::iae::rpg
|
||||
@ -1,6 +1,54 @@
|
||||
// IAEngine: 2D Game Engine by IA
|
||||
// Copyright (C) 2025 IASoft (PVT) LTD (oss@iasoft.dev)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
int main(int agrc, char** argv)
|
||||
#include <Game.hpp>
|
||||
|
||||
C_DECL(GameRequestedConfig *Game_GetConfigRequest())
|
||||
{
|
||||
|
||||
return 0;
|
||||
}
|
||||
return rpg::RequestEngineConfig();
|
||||
}
|
||||
|
||||
C_DECL(VOID Game_OnInitialize())
|
||||
{
|
||||
rpg::OnInitialize();
|
||||
}
|
||||
|
||||
C_DECL(VOID Game_OnTerminate())
|
||||
{
|
||||
rpg::OnTerminate();
|
||||
}
|
||||
|
||||
C_DECL(VOID Game_OnDebugDraw())
|
||||
{
|
||||
rpg::OnDebugDraw();
|
||||
}
|
||||
|
||||
C_DECL(VOID Game_OnFixedUpdate())
|
||||
{
|
||||
rpg::OnFixedUpdate();
|
||||
}
|
||||
|
||||
C_DECL(VOID Game_OnUpdate(IN FLOAT32 deltaTime))
|
||||
{
|
||||
rpg::OnUpdate(deltaTime);
|
||||
}
|
||||
|
||||
C_DECL(VOID Game_OnResize(IN INT32 newWidth, IN INT32 newHeight))
|
||||
{
|
||||
rpg::OnResize(newWidth, newHeight);
|
||||
}
|
||||
|
||||
IAENGINE_RUN("IAE RPG", "com.iasoft.iae.sample.rpg", "IASoft (PVT) LTD", "IASoft (PVT) LTD", 1, 0, 0);
|
||||
|
||||
24
Samples/RPG/Src/imp/hpp/Base.hpp
Normal file
@ -0,0 +1,24 @@
|
||||
// IAEngine: 2D Game Engine by IA
|
||||
// Copyright (C) 2025 IASoft (PVT) LTD (oss@iasoft.dev)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <IAEngine/LibInterface.hpp>
|
||||
|
||||
namespace ia::iae::rpg
|
||||
{
|
||||
|
||||
}
|
||||
31
Samples/RPG/Src/imp/hpp/Game.hpp
Normal file
@ -0,0 +1,31 @@
|
||||
// IAEngine: 2D Game Engine by IA
|
||||
// Copyright (C) 2025 IASoft (PVT) LTD (oss@iasoft.dev)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Base.hpp>
|
||||
|
||||
namespace ia::iae::rpg
|
||||
{
|
||||
GameRequestedConfig* RequestEngineConfig();
|
||||
|
||||
VOID OnInitialize();
|
||||
VOID OnTerminate();
|
||||
VOID OnDebugDraw();
|
||||
VOID OnFixedUpdate();
|
||||
VOID OnUpdate(IN FLOAT32 deltaTime);
|
||||
VOID OnResize(IN INT32 newWidth, IN INT32 newHeight);
|
||||
}
|
||||