mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
Update
This commit is contained in:
@ -1 +1,60 @@
|
||||
#include "GestionJeu.h"
|
||||
|
||||
#include <Sprite.hpp>
|
||||
#include <CollisionShape2D.hpp>
|
||||
#include <ResourceLoader.hpp>
|
||||
#include <CircleShape2D.hpp>
|
||||
#include <GodotGlobal.hpp>
|
||||
#include <Texture.hpp>
|
||||
#include <AnimatedSprite.hpp>
|
||||
|
||||
using namespace godot;
|
||||
|
||||
GestionJeu::GestionJeu()
|
||||
{
|
||||
gPlayer = GestionPlayer::_new();
|
||||
}
|
||||
|
||||
GestionJeu::~GestionJeu()
|
||||
{
|
||||
delete gPlayer;
|
||||
}
|
||||
|
||||
|
||||
void GestionJeu::_register_methods()
|
||||
{
|
||||
register_method((char*)"_init", &GestionJeu::_init);
|
||||
register_method((char*)"_ready", &GestionJeu::_ready);
|
||||
register_method((char*)"_process", &GestionJeu::_process);
|
||||
}
|
||||
|
||||
void GestionJeu::_init()
|
||||
{
|
||||
Godot::print("Initialisation...");
|
||||
create_scene();
|
||||
Godot::print("Initialisation OK !");
|
||||
}
|
||||
|
||||
void GestionJeu::_ready()
|
||||
{
|
||||
Godot::print("Ready...");
|
||||
setup_scene();
|
||||
Godot::print("Ready OK !");
|
||||
|
||||
}
|
||||
|
||||
void GestionJeu::_process()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void GestionJeu::create_scene()
|
||||
{
|
||||
add_child(gPlayer);
|
||||
}
|
||||
|
||||
void GestionJeu::setup_scene()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user