Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing #3

Open
36 of 56 tasks
lucasstarsz opened this issue Apr 4, 2021 · 2 comments
Open
36 of 56 tasks

Testing #3

lucasstarsz opened this issue Apr 4, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@lucasstarsz
Copy link
Member

lucasstarsz commented Apr 4, 2021

Considering just how much there is to this game engine, and the amount of times bugs go untested, a bit of testing for the various functions in the game engine would be much appreciated.

This is our coverage of tests so far:

  • engine

    • FastJEngine
    • FPSValue
  • engine.config

    • EngineConfig
  • graphics

    • Boundary
    • Drawable
  • graphics.dialog

    • DialogConfig
    • DialogUtil
  • graphics.display

    • Camera
    • FastJCanvas
    • SimpleDisplay
  • graphics.game

    • GameObject
    • Polygon2D
    • Model2D
    • Text2D
    • Sprite2D
  • graphics.ui.elements

    • Button
  • graphics.util

    • DisplayUtil
    • DrawUtil
  • graphics.gradients

    • GradientBuilder
    • Gradients
    • LinearGradientBuilder
    • RadialGradientBuilder
  • input

    • InputManager
  • input.keyboard

    • Keyboard
    • Keys
  • input.mouse

    • Mouse
  • logging

    • LogLevel
  • math

    • Maths
    • Point
    • Pointf
    • Transform2D
  • resources

    • ResourceManager
  • resources.files

    • FileUtil
  • resources.images

    • ImageResourceManager
    • ImageUtil
  • resources.models

    • PsdfUtil
    • ObjUtil
    • MtlUtil
  • systems.audio

    • Audio
    • MemoryAudio
    • StreamedAudio
    • MemoryAudioPlayer
    • StreamedAudioPlayer
    • AudioEventListener
    • AudioManager
  • systems.audio.state

    • PlaybackState
  • systems.behaviors

    • Behavior
    • BehaviorHandler
    • BehaviorManager
  • systems.collections

    • ManagedList
  • systems.control

    • DrawableManager
    • SimpleManager
    • SceneManager
    • Scene
  • systems.tags

    • TaggableEntity
    • TagHandler

As the engine develops, more tests will be written.

@lucasstarsz lucasstarsz added the enhancement New feature or request label Apr 4, 2021
@lucasstarsz lucasstarsz self-assigned this Apr 4, 2021
lucasstarsz added a commit that referenced this issue Apr 12, 2021
Issues Fixed:
- Fixed issue with incorrect floating point 'equality' calculations -- floating point equality is now considered to be at least under `Maths.FloatPrecision`, or `0.000001f`.

Other Changes:
- Changed `Polygon2D#modifyPoints` to set translation, rotation, and scale to, if requested, the default game object translation, rotation, and scale.
lucasstarsz added a commit that referenced this issue Apr 12, 2021
New Additions:
- Added `toString()` overrides for `Polygon2D` and `Model2D`

Other Changes:
- Renamed `Model2D#getObjects()` to `Model2D#getPolygons()`
lucasstarsz added a commit that referenced this issue Apr 12, 2021
Other Changes:
- Simplified the `FastJEngine#error(...)` method
    - The method no longer closes the JVM instance. Instead, it closes the game and throws the provided exception with the provided error message.
lucasstarsz added a commit that referenced this issue Apr 15, 2021
That rounds out all the tests planned for graphics!
lucasstarsz added a commit that referenced this issue Apr 15, 2021
New Additions:
- Added `equals`, `hashCode`, and `toString` implementations for Camera class

Bug Fixes:
- Added checks to `Camera#getTransformation()` to ensure rotation/translation doesn't happen when the camera hasn't been moved.
- Fixed issue in default `Camera` constructor where the translation would be set to a reference to the default Camera translation, causing checks to fail in `getTransformation`
lucasstarsz added a commit that referenced this issue Jun 6, 2021
…nimum color count/radius.

- Moved random gradient methods to `Gradients.java`
lucasstarsz added a commit that referenced this issue Jun 6, 2021
lucasstarsz added a commit that referenced this issue Aug 9, 2021
lucasstarsz added a commit that referenced this issue Aug 9, 2021
lucasstarsz added a commit that referenced this issue Aug 9, 2021
* begin work on sound example

* add beginning description of MemoryAudio

* continue work on simple audio example

* (#3, #23) Add simple audio example
@lucasstarsz
Copy link
Member Author

lucasstarsz commented May 6, 2022

Removing a few classes which can't easily be tested (or which may be redundant to test).

@lucasstarsz
Copy link
Member Author

Didn't mean to close that, sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant