Giter Site home page Giter Site logo

surrive-the-map's Introduction

surrive-the-map

Simple game to get comfortable with design patterns and functional programming style. Game ahve been written useing SFML-2.3.2 libary - dynamic linking, and Code::Blocks IDE. The game is originally made for a system Windows 8.1 64 bit, however compiled for 32 architecture. ToDo list in main.cpp #This branch is not ready to test, can have memory leaks, and may need refactoring.

building on linux

First, you need sfml libraries installed. On debian-based distributions run:

sudo apt-get install libsfml-dev

In order to build the game with cmake, use an IDE or run from repo root:

mkdir build
cd build
cmake ../
make survive-the-map

surrive-the-map's People

Contributors

fotoblysk avatar michalkaptur avatar

Watchers

 avatar  avatar

Forkers

michalkaptur

surrive-the-map's Issues

Memory leak/leaks.

In Engine.cpp:21 its AiControler* tmp_ai = new AiControler(current_player, tmp, bullet, window); ,
Enemy from Actor* tmp = enemy_spawner.update(); is probably leaking too.
I have no idea why this and when it happens, but it happens when enemies are destroyed only by bullets and when they are destroyed only by going out of render area too.

drmemory report

Error #3: LEAK 36 direct bytes 0x028b5820-0x028b5844 + 2232 indirect bytes
0 replace_operator_new [d:\drmemory_package\common\alloc_replace.c:2899]
1 Engine::update [surrive-the-map/src/Engine.cpp:21]
2 Game::startSinglePlayer [surrive-the-map/src/Game.cpp:57]
3 Game::stateMachine [surrive-the-map/src/Game.cpp:77]
4 Game::run [surrive-the-map/src/Game.cpp:38]
5 main [surrive-the-map/main.cpp:66]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.