yey game work UwU
|
|
@ -7,8 +7,8 @@ else()
|
||||||
set(PLATFORM_DIR "linux")
|
set(PLATFORM_DIR "linux")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
add_subdirectory(engine)
|
add_subdirectory(engine)
|
||||||
add_subdirectory(games/forespend)
|
add_subdirectory(games/forespend)
|
||||||
|
add_subdirectory(games/animatronical/q1/a1)
|
||||||
add_subdirectory(games/endlauncher)
|
add_subdirectory(games/endlauncher)
|
||||||
include(ExternalProject)
|
include(ExternalProject)
|
||||||
|
|
@ -1 +1,5 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef DOS
|
||||||
#include <raylib/raylib.h>
|
#include <raylib/raylib.h>
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ public:
|
||||||
scene *currentscene;
|
scene *currentscene;
|
||||||
int tickrate;
|
int tickrate;
|
||||||
int framerate;
|
int framerate;
|
||||||
|
bool shouldclose=false;
|
||||||
void changescene(scene*scn);
|
void changescene(scene*scn);
|
||||||
program():client(false){}
|
program():client(false){}
|
||||||
program(bool isclient):client(isclient){}
|
program(bool isclient):client(isclient){}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@
|
||||||
virtual void tick()=0;
|
virtual void tick()=0;
|
||||||
virtual void draw()=0;
|
virtual void draw()=0;
|
||||||
virtual void exit()=0;
|
virtual void exit()=0;
|
||||||
virtual ~node()=0;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
struct group : public virtual enginend::nodes::node {
|
struct group : public virtual enginend::nodes::node {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@
|
||||||
|
|
||||||
namespace enginend {
|
namespace enginend {
|
||||||
struct scene{
|
struct scene{
|
||||||
virtual ~scene() = 0;
|
|
||||||
|
|
||||||
std::vector<enginend::nodes::node*> nodes;
|
std::vector<enginend::nodes::node*> nodes;
|
||||||
virtual void boot() {
|
virtual void boot() {
|
||||||
|
|
|
||||||
2
engine/src/scenes/stuf.cpp
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
#include "scene.h"
|
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
cmake_minimum_required(VERSION 3.20)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_FLAGS "-std=c++26 -Wno-error -Oz -w -g -mavx2")
|
||||||
|
file(GLOB_RECURSE ANIMSOURCES CONFIGURE_DEPENDS "src/*.cpp")
|
||||||
|
add_executable(animatronical-1 ${ANIMSOURCES})
|
||||||
|
if(NOT DEFINED ${ARCH})
|
||||||
|
set(ARCH "linux-64")
|
||||||
|
endif(NOT DEFINED ${ARCH})
|
||||||
|
set_target_properties(animatronical-1 PROPERTIES
|
||||||
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/built/ani/1/1/${PLATFORM_DIR}/bin"
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_directories(
|
||||||
|
animatronical-1 PUBLIC
|
||||||
|
"${CMAKE_SOURCE_DIR}/link")
|
||||||
|
target_link_libraries(animatronical-1 PRIVATE
|
||||||
|
enginend
|
||||||
|
raylib
|
||||||
|
)
|
||||||
|
target_include_directories(animatronical-1 PUBLIC
|
||||||
|
${CMAKE_SOURCE_DIR}/include
|
||||||
|
)
|
||||||
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |