Skip to content

v0.4.2-alpha

Choose a tag to compare

@martasskv5 martasskv5 released this 16 May 15:00
· 43 commits to main since this release
5249ef6

This release introduces several updates to the project, including dependency additions, new functionality, and enhancements to window management and game mechanics. The most important changes are grouped into three themes: dependency and version updates, new features, and adjustments to game logic and window behavior.

Dependency and Version Updates:

  • Updated the project version in package.json, Cargo.toml, and tauri.conf.json to 0.4.2. [1] [2] [3]
  • Added the @tauri-apps/plugin-shell dependency in package.json and the tauri-plugin-shell dependency in Cargo.toml. [1] [2]

New Features:

  • Added an encrypt_file function in src-tauri/src/lib.rs for XOR-based file encryption.
  • Introduced a new configuration option screenMultiplier in Options to dynamically adjust game settings based on screen resolution.

Adjustments to Game Logic and Window Behavior:

  • Updated the shrinkWindow and _gameOver methods in GameUtils to use screenMultiplier for scaling window size and positioning dynamically. [1] [2] [3]
  • Adjusted enemy spawn radius in GameUtils to scale with screenMultiplier.
  • Modified the startup logic in src/main.js to calculate and apply a screen-based multiplier for window size and position adjustments.

These changes improve the application's adaptability to different screen resolutions, enhance functionality with new features, and ensure consistency across dependencies and versions.