Jump to content
  • Advertisement

nitin_daviet88

Member
  • Content Count

    7
  • Joined

  • Last visited

Community Reputation

99 Neutral

About nitin_daviet88

  • Rank
    Newbie
  1. hey [font="Arial,"]Presently i am trying to read the pixel data from the frame Buffer in order to capture the screen in IOS. GlreadPixels command doesnot works fine with Multi-sampling .. Please check this post regarding the actual problem :-[/font] [font="Arial,"]here......[/font] [font="Arial,"] [/font] [font="Arial,"]thanks [/font]
  2. nitin_daviet88

    Local Multiplayer gameplay

    k fine totally understood that ...one last thing what about the timestep or dt or delta time ; should it be constant or variable (i.e. depend on the drawing time).... Regards
  3. nitin_daviet88

    Local Multiplayer gameplay

    I have done that bonjour networking and data sending part... "ticking the simulation forward a bit" means we have to run the physics code of the other vehicle in our code?
  4. nitin_daviet88

    Local Multiplayer gameplay

    First, start with the FAQ for this forum. You can find it at the top. Second, you should realize that networking is *generally* not something that you just "bolt on" (like, say, some nice particle effects). Instead, successful networked games are designed from the ground up to run the simulation in a way that works well for the latencies involved in networking. If all you need to support is WiFi for two players, then perhaps you can hack something in, and it might be good enough. However, if you need to support more players, or if you need to support cross-Internet play, then you need to go back and re-architect the simulation, the controls, and even the presentation to support multiplayer racing. (Also: racing games are some of the harder to get right in internet play, the only harder kind I can think of is two-player fighting games) What I would do if you truly only need support for one local opponent, is to matchmake the players somehow (say, using UDP broadcasts, or use Bonjour if it's available). Then I'd treat each remote player as an AI player on the local system. The trick is that you have to forward extrapolate the remote player by at least one simulation tick -- basically, take the last-received data from the remote player, wind it forward TWO ticks, and make that the "desired target" for the local AI player representing the remote player. There are some more problems, mostly having to do with collisions, where one player detects a collision but the other does not. I would solve these, in the case that you suggest, by each player that detects a collision sending an event to that effect to the other player, and applying the same collision impulse on the other players' machine, even though it will be a tick or two late. And if you detect that a big-crash happens, make sure you synchronize this event, too! This works, as long as you can make sure that nobody cheats by hacking the client. In a local WiFi two-player game iOS, that is usually an OK assumption. For games on the internet, not so much! Also, WiFi is good because you have a higher data rate. You can send a full rigid body state for each car -- position, orientation, velocity and angular momentum -- for each simulation step. (This is assuming that you're actually doing a physics simulation) [/quote] k first thanks for replying .... hmmm..thats something complex for me....I agree that for a multiplayer game you have to plan from the ground....i started bcoz i thought it might be possible add code for just one opponent... can you please elaborate on " forward extrapolate the remote player by at least one simulation tick " part. i dont have any idea how to that.....any document to start from ?
  5. nitin_daviet88

    Local Multiplayer gameplay

    yes of course written some code ...my one 2d app already live at appstore.... i got this 3d game project all coding part regarding the quick race have already been done by my friend i have to implement the local multiplayer support to it by my own....any idea how to do that
  6. Hey, I am basically new to iphone game development and have been assigned a task to implement a local Multiplayer option in a car racing game via local wifi network. i have read many posts still not clear how to do that...basically i want the same multiplayer game play as there in iphone/ipad app Hot pursuit racing game by easports......only two cars need to have race.... what game architecture should i need to follow....? anyone please guide me to the right direction.......!!!!!!!! Thanks
  7. nitin_daviet88

    Iphone/Ipod multiplayer game

    Hey, I wrote that article :-) I should just have pointed at that. Yes, it's quite likely I got one of the terms wrong. Anyway, yes, the approach you take is one way that games use the clock to display predicted positions. There are other ways, such as only ever displaying an entity in the "past" so that you know that you're displaying it at the correct location. The drawback there is that you get higher visible latency. [/quote] hey, I too have to implement this in my app... read this post but dont know where to start from....any help regarding that. also whats the prediction algorithm... regards
  • 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!