# Advent Calendar 2025 by d954mas

**URL:** <https://forum.defold.com/t/advent-calendar-2025-by-d954mas/82099>\
**Category:** The Defoldmine\
**Created:** [December 15, 2025, 5:50am UTC](https://forum.defold.com/t/advent-calendar-2025-by-d954mas/82099 "2025-12-15T05:50:08Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![d954mas](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/d954mas/32/5401_2.png) [@d954mas](https://forum.defold.com/u/d954mas)\
**Post date:** [December 17, 2025, 5:37am UTC](https://forum.defold.com/t/advent-calendar-2025-by-d954mas/82099/6 "2025-12-17T05:37:17Z")

</div>

DAY 3. Lua Class

A tiny OOP helper for Lua that builds instances by copying tables instead of metatables. It started as a minimal replacement for `middleclass` .

> **[GitHub - d954mas/lua-class](https://github.com/d954mas/lua-class)**
>
> Contribute to d954mas/lua-class development by creating an account on GitHub.

> [@Lua Class OOP library](https://forum.defold.com/t/lua-class-oop-library/82113):
>
> lua-class [https://github.com/d954mas/lua-class](https://github.com/d954mas/lua-class) A tiny OOP helper for Lua that builds instances by copying tables instead of metatables. It started as a minimal replacement for middleclass. Features class.class(name, parent) — define a class and optionally inherit every field/method from parent. class.new\_instance(class, ...) — copy the class table into a fresh instance and call initialize(...) if it exists. class.is\_instance\_of\_by\_name(instance, name) — simple ancestry check by class name. I…

[![](https://img.youtube.com/vi/DSJZ2OlB_dQ/maxresdefault.jpg "DAY 3. Advent Calendar 2025 by d954mas (lua-class)") ](https://www.youtube.com/watch?v=DSJZ2OlB_dQ)

---

_[View the full topic](https://forum.defold.com/t/advent-calendar-2025-by-d954mas/82099)._
