ZfsrGhS953 / Petridish-Ogar

Want to make an agario clone that'll have lots of custom modes, good physics and won't lag like hell? Petridish Ogar is for you!
7 stars 4 forks source link

Smooth render #3

Closed RelTakeover closed 8 years ago

RelTakeover commented 8 years ago

you can do the smooth render effect like agar.io ?

ZfsrGhS953 commented 8 years ago

It already exists.

RelTakeover commented 8 years ago

how to activate?

RelTakeover commented 8 years ago

or where i can change to activae effect?

ZfsrGhS953 commented 8 years ago

https://github.com/ZfsrGhS953/Petridish-Ogar/blob/master/client/index.html#L4940

RelTakeover commented 8 years ago

image

THIS EFFECT IS BUGGY , NOT LIKE AGAR.IO :(

ZfsrGhS953 commented 8 years ago

You can set smooth render to on when zoom is high, like this:

if (ratio < 0.4) {
isSimpleMode = true;
} else {
isSimpleMode = false;
}

The (0.4) is the zoom level where the cellborders get buggy.