add demo directory
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"buildDirectory": "tutorials/01-hello",
|
"buildDirectory": "demo",
|
||||||
"C_Cpp.default.intelliSenseMode": "gcc-x86",
|
"C_Cpp.default.intelliSenseMode": "gcc-x86",
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"*.vcl": "asm-collection",
|
"*.vcl": "asm-collection",
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
#-----------------------------------------------------------------------
|
#-----------------------------------------------------------------------
|
||||||
# Copyright 2020, tyra - https://github.com/h4570/tyra
|
# Copyright 2020, tyra - https://github.com/h4570/tyra
|
||||||
# Licenced under Apache License 2.0
|
# Licenced under Apache License 2.0
|
||||||
# Wellington Carvalho <wellcoj@gmail.com>
|
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "tutorial_01.hpp"
|
#include "tutorial_01.hpp"
|
||||||
|
|||||||
Reference in New Issue
Block a user