Endless World With MmoDemo

Options
locus84
edited October 2012 in Photon Server
I'm trying to make endless mmo world with MmoDemo project.

I've look into it for several days and found out what i should implement.

In the project, the instance of each item's InterestArea keep updating interested boundary,
and get actual Regions from grid world.

It looks like this...
crnt.jpg

But the problem is, the world just end when a player hit the world's edge!!!
problem.jpg

For endless mmo world, interestArea must be seperated into several of it.
whatIwannaDo.jpg

So I made 8 more boundaries around the grid world and found overlappings and moved it to
the same point with the grid world.
whatIDid.jpg

That's it! That's what i all did.

Any better solution about making endless mmo? just let me know...
My works look very wasting...

Comments

  • chvetsov
    Options
    as i see, the idea is good to implement something like globe.
    implementations can be different. Yes, you can use copy of the world, but i think that is too much.
    For Instance: You could add some extra area to the world and mark Regions in this extra area with some bool.
    then in GridWorld::GetRegionEnumerable replace marked regions with correct one.

    It may happens that you will find better solution when you will have more experience. Just go ahead.
    We will try to help
  • Ohhh, thx, now I'm assured about my theory.

    And I found the better way,

    I just don't need to make 8 copies of the grid world.

    As you say, I'd better make 8 copies of player's Interest area based on player's coordination.

    Thx for help :D!!
  • chvetsov
    Options
    I'm not sure that got me correctly. But any way, if you like your idea, go ahead :)