Project Skeleton 1/2

This commit is contained in:
Isuru Samarathunga
2025-10-03 21:20:05 +05:30
parent be7a1df305
commit ff73221cae
16 changed files with 464 additions and 1 deletions

View File

@ -0,0 +1,11 @@
set(SRC_FILES
"Src/Imp/CPP/Game.cpp"
)
add_library(Game SHARED ${SRC_FILES})
target_compile_definitions(Game PRIVATE "__BUILDING_IAENGINE_GAME=1")
target_include_directories(Game PRIVATE "Src/Imp/HPP")
target_link_libraries(Game PUBLIC IAEngine)

View File

@ -0,0 +1,68 @@
// 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>
C_DECL(IA_DLL_EXPORT VOID Game_OnInitialize())
{
GAME_LOG_INFO("Booting Game");
}
C_DECL(IA_DLL_EXPORT VOID Game_OnTerminate())
{
GAME_LOG_INFO("Shutting down Game");
}
C_DECL(IA_DLL_EXPORT VOID Game_OnDebugDraw())
{
}
C_DECL(IA_DLL_EXPORT VOID Game_OnFixedUpdate())
{
}
C_DECL(IA_DLL_EXPORT VOID Game_OnUpdate(IN FLOAT32 deltaTime))
{
}
C_DECL(IA_DLL_EXPORT VOID Game_OnResize(IN INT32 newWidth, IN INT32 newHeight))
{
}
C_DECL(IA_DLL_EXPORT PCCHAR Game_GetName())
{
return "Space Invaders";
}
C_DECL(IA_DLL_EXPORT UINT64 Game_GetVersion())
{
return IA_MAKE_VERSION(1, 0, 0);
}
C_DECL(IA_DLL_EXPORT PCCHAR Game_GetPackageName())
{
return "com.iasoft.iaenginesamples.spaceinvaders";
}
C_DECL(IA_DLL_EXPORT PCCHAR Game_GetDeveloperName())
{
return "IASoft (PVT) LTD";
}
C_DECL(IA_DLL_EXPORT PCCHAR Game_GetPublisherName())
{
return "IASoft (PVT) LTD";
}

View File

@ -0,0 +1,20 @@
// 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/GameInterface.hpp>