<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: xeroup</title>
    <description>The latest articles on Forem by xeroup (@xerooup).</description>
    <link>https://forem.com/xerooup</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3705328%2F67c25e36-1ab8-467c-99e2-b858abc7add9.png</url>
      <title>Forem: xeroup</title>
      <link>https://forem.com/xerooup</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/xerooup"/>
    <language>en</language>
    <item>
      <title>[Showdev] Blitzy: a lightweight 2D game engine in Kotlin</title>
      <dc:creator>xeroup</dc:creator>
      <pubDate>Sun, 11 Jan 2026 14:19:54 +0000</pubDate>
      <link>https://forem.com/xerooup/showdev-blitzy-a-lightweight-2d-game-engine-in-kotlin-1e9c</link>
      <guid>https://forem.com/xerooup/showdev-blitzy-a-lightweight-2d-game-engine-in-kotlin-1e9c</guid>
      <description>&lt;p&gt;Lately i've been working on creating my own game engine in Kotlin. Why? i wanted to create my game, but whenever I found some engine for Kotlin, i constantly ran into problems: either it was too complex, or it lacked features, or the documentation was outdated. In the end, i decided - it's better to make my own, minimalistic one, but tailored precisely to my needs.&lt;/p&gt;

&lt;p&gt;that's how Blitzy appeared: a simple and minimalistic 2D engine.&lt;/p&gt;

&lt;h2&gt;
  
  
  what functions does it have?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;playing sounds and their control&lt;/li&gt;
&lt;li&gt;creating simple hitboxes&lt;/li&gt;
&lt;li&gt;keyboard and mouse input checking&lt;/li&gt;
&lt;li&gt;tile system (tileset, tilemap), loading tilemaps from csv&lt;/li&gt;
&lt;li&gt;entity classes&lt;/li&gt;
&lt;li&gt;loading ttf fonts and creating texts&lt;/li&gt;
&lt;li&gt;quick switching between scenes and saving them&lt;/li&gt;
&lt;li&gt;drawing simple geometric shapes&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  example code:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import org.xeroup.blitzy.core.Game
import org.xeroup.blitzy.core.Settings
import org.xeroup.blitzy.graphics.Color
import org.xeroup.blitzy.graphics.DrawContext

// main class
// red square on a gray background
class ExampleGame : Game() {

    override fun settings(settings: Settings) {
        settings.width = 800
        settings.height = 600
        settings.title = "Game"
        settings.decorated = true
        settings.background = Color(0x222222)  // dark gray
    }

    override fun create() {
        // here you can initialize something, for example create a tileset
    }

    override fun update(delta: Float) {
        // update every frame
    }

    override fun render(draw: DrawContext) {
        draw.fillRect(350, 250, 100, 100, Color.WHITE) // fill square
    }
}

// start game
fun main() {
    Game.run(ExampleGame())
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  technical side:
&lt;/h2&gt;

&lt;p&gt;built on LWJGL3 with OpenGL rendering. the codebase is straightforward and easy to modify - perfect for learning or customization.&lt;/p&gt;




&lt;p&gt;the project is fully open source under the LGPL license. I welcome feedback, bug reports, and contributors!&lt;/p&gt;

&lt;p&gt;and also, i made a game pong on the engine:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxa9t0ku7g676neuqo2u9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxa9t0ku7g676neuqo2u9.png" alt=" " width="795" height="593"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  links
&lt;/h2&gt;

&lt;p&gt;github: &lt;a href="https://github.com/xerooup/blitzy2d" rel="noopener noreferrer"&gt;https://github.com/xerooup/blitzy2d&lt;/a&gt;&lt;br&gt;
docs: &lt;a href="https://github.com/xerooup/blitzy2d/tree/main/documentation" rel="noopener noreferrer"&gt;https://github.com/xerooup/blitzy2d/tree/main/documentation&lt;/a&gt;&lt;/p&gt;

</description>
      <category>kotlin</category>
      <category>showdev</category>
      <category>opensource</category>
      <category>gamedev</category>
    </item>
  </channel>
</rss>
