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 - TCVM

Pages: [1]
1
SFML projects / Can someone review parts of my Breakout clone code?
« on: April 21, 2016, 01:45:08 am »
I have just finished my own little polished clone of Araknoid/Breakout, and I was wondering if anyone would mind reviewing parts of my code.

I want to know if my usage of "global" variables is proper. Right now I have a class in globals.hpp that has many public static members of things that I use around my program; resource managers, input managers, etc. Any class that includes "globals.hpp" has access to all of these files. I did this because I really don't want to be passing objects through classes that don't need them just to give them to something else

The other part of my code I want to hear about is my observer pattern. Currently I have an observer pattern with observers and the dispatcher. Many objects inherit from observer and then subscribe to events that can occur. I am wondering if I am using this to liberally, or if it's fine.

Thanks in advance!

Code:
https://github.com/TheCandianVendingMachine/Breakout_TCVM/tree/master/src

Parts in question:
 Globals - game/globals.hpp
 Observer pattern - managers/events
 Use of an observer - states/gameState.hpp

2
SFML projects / Zombie Shooter 2000
« on: December 29, 2015, 07:55:48 am »
Hello! I have been trying to get into coding small games for a while now, but I could never get them finished. I have just started coding in C++ in 2012, and created my first "original" game in April. This is my third game I am proud to show off.

If someone could review my use of static arrays in the following classes, it would be appreciated
userInterface.hpp, textureManager.hpp, soundPlayer.hpp


Github: https://github.com/TheCandianVendingMachine/ZombieKiller2000
Compiled Game: https://app.box.com/s/6mql02691rr71uw8szffimup816crw0q

Zombie Shooter 2000 is about you - a triangle on the streets minding his own business until BOOM. Zombie outbreak. Survive for as long as you can, and kill off the endless waves of zombies

3
General / When setting up SFML, produces alot of errors
« on: September 13, 2013, 04:35:58 am »
Hello again, I have tried to re-install SFML and when debugging in Visual Studio 2012 it will produce alot of errors. Now, I have tried again and again but it will still produce these errors. Essentially, the errors are saying that in the actual project files (sfml-audio, sfml-graphics etc), there are missing semi-colons and that. There is another error though, it says "m_info is not a member of s_font", and there are many more like that. Now, I am going to say it is probably me missing a step with CMake. I have used this tutorial http://www.cplusplus.com/forum/beginner/95295/#msg511542.

Cheers!

4
General / [Help] Errors when Compiling
« on: September 09, 2013, 06:25:19 am »
Hello all, today I present a error. I do not know what it is, it is gibberish for me

Code: [Select]
Error 5 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Sound::setBuffer(class sf::SoundBuffer const &)   (__imp_setBuffer@Sound@sf@@QAEXABVSoundBuffer@2@@Z) referenced in function _main C:\Users\Brandon Danyluk\Desktop\C++ Game Making (SFML)\SFMLAudio\SFMLAudio\SFMLAudio.obj

SFMLAudiov Error 4 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Sound::play(void)" (__imp_?play@Sound@sf@@QAEXXZ) referenced in function _main C:\Users\Brandon Danyluk\Desktop\C++ Game Making (SFML)\SFMLAudio\SFMLAudio\SFMLAudio.obj SFMLAudio

Error 3 error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::Sound::~Sound(void)" (__imp_??1Sound@sf@@UAE@XZ) referenced in function _main C:\Users\Brandon Danyluk\Desktop\C++ Game Making (SFML)\SFMLAudio\SFMLAudio\SFMLAudio.obj SFMLAudio

Error 8 error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::SoundBuffer::loadFromFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?loadFromFile@SoundBuffer@sf@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main C:\Users\Brandon Danyluk\Desktop\C++ Game Making (SFML)\SFMLAudio\SFMLAudio\SFMLAudio.obj SFMLAudio

Error 6 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::SoundBuffer::SoundBuffer(void)" (__imp_??0SoundBuffer@sf@@QAE@XZ) referenced in function _main C:\Users\Brandon Danyluk\Desktop\C++ Game Making (SFML)\SFMLAudio\SFMLAudio\SFMLAudio.obj SFMLAudio

Error 7error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::SoundBuffer::~SoundBuffer(void)" (__imp_??1SoundBuffer@sf@@QAE@XZ) referenced in function _main C:\Users\Brandon Danyluk\Desktop\C++ Game Making (SFML)\SFMLAudio\SFMLAudio\SFMLAudio.obj SFMLAudio

Error 2error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Sound::Sound(void)" (__imp_??0Sound@sf@@QAE@XZ) referenced in function _main C:\Users\Brandon Danyluk\Desktop\C++ Game Making (SFML)\SFMLAudio\SFMLAudio\SFMLAudio.obj SFMLAudio

Error 9 error LNK1120: 7 unresolved externals C:\Users\Brandon Danyluk\Desktop\C++ Game Making (SFML)\SFMLAudio\Debug\SFMLAudio.exe SFMLAudio


and a bit more. Please do help. Also, I did search google but what came up didn't seem to help. Thanks!

Pages: [1]