add demo directory
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
TARGET := demo.elf
|
||||
ENGINEDIR := ../engine
|
||||
|
||||
#The Directories, Source, Includes, Objects, Binary and Resources
|
||||
SRCDIR := src
|
||||
INCDIR := inc
|
||||
BUILDDIR := obj
|
||||
TARGETDIR := bin
|
||||
RESDIR := res
|
||||
SRCEXT := cpp
|
||||
VSMEXT := vsm
|
||||
VCLEXT := vcl
|
||||
VCLPPEXT := vclpp
|
||||
DEPEXT := d
|
||||
OBJEXT := o
|
||||
|
||||
#Flags, Libraries and Includes
|
||||
CFLAGS :=
|
||||
LIB := -ltyra
|
||||
LIBDIRS := -L$(ENGINEDIR)/bin
|
||||
INC := -I$(INCDIR) -I$(ENGINEDIR)/inc
|
||||
INCDEP := -I$(INCDIR) -I$(ENGINEDIR)/inc
|
||||
|
||||
include ../Makefile.base
|
||||
|
||||
clean-engine:
|
||||
cd $(ENGINEDIR) && $(MAKE) cleaner
|
||||
|
||||
build-engine:
|
||||
cd $(ENGINEDIR) && $(MAKE)
|
||||
|
||||
build-release-engine:
|
||||
cd $(ENGINEDIR) && $(MAKE) release
|
||||
Binary file not shown.
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
# ______ ____ ___
|
||||
# | \/ ____| |___|
|
||||
# | | | \ | |
|
||||
#-----------------------------------------------------------------------
|
||||
# Copyright 2020 - 2022, tyra - https://github.com/h4570/tyra
|
||||
# Licenced under Apache License 2.0
|
||||
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <engine.hpp>
|
||||
#include <game.hpp>
|
||||
|
||||
namespace Tyra {
|
||||
|
||||
class Demo : public Game {
|
||||
public:
|
||||
Demo(Engine* engine);
|
||||
~Demo();
|
||||
|
||||
void init();
|
||||
void loop();
|
||||
|
||||
private:
|
||||
Engine* engine;
|
||||
};
|
||||
|
||||
} // namespace Tyra
|
||||
@@ -0,0 +1,4 @@
|
||||
$ConfigFile = Join-Path $PSScriptRoot '../windows-pcsx2.ps1'
|
||||
. $ConfigFile
|
||||
|
||||
RunPCSX2
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
# ______ ____ ___
|
||||
# | \/ ____| |___|
|
||||
# | | | \ | |
|
||||
#-----------------------------------------------------------------------
|
||||
# Copyright 2020, tyra - https://github.com/h4570/tyra
|
||||
# Licenced under Apache License 2.0
|
||||
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
|
||||
*/
|
||||
|
||||
#include "demo.hpp"
|
||||
|
||||
namespace Tyra {
|
||||
|
||||
Demo::Demo(Engine* t_engine) { engine = t_engine; }
|
||||
Demo::~Demo() {}
|
||||
|
||||
void Demo::init() { TYRA_LOG("Init!"); }
|
||||
void Demo::loop() {}
|
||||
|
||||
} // namespace Tyra
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
# ______ ____ ___
|
||||
# | \/ ____| |___|
|
||||
# | | | \ | |
|
||||
#-----------------------------------------------------------------------
|
||||
# Copyright 2020, tyra - https://github.com/h4570/tyra
|
||||
# Licenced under Apache License 2.0
|
||||
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
|
||||
*/
|
||||
|
||||
#include "engine.hpp"
|
||||
#include "demo.hpp"
|
||||
|
||||
int main() {
|
||||
Tyra::Engine engine;
|
||||
Tyra::Demo game(&engine);
|
||||
engine.run(&game);
|
||||
SleepThread();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user