Jump to content

Bulldozer


Andreik
 Share

Recommended Posts

9 hours ago, argumentum said:

Would you show the Pack() for the Unpack() ? Thanks

There is no Pack() because I am lazy. Unpack() can also Pack() because as AndyG said it's just a simple XOR with a constant. Here is the code:

8B 74 24 04         mov esi, [esp + 4]
8B 4C 24 08         mov ecx, [esp + 8]
AC                  next: lodsb
34 7F               xor al, 127
88 46 FF            mov [esi - 1], al
49                  dec ecx
75 F7               jnz next
C2 08 00            ret 8

 

Edited by Andreik

When the words fail... music speaks.

Link to comment
Share on other sites

In bulldozer.sqlite there is a table named tiles that saves sprites as a blob. It's just a matter of querying the database for the desired sprite and then basic GDI+ to convert from binary to bitmap.

When the words fail... music speaks.

Link to comment
Share on other sites

On 5/14/2023 at 11:57 PM, Andreik said:

You got me, next time I will go for AES-NI. :frantics:

Oh no! Please use those >50 years old techniques more! I am always so impressed and surprised when examining/investigate such a piece of "gold" code😇

I played the "original" Sokoban in the 80s, it was fun at all! So thank you so much transferring the idea into AutoIt code!

Link to comment
Share on other sites

Added 20 more levels, so there are 60 levels now. Since some of you already played some levels I added also the option to start to a specific level so you don't have to play again from the beginning. To use this functionality just press J and enter the level that you want to play.

Edited by Andreik

When the words fail... music speaks.

Link to comment
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...