Giter Club home page Giter Club logo

cursed-game's Issues

Window size calculation is incorrect with some OS settings

Describe the bug
sdl_set_initial_window_size() does not calculate the window size correctly on some operating systems and settings. Need to do more testing.

To Reproduce
Steps to reproduce the behavior:

  1. Use my laptop testing device
  2. The window is smaller than it should be

System information

  • OS: Windows 11
  • Possible Settings: UI Scale

Memory Leaks

Describe the bug
There are memory leaks all over the place, especially in Level due to dynamically allocated Entities.

To Reproduce
Steps to reproduce the behavior:
N/A

System information

  • OS: All
  • Version: All

Last position of player in AI is updated incorrectly

Describe the bug
When the player moves out of the view of an entity the last location of the player is set to where the player moved to, even though at that point they are no longer visible.

To Reproduce
Steps to reproduce the behavior:

  1. Let an entity see you
  2. Go out of sight of the entity in the same step as will put you on a straight line in the x or y direction with them
  3. Wait multiple turns
  4. The monster is stuck moving into the wall in between you because its last player location is actually the current location of the player, since we haven't moved, so it is stuck trying to move straight towards us even though there's a wall there, when with the bug fixed it could avoid the obstacle.

System information

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.