magex

module
v0.0.0-...-e7326f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2024 License: GPL-3.0

README

Magex

Warning

This is the dev branch. It means, that product of this version in the development status and have unstable API.

A game engine designed for Survio. It can be used to write your own games. But, this product isn't provides stability. Originally posted for mod development.

Project is open for any contributions!

Notes

  • Magex at this moment using ebitengine version v2.7.2.
  • Engine is only an "interface" over ebitengine and other libraries that forms an ECS system.

Progress

todo

  • debugutil:

    • Display*Collider - helps to display some colliders at the screen for the debug.
  • These componenents are ready to use:

    • BgColor -- Provides background color
    • Camera -- Provides camera functional
    • Rigidbody -- Wraps the game object transform over the 2D physics engine.
      • NOTE ABOUT RIGIDBODY. there is also a pseudocomponent Shapes. It defines functions that helps to initiate the shapes. Uses Box2D as the physics engine.
    • Sprite - Draw some sprite on the camera
    • Tilemap - Easily places a tiles with the own coordinate system
    • Transform - Base of almost any game object
    • UI:
      • Button - Simple button that can handle mouse clicks or hovering
      • UISprite - Simplified version of the Sprite. Used only for drawing sprites on the UI level
      • RichText - Is the smart system, that can colorize the text by tags like: [#fffff], [bg#ff0000], [red], [reset], etc.
      • Text - Simple text
      • UI Colliders (Box, Circle) - Simple colliders based on the collision2d library.

Known issues

  • Camera scaling is work, but there is no some algorithms to scale the camera for the center
  • Tilemap displays tiles incorrectly (one-two pixels of the tile textures overlaps with other)
  • RichText: the displayed text has a lot of artifacts. This is in lazy development. In other words - there is no support, but it may be fixed in the future.

If you know a solution to the problem, please create an issue or create a PR.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL