Version Matrix


An ECS Scala framework

License: MIT Maven Central GitHub release example workflow codecov javadoc

Getting Started

libraryDependencies += "dev.atedeg" %% "ecscala" % "0.2.1"


import dev.atedeg.ecscala.dsl.ECScalaDSL
import dev.atedeg.ecscala.util.types.given

case class Position(x: Double, y: Double) extends Component
case class Velocity(vx: Double, vy: Double) extends Component
case class Gravity(g: Double) extends Component

object AnObject extends ECScalaDSL {
  val world = World()
  val entity1 = world hasAn entity withComponents {
    Position(1, 2) &: Velocity(3, 4) &: Gravity(9.8)
  entity1 += Position(3, 6)


Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request



Distributed under the MIT license. See LICESE for more information.