Commit f99d38b3 authored by Benjamin Castel's avatar Benjamin Castel
Browse files

feat: Allowed to kill other players (game is now finishable)

parent 6367087d
Loading
Loading
Loading
Loading
+6 −0
Changes for README.md: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
# GLEngine

Moteur OpenGL pour la synthèse d'images

# Resources 

Texture astéroid : https://3dtextures.me/2021/04/09/rock-040/
Texture skybox : 
Model et texture vaisseau : https://niko-3d-models.itch.io/free-sc-fi-spaceships-pack
 No newline at end of file
+4 −0
Changes for include/GlApplication.hpp: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -12,9 +12,12 @@

#include <iostream>
#include <memory>
#include <cstdlib>
#include <ctime>

#include "GuiElement.hpp"
#include "RenderObject.hpp"
#include "model/Asteroid.hpp"
#include "model/Missile.hpp"
#include "model/Player.hpp"
#include "model/Spaceship.hpp"
@@ -37,6 +40,7 @@ class GlApplication : public Application {
            SPACESHIP_2,
            LASER_1,
            LASER_2,
            ASTEROID,
            SKYBOX,
            PLANKS,
            TRON,
+22 −0
Changes for include/model/Asteroid.hpp: 22 added lines, 0 removed lines.
Original line number Diff line number Diff line
#pragma once

#include <cstdlib>
#include <ctime>

#include <glm/ext.hpp>

#include "model/Entity.hpp"

#define ASTEROID_SPEED 0.1

class Asteroid : public Entity {
    private:

        glm::vec3 rotationAngle;

    public:
        Asteroid();
        ~Asteroid();

        void update(const float &deltaTime) override;
};
+2 −1
Changes for include/model/Entity.hpp: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@

class Entity {
    public:
        glm::vec3 m_position;
        
        Entity();
        virtual void update(const float &time);

@@ -37,7 +39,6 @@ class Entity {

        glm::mat4 m_modelMatrix;

        glm::vec3 m_position;
        glm::quat m_rotation;
        glm::vec3 m_scale;

+487 KiB
Loading image diff...
Loading