Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - fakepotato

Pages: [1]
1
General / Question related to game in "SFML game development" book
« on: April 27, 2015, 07:16:35 pm »
I had some troubles in my game-architecture. The question was - how to make Enemy objects, Bullet objects and Player object interact one with another without implementing tons of singletones?
I decided to look up for decision of this problem in SFML development book. I read 7 chapters of this book, paid attention to every line of it, but i still can't find solution: how to make enemies objects know where player is located to move forward to it? Cuz i was a bit disappointed, when i realized that flights in that example game were moving just by patterns and made an illusion of AI.
Should i make methods like
void Enemy::move(Player& player, float dt);
? I mean, using references to other classes. Doesn't it ruin OO-style?
Or should I just use those singletones?
Sorry for such questions, but game-architecture brings lots of troubles for people without experience in it  :-\

2
General / [SOLVED]How to hold the game map in tile-based 2d game?
« on: November 15, 2014, 02:02:19 pm »
For example, i have 180x40 map, each tile is 32x32 pixels.
Is it efficiently to hold em in the two-dimensional matrix? Is this bad way? I am new to gamedev, so i have some troubles with this question.
Another idea is to hold game objects in vector of pointers, is this better one?
Thanks for answers.

3
General / The program exiting with code -1073741515
« on: September 30, 2014, 06:42:06 pm »
I have the trouble. My OS is windows7 x64, trying to get my SFML WD (for gcc 4.7.0) working
But it doesn't. Simple code
#include <iostream>
#include <conio.h>
#include <SFML/Graphics.hpp>
using namespace std;

int main()
{

 sf::RenderWindow App(sf::VideoMode(800, 600, 32), "Hello World - SFML");
    return 0;
}
 

And
Project1\build-untitled-Desktop_Qt_5_3_MinGW_32bit-Debug\debug\untitled.exe exited with code -1073741515

What's wrong? Can show my .pro file too.
TEMPLATE = app
CONFIG -= app_bundle
CONFIG -= qt

SOURCES += main.cpp

include(deployment.pri)
qtcAddDeployment()

#SFML library
LIBS += -LD:\QTcreator\Tools\SFML-2.1\lib
 
CONFIG(release, debug|release): LIBS += -lsfml-audio -lsfml-graphics -lsfml-main -lsfml-network -lsfml-window -lsfml-system -DSFML_STATIC
CONFIG(debug, debug|release): LIBS += -lsfml-audio-d -lsfml-graphics-d -lsfml-main-d -lsfml-network-d -lsfml-window-d -lsfml-system-d -DSFML_STATIC
 
INCLUDEPATH += D:\QTcreator\Tools\SFML-2.1\include
DEPENDPATH += D:\QTcreator\Tools\SFML-2.1\include
Can anyone help me?

Pages: [1]