Xtreme Performance v2 | 2016 + .capx

1

Attached Files

The following files have been attached to this tutorial:

.capx

2xtreme-performance-usando-loop.capx

Download now 388.47 KB

Stats

3,894 visits, 5,548 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Demo online

English:

Seeking to achieve the best possible performance in Construct 2, I developed a technique that allows a layout has billions of sprites;

technique is to convert the tiles of TileMap object, sprites in real time in game runtime, this is done at the time the tiles enter the screen;

And when these tiles that have become sprites come out of the screen, then they come back to make tiles again;

Ie off-screen sprites are converted into tiles, and inside the screen objects are converted into sprites;

With this we can have billions of physical objects, sine, rotate, pathfind etc etc ...

This is possible because the TileMap object is the lightest in construct 2, with it's possible to know the exact coordendas where each tile will become a sprite object in real time;

A wonderful benefit is that the processor usage is very low, thus making huge games and with billions of objects;

In this example I used only one object, but if you understand how it works, you can make many different objects;

The assembly of scenarios is all done manually, using TileMap, and each tile will match in real time to an equivalent sprite;

I think it best that this technique only if Ashley did an official plugin based on this technique;

To create a TileMap with size 1.000.000x1.000.000

If you know another more effectively, please share in the comments.

=-==-=-=-=-=-=-=--=--===-=-=-==-=-=

Português:

Procurando alcançar o melhor desempenho possível no Construct 2, desenvolvi uma técnica que permite que um layout tenha bilhões de sprites;

técnica consiste em converter os tiles do objeto tilemap, em sprites em tempo real, em tempo de execução do game, isso é feitos no momento em que os tiles entram na tela;

E quando esses tiles que se converteram em sprites sairem da tela, então eles voltam a se tornar tiles novamente;

Ou seja, fora da tela os sprites se convertem em tiles, e dentro da tela os objetos se convertem em sprites;

Com isso podemos ter bilhôes de objetos fisicos, sine, rotate, pathfind etc etc...

Isso é possível pois o objeto tilemap é o mais leve no construct 2, com ele é possível saber as coordendas exatas onde cada tile irá se converter em um objeto sprite em tempo real;

Uma vantagem maravilhosa é que o uso do processador é muito baixo, permitindo assim fazer jogos enormes e com bilhões de objetos;

Neste exemplo eu usei somente um objeto, mas se você compreender como funciona, poderá fazer com vários objetos diferentes;

A montagem dos cenários é toda feita manualmente, utilizando tilemap, e cada tile vai corresponder em tempo real a um sprite equivalente;

Acho que melhor que essa técnica somente se o Ashley fizesse um plugin oficial baseado nesta técnica;

Para criar um Tilemap com tamanho de 1.000.000 x 1.000.000 só conseguir usando 16 Gigas de meméria Ram, com 8 Gigas só consegui fazer 500.000 x 500.00;

Estude o .capx que está no link acima, e vai entender que esse método é maravilhoso;

Caso você conheça uma outra maneira mais eficaz, favor compartilhar nos comentários conosco.

.CAPX

2xtreme-performance-usando-loop.capx

Download now 388.47 KB
  • 1 Comments

  • Order by
Want to leave a comment? Login or Register an account!