Jump to content
  • Advertisement

Javier Brannigan

Member
  • Content Count

    9
  • Joined

  • Last visited

Community Reputation

112 Neutral

About Javier Brannigan

  • Rank
    Newbie
  1. Javier Brannigan

    Problem requiring Box2d on NodeJs

    Any other idea? Thanks!
  2. Javier Brannigan

    Problem requiring Box2d on NodeJs

    I'm sorry, but being honest... I didn't understand anything of the pseudo code   I have placed the file in different  directories, actually it's in one called "server"... But I don't think there problem is there, because when I run projects downloaded from github, they don't work neither, so maybe the problem is at my nodeJs... I don't know.
  3. Javier Brannigan

    Problem requiring Box2d on NodeJs

    Hello   Iam having problems to use Box2d on the server... The fact is that when I require the module or box2d file, the server throws a fatal Error...   I have the classic library in a file named "box2d.js" which is exported in the end   And in my server I have tried to call it through two ways... Calling the module and requiring the file But none of these two options worked, when I run the server, I get this...     I have tried to run it in 4 o 5 projects on github, in all of them the same error... I have already tried with different files too, but the projects don't work neither... I'm using Nodejs 5.1... Any idea about what's happening or how to fix it?    Thanks very much!!!
  4. Javier Brannigan

    What engine is the best for my project? Browser Game

    The problem of that tutorial is that the game still runs on the client, i need the logic to run on the server, and manipulate it according to the inputs the players send me, that's the place where I'm stucked. Also, I need to run multiple games, because I'm using several rooms, that tutorial explains how to run only 1 game... But thanks anyway!     I'm a bit confused here. What's the issue with running your game logic in the server? If you can code it in the client you can code it in the server. You just need to set up a connection system for the clients to send the user input and to get the game state. You can go a long way from here improving this and running simulations in the client to avoid lag and stuff, but not before you can set up a basic system.   For the multiple rooms, I wouldn't worry too much until you figure out how to make this work in a single room. Then you can have a different instance of the server game code for each room, each one handling the connections of the clients assigned to that room. You can improve this a lot, but then again, you should be able to set up the basics before.     I have no idea how to make it, also Phaser needs a browser to make it run, that's my problem... Everybody says it's very easy to run logic on server, but I couldn't find any tutorial which what I'm asking for, none was usefull for now, so I'm stucked.
  5.   That's another option I'm wasking for, one easy to use, I will need to use a DB in the future too, to make an entire web around the game, but I don't know if, for example Construct 2, has enough potential to do that because it's without programming, but I would love to. What i need is a easy engine which serves that, as easy as possible, or some example/template of what I'm looking for, in box2d physics, for example.
  6. Hi I'm making a Real-time multiplayer game, which also includes physics, I'm working with node.js, socket.io on the backend and Phaser on the client Side. Till now I was running the logic on the client side and sending the velocity and position through sockets to all the clients, but obviously it doesn't works well(And we haven't even started to talk about cheating). So, what I need is to run the logic and physics of the game in the server side, sending just the inputs on the client, and receiving the position from the server. Well, for now it's simple, as any other multiplayer game. The problem is that I'm going crazy, I have seen many tutorials but I don't even know where to start, because my programming skills are limited and the tutorials didn't help me, what I would need is a framework or tutorial which allows me easily to run several worlds(The game has different rooms), in whose physics have to be calculated as fast as possible. So I ask, has someone done or found any tutorial which does that?
  7. Javier Brannigan

    What engine is the best for my project? Browser Game

    The problem of that tutorial is that the game still runs on the client, i need the logic to run on the server, and manipulate it according to the inputs the players send me, that's the place where I'm stucked. Also, I need to run multiple games, because I'm using several rooms, that tutorial explains how to run only 1 game... But thanks anyway! :)
  8. Javier Brannigan

    What engine is the best for my project? Browser Game

    I have some knowledges in DB/SQL and with Java/Javascript. Maybe with Phaser is enough, but I'm stucked, I have no idea how to go further, I don't know how to make a phaser game running on the server, I made it running on the client and getting position and velocity from every player on the client side and updating it at other clients, but it didn't work fine and of course the ball works awful, I was using socket.io. If I could make a game running on the server, and just send inputs from the client and do the logic related on the server, it should work nice, but I have no idea how to make it :/ And I couldn't find any tutorial related to make a Phaser game running on the server. Maybe If I knew how to do it, I would keep working on Phaser, but I think It's not possible, I already spent much time trying it.
  9. Hi everyone. I'm a newbie into the game dev world, and also as programmer, I have been programming only for a year and only for 9 months trying to develop my own game, so my programming skils are very limited. I tried to make my game on Phaser but I found it impossible, and I need an advice on which engine should I use to make my game. The game would work the next way:   Maybe I haven't explained myself correctly, but I'm very motivated about this game and I have been working on it for long time but couldn't make it work and I'm finding another way to do it, thanks for your help and if you need any exaplanation more I will answer as soon as I can. Thanks everyone!
  • 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!