coryshaw1 / saliens-hack

Hack for Sailens, the game of Steam Summer Sale 2018 - AutoSelect Planet, Invincibility, and InstaKill
MIT License
106 stars 31 forks source link

display CSalienInfoBox during battle screen #25

Closed Gummibeer closed 6 years ago

Gummibeer commented 6 years ago

adds: #19

Gummibeer commented 6 years ago

It adds the info screen everytime the function runs - have to do it just once per round.

Wiethoofd commented 6 years ago

Move it inside the setTimeout in the joinZone function where it sets the gameCheck intervalFunc, then it loads the planet and base and only inserts the info box once.

farooo commented 6 years ago

Yes as @Wiethoofd says. I tested @Gummibeer code and i got big frame drops in the game. I started a pull request where i output the info into the console. See #32

coryshaw1 commented 6 years ago

Closed by 16703828c1069b8a3d8176f63a2e5475a1696314

This only tries to add the profile box once at the beginning of a round, and if one already exists, the existing box is destroyed to make room for the new box. Keeping memory down.