Topic: Flash Snipes  (Read 12137 times)

Author Message

0 Members and 1 Guest are viewing this topic.

Offline combatking0

  • Atari ST
  • *****
  • Posts: 612
  • Kudos 10
  • Gender: Male
    • View Profile
    • Combat King 0's Barcode Battler Site!
Re: Flash Snipes
« Reply #30 on: February 13, 2009, 07:31:10 PM »
I ran a test using a combined server/client to see how fast it would go without going through any sort of network, and the Ajax response was consistently 4 frames behind.

Using Ajax, 3 fps would work without lag, but the game would become unplayable.

I could try a predictive system using Ajax, but it would be buggy.

The only viable option is to use a different protocol, but I'll have to see what my server supports.
Retroman!

Offline Shockwave

  • RCM Programmer.
  • user
  • C128
  • *
  • Posts: 307
  • Kudos 14
  • Gender: Male
    • View Profile
    • My Home Page
Re: Flash Snipes
« Reply #31 on: February 14, 2009, 07:28:26 PM »
I might be way off the mark here so I am sorry if I am, but maybe it would work better if it connects to one player each frame and the client calculated the in between frames?

You could quite possibly get a much higher frame rate like this.


Offline combatking0

  • Atari ST
  • *****
  • Posts: 612
  • Kudos 10
  • Gender: Male
    • View Profile
    • Combat King 0's Barcode Battler Site!
Re: Flash Snipes
« Reply #32 on: February 16, 2009, 09:08:47 PM »
Like going through all 8 clients in sequence?

It wouldn't be greatly responsive, but it would work better than all 8 calling at the same time.

Should be OK while I search for a faster system.

[edit]
I've just found some information on using Flash (clients) and PHP (servers) with XML sockets. I'll have to run it past the owners of my server though.
« Last Edit: February 16, 2009, 09:44:28 PM by combatking0 »
Retroman!

Offline combatking0

  • Atari ST
  • *****
  • Posts: 612
  • Kudos 10
  • Gender: Male
    • View Profile
    • Combat King 0's Barcode Battler Site!
Re: Flash Snipes
« Reply #33 on: February 19, 2009, 07:37:28 PM »
My current host won't allow the system to run directly on my shared server account.

Their cheapest Virtual Private Server is £120 per year, a little much for just 1 game. I'll probably have to monetise it if I choose this route, but I doubt I will.

I have three other options:

1. Find a cheaper VPS.
2. Find somebody else with a VPS who is willing to run the game.
3. Use my shared server to initialise the connection using Ajax and then use a client to coordinate its peers.

Either of the first 2 would be easy, but I relish the challenge of the third.
Retroman!

Offline combatking0

  • Atari ST
  • *****
  • Posts: 612
  • Kudos 10
  • Gender: Male
    • View Profile
    • Combat King 0's Barcode Battler Site!
Re: Flash Snipes
« Reply #34 on: March 02, 2009, 10:48:43 AM »
I have decided to begin production. Anybody with access to a network with a PHP capable server and enough clients will be able to play it when complete.

It should even run on a Windows XP Pro workgroup with up to 10 machines. ;D

After that I'll attempt to contact other flash game developers and rent out server space and a range of port numbers for a fixed annual fee (about £5.50 per year should be low enough to attract a large crowd). That said I'll have to sell 24 accounts before breaking even. I don't know 24 flash developers with an interest in making online multiplayer games. :(
Retroman!