Skip to content

v0.0.2

Compare
Choose a tag to compare
@Hex5DA Hex5DA released this 03 Jan 21:48

Another very old release of 2DMC.
There was actually a version between this and v0.0.1, which, judging by the discrepancy between this versions changelog and features, added block breaking and placing as well as some other features. This version has been lost to the sands of time, so I have rewritten the changelog to add the changes made in this "0.0.1.5" update by finding differences between 0.0.1 and 0.0.2, and presuming any difference not mentioned in the 0.0.2 changelog is a 0.0.1.5 change. However this is imperfect - any small tweaks made in 0.0.1.5 that I havent noticed will be lost, so feel free to open a github issue if you notice anything! Also note some changes may me mis-attributed to the wrong version, not sure if there is any way around this sadly. I have tried my hardest to include every 0.0.1.5 feature but again if I missed anything open a github issue ^-^. I will attatch the original 0.0.2 changelog here for completionists sake along with the executable. Running installation below.

Changelog

Additions

  • Block selection (0.0.1.5 feature)
    • The currently selected block is shown in white in the bottom-left.
      • This block is the block placed when placing a block.
    • You can cycle through the "hotbar" using the keys 1-4 (no scroll wheel support)
    • The items or the order of items in the hotbar cannot be changed.
    • The order of the hotbar is as follows:
      {
      1: grass_block
      2: dirt
      3: stone
      4: grass
      }
  • Block breaking and placing (0.0.1.5 feature)
    • Block breaking - blocks can be broken by pressing the left mouse button over the block's hitbox
    • Block placing - blocks can be placed by pressing the right mouse button over any overwritable block
      • Overwritable blocks are air and grass
      • The block placed is the currently selected block.
  • Camera (0.0.1.5 feature)
    • The camera has a slight momentum
    • If you stop moving in one direction suddenly, the camera keeps on going before returning to the player
      • This is displayed by the camera offset display in debug mode
  • Debug Mode (0.0.1.5 feature unless otherwise stated)
    • Debug mode can be toggled using the F5 key
    • Information is displayed in the top left:
      • Seed (the seed of the world, used for terrain generation): ex. 1400917286
      • Velocity (the velocity of the player): ex. (2.7, 0.0) when walking
      • Position (the position of the player, aka their co-ords): ex. (-52, 3)
      • Camera offset (the offset of the camera relative to the player): ex (26, 0) when walking
      • Chunk (the chunk the player is standing in): ex. (-7, 0)
      • Chunks loaded (the amount of chunks the game has loaded): ex. 78
      • Rendered blocks (the amount of blocks the game is rendering): ex. 385
    • Chunk borders are displayed with yellow lines
    • The block below the mouse cursor is displayed in white text next to the mouse cursor
    • The blocks being tested for collision are highlighted in red (0.0.2 feature)
    • The player is outlined in white (0.0.2 feature)

Tweaks (0.0.2)

  • The player hitbox size has been reduced in width to 0.225 block size
  • Player movement speed has been tweeked

Bug fixes: (0.0.2)

  • When player travels beyond 4000 blocks, the frame rate starts to drop below 60
  • Fixed some moving left and right inconsistencies (not being able to land on a block on the left but being able to land on the right... etc)
  • Optimized the performance further

Installation and running:

Packaging directories with pyinstaller is difficult, and as far as we know not possible without modifying the code. Therefore, to preserve the "originality" of the code we haven't bundled the game assets with any version before v0.1.1.
Therefore to play this version please extract the "2DMC_v0.0.2" zip into a directory of your choice. Do not move the exe out of the directory containing the res folder! Then you can just double click the exe to run it.
As for linux and mac users, try installing the packages that are imported in the .py files, and running main.py from the command line. Beware some older versions may require you to downgrade certain packages or modify the code. In the future, I may provide proper instructions for running on non-windows OSs, but I don't have easy access to a Linux / Mac computer as I (sadly) use Windows, and I don't really want to fiddle around with WSL or VirtualBox to try and figure out some instructons, sorry.

Executable's zip and original 0.0.2 changelog below vv