accmltr / scala-games

A game engine for writing games in Scala.
MIT License
4 stars 0 forks source link

Remove bloated constructor parameters #36

Closed accmltr closed 10 months ago

accmltr commented 10 months ago

Only have the bare necessary parameters in constructors, have other properties be edited after construction!

E.g.

val b = Button(text="MyButton", style=....

Rather:

val b = Button("MyButton")
b.style=...

Note: This is just a rough idea for now. Still to be considered.