Tag Info

Hot answers tagged

4

Both of those pieces of code appear to pick a random location (xx,yy in the first example and x,y in the second), then try to change grass to something else near that location. There are lots of other algorithms, although most are more complicated than the ones you posted. I can't answer whether they're over your head; I don't know what's in your head ;-) ...


3

A determined modder can and will always modify any part of your game which runs on the users system. You can put obstacles in their way to make their life harder, but you can't stop them. Creating a hash of your assets can be countered by finding that hash in your executable and changing it too. When you encrypt your assets, people will find the decryption ...


2

Once you've finalized your texture, create a hash of the file. Store that hash somewhere else in assets. When the level is loaded, create a new hash when you load the texture and compare it to the hash created when you finalized. If the hashes are different, the file has been altered. Further, you might really consider what your motivation is for preventing ...


2

One way would indeed be to try out the four possible moves for every tile (or rather the ones that have recently moved) and check for matches, then store them as hints. You wouldn't need to do this as often as you might think (especially if you only do it for tiles that have moved); you would only need to swap every tile twice since the one next to it would ...



Only top voted, non community-wiki answers of a minimum length are eligible