Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

132 Neutral

About hydrox3

  • Rank
  1. So I should have a state for displaying a menu, right?
  2. Thank you for your answer. The project is structured so it has exactly 1 menu, so I thought that implementing it as a state should have sense. In fact if it isn't a state, how can the system know if the menu is active or not?   I must use this heavy class oriented approach, I know it's not a python strong point, however python is the best language for dealing with a Rasp Pi.
  3. I post here because the same concepts can be applied to a game:   I'm creating a FSM in python (it's a step sequencer and sample pad based on a Raspberry Pi 2). Right now there are two states and the third is the Menu. This is handled by a class System which handles all the states. The Menu state has to edit the attributes of the other states, so I passed the other states to its constructor. class State(object): def buttonPress(self, numberButton): raise NotImplementedError class StepSequencer(State): def buttonPress(self, numberButton): ... class SamplePad(State): def buttonPress(self, numberButton): ... class Menu(State): def __init__(self,stepSequencer,samplePad): self.stepsequencer = stepSequencer self.samplepad = samplePad def buttonPress(self, numberButton): ... def setMenuItem(self, currentMenuItem): self.currentMenuItem = currentMenuItem class MenuItem(object): def __init__(self, text): self.text = text class System(object): def __init__(self): self.stepsequencer = StepSequencer() self.samplepad = SamplePad() self.menu = Menu(self.stepsequencer, self.samplepad) def setState(self,state): self.state = state def buttonPress(self, numberButton): self.state.buttonPress(numberButton) I can't figure out how to create the structure for the menu. I thought of creating a class MenuItem for every menu item so the Menu state has all these objects and can change the current MenuItem, however there are some things that I cannot overcome: how can I declare all the menu items and pass them to the Menu state to create dynamically the structure of the menu? having this this menu: Step Sequencer settings: Set samples Set volume Sample Pad setting: Set samples Set volume for example if I want to have a slider that sets the volume, do I have to create another state to handle this? This state can be another state of the System or it must be a substate of the Menu state? can I execute the code of each state using this logic? : while(system.state = system.stepsequencer): ... while(system.state = system.menu): ... The state is changed by a listener in another thread. This seems a very unorthodox way of handling states but it seems to work. If this is effective, how can I handle the Menu substates?
  4. Looking at GCC, it looks great. However it uses DirectX, and I want to use something multiplatform (right now I'm using OS X), can I use it anyway or is it specifically for DirectX?
  5. This is indeed what I want to do, create an engine for a game. I'm starting with some SFML tutorial, hoping to succeed at getting into it. I am not completely sure about what book should I buy, that Game Engine book looks really appealing.
  6. Yes absolutely I intend to use some libraries, that's is the other "bad thing" about Handmade Hero is that he literally writes everything and this is not what I intend to do (of course this is great for educational purpose). I think the question has come to this way: for me the best thing to do is to write almost everything. So I ask another question: what are the C++ libraries that I would (eventually) need?   I also want to thank everybody for the answers, I am really amazed by the willingness of this community :)
  7. I've already seen that, it really looks great but maybe too long (for now about 90 lessons of about 1h30 and is not even close to conclusion). You all talk about to choose to create a game or a game engine, however if I create a game from scratch, am I creating indirectly a game engine exclusively for that game?
  8. That is the fact. I want to create games without using an engine
  9. Thank you for the quick answer, I wanted to know if libraries like SDL or SFML were hiding something like game engines and you have clarified my doubt. I think I will pick this way, starting to make games with one of those libraries, searching tutorials online. I found those two books: http://www.amazon.com/Game-Engine-Architecture-Second-Edition/dp/1466560010/ref=pd_sim_b_6?ie=UTF8&refRID=1WNS71KRWV3Z3CSTV03X http://www.amazon.com/dp/0990582906/ref=rdr_ext_sb_ti_sims_3   I'm not sure which of the two is better for my case, I think the first one but I'm not completely sure.
  10. Hi, I've been lately interested in game development. Computer has always been my passion since the early years of my life. I started programming at age 15 with PHP, MySQL, Javascript ecc, I also had some experience with Python, Perl and C/C++. Right now I feel being at a good level in web development, doing some websites for privates or small companies. I am at the second years of Computer Engineering (I'm 21 years old), in which we studied some C and C++. I am surely not an expert about it, however I know where to put my hands so I don't feel exactly a beginner in programming, but I know I'm certainly a beginner in game development. I've tried both UE4 and Unity (especially the last one), and I felt comfortable with developing a game with them, however I'm not really sure if they are what I'm looking for. My interest in game development is understanding the mechanisms of how games really work. My goal is to became a programmer in a game development studio, I'm not sure yet if I want to be an engine programmer or a game programmer, but I feel that if I become great in Unity, I will only be able to create a game in Unity and in nothing else. So after all this introduction to myself (excuse me if I bothered you with all of this personal informations) I jump right to my question: what's next for me? I read about SFML/SDL, but I don't know if they are really for me, I don't know if I need to know DirectX/OpenGL ecc. If I search on internet how to start game development, everyone seems to give the same answer: pick an engine and start doing games with it; if someone is at level 0, the answer to the question is: grab a programming language and study it. My case it's neither.   Thank you for reading
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!