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.


Messages - HoodedSpectre

Pages: 1 [2]
16
General discussions / Re: SFML Blueprints - Another SFML book
« on: December 19, 2016, 10:15:04 pm »
I've been working through your book and I'm getting this error.... ActionTarget is not a template type. Followed exactly how you have it in the book if you need the code here it is. Any suggestions? I'm using CodeLite I don't know if that makes a difference.

#ifndef _ACTIONTARGET_H
#define _ACTIONTARGET_H

#include "ActionMap.h"

#include <functional>
#include <utility>
#include <list>

template<typename T = int>
class ActionTarget
{
public:
    ActionTarget(const ActionTarget<T>&) = delete;
    ActionTarget<T>& operator=(const ActionTarget<T>&) = delete;
   
    using FuncType = std::function<void(const sf::Event&)>;
   
    ActionTarget(const ActionMap<T>& map);
   
    bool ProcessEvent(const sf::Event& event) const;
    void ProcessEvents() const;
   
    void Bind(const T& key, const FuncType& callback);
    void Unbind(const T& key);
   
private:
    std::list<std::pair<T, FuncType>> m_EventsRealTime;
    std::list<std::pair<T, FuncType>> m_EventsPoll;
   
    const ActionMap<T>& m_ActionMap;
   
};

#include "ActionTarget.tpl"

#endif // _ACTIONTARGET_H

17
General discussions / Re: SFML Game Development by Example - 4th SFML book
« on: December 17, 2016, 01:35:52 am »
remember
these are Ebooks

I have a year subscription to that site so I get everything

so I'm not positive what exactly what ebook means

I was a member for a long time but I didn't use the site enough, between school and work. As far as the eBook only goes it's everything that isn't a physical copy if I do recall correctly.

18
General discussions / Re: SFML Game Development by Example - 4th SFML book
« on: December 16, 2016, 09:38:44 pm »
Awesome I did not see it on the website when I was looking the other day. I just ordered it and I look forward to read it!

19
General discussions / Re: SFML Game Development by Example - 4th SFML book
« on: December 15, 2016, 11:55:51 pm »
Hey thanks for all the help, I'm still in school so I'm trying to absorb as much as I can from your book. It has been the most helpful of any book I've read. I noticed you mentioned you are working on another book, I know you can't say much about it but I'm excited to see it. I will definitely be purchasing it when it comes out, can you tell me a time frame of when you expect it may be out? Or at least announced?

20
General discussions / Re: SFML Game Development by Example - 4th SFML book
« on: December 15, 2016, 01:47:37 am »
Is there currently a way to create a map in tiled and export it into a format that would work with this engine? Or would I need to figure that out myself?

Also what is the purpose of the following keys?
Key_P 5:15 -
Key_T 5:19 -
Key_K 5:10 -
Key_O 5:14 - Enables debug mode
Key_X 5:23 -

21
General discussions / Re: SFML Game Development by Example - 4th SFML book
« on: November 10, 2016, 10:54:48 pm »
Awesome, I was able to get it to work. I guess my working directory was setup weird so I made the change and now it works. Thanks for your help.

22
General discussions / Re: SFML Game Development by Example - 4th SFML book
« on: November 10, 2016, 02:33:08 am »
I have just one question, I have been working with this book for quite some time. I am attempting to run your source code for the final chapter so I can see what it looks like before I actually start reading. It will not work at all, when I launch the server.exe it just goes through the tile ids saying was not found then it hits map loaded and does nothing more. Do I need to just follow the entire book and code it myself? There are quite a few differences between the source code you provided and the book.

Aside from those questions, you are really helping me understand the parts of game development I don't think people really touch on. Being able to see how the client and server are structured exactly will really help in my personal studies. Thank you for the great book.

Pages: 1 [2]
anything