Thursday, November 19, 2026

Cloning Missile Defense using Unreal Engine and AI via MCP

A devlog.

27.10

  • Installed Unreal Engine. To make room, I expanded the VM disk from 80 GB to 100 GB. The resize left me with two separate partitions, C: and E:, and only E: had enough space for Unreal.
  • Went through the tutorial Your First Hour in Unreal Engine. 
  • Decided to try building for Android the next day.

28.10

  • Began setting up the Android build tools. To fit everything, I expanded the E: partition. Despite that, parts of the installation still went onto C:. The drive ran out of space, the installation failed, and the occupied space was not released afterwards. Chose to rebuild the VM from scratch and start over.
  • Started reading The Art of Game Design: A Book of Lenses by Jesse Schell.
  • By the end of the day, Unreal Engine, Visual Studio and the Android toolchain were installed. For all that plus Windows 11, 120 GB was taken. Tomorrow I will test the build on a real device.

29.10

  • Attempted to connect my Android device directly to the VM through VMware. The operation caused both the host and the VM to crash, and the VM would no longer boot. Fortunately, I had created a VM snapshot the previous day after finishing the installation. After restoring it, I tried connecting the device again. The second attempt succeeded. The game ran on the device. The game is too dark and some controls are slow.
  • Tested the Windows build to ensure that the Visual Studio toolchain was working correctly.
  • Proceeded with Your First Game in Unreal Engine tutorial.

30.10

  • Opened an itch.io account after two failed attempts. The issue turned out to be my duck.com email address. No error message was shown, so I spent some time waiting for a confirmation email that was never going to arrive.
  • Joined the 2026 Epic AI MegaJam.

31.10

  • Finished the Your First Game in Unreal Engine tutorial and pushed tutorial projects to GitHub here and here.
  • Installed Cursor and established an MCP connection with Unreal Engine. The official instructions provided the groundwork, though this video ultimately helped complete the setup.
  • Decided creating a Missile Command clone as a learning project. The goal is not to innovate on the gameplay, but to use a familiar concept to practice AI-assisted game development and to gain experience with the complete lifecycle: development, testing, packaging and publishing. There are already many clones of the game available, including several open-source implementations [1] [2] [3] that can serve as useful references. One of the modern, but still retro looking adaptations can be played online here. Flash port of the original game is here. Long-play videos:
  • Found an useful UE 2D tutorial.
  • Began the initial implementation of the game. I am using Claude AI to write specs for Cursor AI. The game will be built in following phases:

    Phase 0: Foundations and conventions
    Phase 1: Crosshair and input
    Phase 2: Bases and ABMs
    Phase 3: Explosions
    Phase 4: Enemy missiles
    Phase 5: Cities, base damage, and game over
    Phase 6: Wave manager and scoring
    Phase 7: Game flow
    Phase 8: Advanced threats (one per sub-phase)

    • 8a: MIRVs (split mid-flight).
    • 8b: Bombers and satellites that cross the screen and drop missiles.
    • 8c: Smart bombs that steer away from active explosions.

    Phase 9: Polish and tuning

    • Sound, particle effects, screen flash on city loss, a ground and skyline, and balance tuning.

01.11

  • Found the original arcade game source code and disassembly.
  • Continued experimenting with Claude AI. It often proceeded with writing specifications without fully considering my input, and the free plan was exhausted after generating and reviewing a single specification. To evaluate whether the experience improves with fewer usage constraints, I activated the 7-day Pro trial.
  • While implementing Phase 5, Unreal Engine crashed after the VM ran out of memory. Fortunately, all project files were recovered correctly, and Cursor was able to resume work from where it had stopped.
  • Claude currently requires approximately 10 minutes to prepare the specification for a single implementation phase, while Cursor takes around 20 minutes to complete the corresponding implementation.

2.11

  • Minor patches were required after completing Phase 7. Built and tested the game on a mobile device for the first time. Both implementation phases and follow-up patches currently consume roughly 3% of a monthly Cursor usage allowance each.

3.11

  • Phase 8 done. Here is the short gameplay video:


  • Level 7 requires balancing.
  • Continued work on Phase 9, which has been split into several sub-phases:
    • 9a: Toolbox check
    • 9b: World
    • 9c: Missiles and trails
    • 9d: Explosions
    • 9e: Sound
    • 9f: HUD and screens
    • 9g: Clean-up and packaging
  • As usual, the devil is in the details. Claude got confused and started patching its own patches. Enemy missiles first looked like meteors, then boats, and finally they resembled flying condoms. That was the moment I decided to take over and fix the missile look myself. Current progress is shown below:


4.11

  • Used an LLM to create sound effects for the first time. The results were surprisingly usable.
  • Current progress is shown below:


6.11

  • Measured the size of the Android build: 452 MB. An unexpectedly large number for a game with such modest ambitions.

8.11

  • The VM gradually consumed all remaining free space on the host system. To recover storage, I cloned the VM to an external drive, cleaned up the host, and then cloned the VM back. After the migration, the VM unexpectedly reported that it was encrypted and began requesting a password that had never been configured. Considerable time was spent resolving the issue.
  • Fixing HUD.

9.11

  • Cleaning up the codebase and removing leftover workarounds.

10.11

  • Continued the cleanup phase, fixing text overlap issues on Android devices. Also finalized the desktop control scheme: all launchers now track the mouse cursor, while keys 1, 2, and 3 fire missiles from their respective bases.

11.11

  • Discovered that Unreal Engine does not provide native support for AdMob interstitial advertisements. Integrating them will likely require a third-party plugin.
  • Published the game to the Google Play Store as an open test release. For now, the test is available only in Croatia.

12.11

  • AdMob still has not verified the game, even though the required app-ads.txt file is publicly accessible and correctly configured.
  • Encountered issues with the selected AdMob plugin for Unreal Engine. After unsuccessful attempts to resolve them locally, I opened an issue on the project's GitHub repository and am awaiting feedback.
  • Decided to postpone publishing the Windows version on itch.io. With web-based game builds expected to return in Unreal Engine 5.9, it seems more practical to wait and offer a browser-playable version instead of distributing a desktop download.
  • AdMob finally verified the game, apparently about 24 hours after I added a developer website to the Google Play Store listing. The application is now awaiting AdMob's review before ads can be served.
  • AdbMob approved! Yes, that's a separate step from 'verification'.

19.11

  • After receiving no response from the plugin developer, I investigated the issue myself and, with the help of AI, implemented the necessary fix. The corrected version has been published in my own repo here.
  • Submitted a new build to the Google Play Store with AdMob enabled.
  • The update was approved and is now live on Google Play. The game is officially released and available here!

Saturday, October 24, 2026

Screen session essentials: running commands that survive logouts

To start a script on a Unix-like system (like Linux or macOS), and keep it running even after you log out from the system, use screen session manager:

  1. Start a new screen session:
    screen -S my_session
  2. Run your script, e.g.:
    ./something
  3. Detach from the screen session by pressing Ctrl+A then D. Your processes will continue running.
  4. Log out from your system. 
  5. Listing all sessions:
    screen -ls 
  6. To reattach to the session later:
    screen -r my_session

Friday, October 23, 2026

Fixing Android 16 Edge-to-Edge in One Call

I avoided dealing with Android's edge-to-edge change for as long as I could. It breaks the UI of apps that have looked fine for years, and fixing it means touching every screen.

Now there's no putting it off: since August 31 Google Play requires new apps and updates to target API 36 or higher.

I spent hours fighting insets and cutouts, but you don't have to. I turned my solution into an open source library.

One call restores your old activity look:

• a status bar in your primary color, with contrasting icons
• content kept clear of the system bars and the keyboard
• black bars covering the camera cutout and the 3-button navigation in landscape

It does nothing below API 36, so older devices keep the behavior they have today. Available on GitHub and via JitPack, MIT licensed.

My development rants on X, Bluesky and Mastodon. 

Tuesday, October 20, 2026

Kako se mijenjaju radna mjesta u Anthropicu

 📊 Novi report Anthropica (od prošlog petka) daje uvid kako izgleda AI-native poslovanje:

✅ AI agenti odrađuju 6x više radnih sati od ljudi koji njima upravljaju.
✅ Inženjeri proizvode 5x više koda nego prije šest mjeseci.
✅ Udio juniora u novim zapošljavanjima je pao s 27% na 9%, iako broj zaposlenih u Anthropicu nastavlja rasti.
✅ Claude 80% vremena čeka da čovjek odgovori, tj. ljudi su i dalje usko grlo.

Ne znam za vas, osobno mi je i dalje draži staromodni razvoj softvera nego promptanje, ili - kako se to danas sofisticirano naziva - orkestracija AI agenata. Kroz sam proces implementacije pomiču se i vlastite granice: razvija se razumijevanje arhitekture, performansi i kompromisa unutar sustava. S druge strane, s obzirom na usko grlo koje se spominje u reportu, vjerujem da će kroz sljedećih 6-12 mjeseci i orkestraciju obavljati AI.

Vezano uz argument da bi mogao proizvoditi 5x više koda koristeći AI, i bez AI-a mogu proizvoditi više koda nego što sam ga sposoban unovčiti. 😢 Zaključak temeljen na par desetljeća iskustva. Problem su distribucija i pronalaženje korisnika.

Na svijetu je oko 50 miliona developera. Ako svi mogu proizvoditi 5x više koda, tko će koristiti sav taj softver? I kako će to utjecati na njegovu tržišnu vrijednost? Ništa manje bitno - korisnici, koji imaju i 'domain knowledge', sve su manje ovisni o developerima i sve su sposobniji sami izraditi rješenja za vlastite probleme.

Link na report:
https://www.anthropic.com/research/employment-at-anthropic


2026.10.22

Nedugo nakon objave mog posta na Fejsbuku, dobio sam jedan zabavni komentar. OK, bilo je više zabavnih komentara, ali samo je ovaj zaslužio odgovor ...


Moj odgovor, pejstam ga ovdje zbog budućeg referenciranja:

Jako zabavan spin u kojem se (između ostaloga) intelektualni rad izjednačava sa fizičkim obrtima. 😀 Ali, definitivno si na tragu nečemu! Ovaj pogled otvara razna pitanja ...
 
Kvaliteta proizvoda: serijska industrijska proizvodnja nije nadmašila kvalitetu ručnog rada u nizu područja - od glazbenih instrumenata, odjeće, šešira, cipela, namještaja ... da ne nabrajam dalje. Ipak stari majstori bolje razumiju materijal, alate i kompromise. Za široke narodne mase, tu su jeftini i zamjenjivi proizvodi iz serijske proizvodnje. Očekuje li ista paradigma i razvoj softvera?
 
Cijena proizvoda: super mi je onaj dio u kojem se ponavlja pitanje kako će promjene utjecati na tržišnu vrijednost proizvoda, pogotovo zato što je odgovor općepoznat. Dakle - softver po cijeni potkove? 
 
Ostalo su promašene analogije a ono zadnje o prolaznom trendu je van konteksta. Nisam siguran na temelju čega je AI zaključio dodati to u odgovor koji ti je sastavio; to uopće nije bilo rečeno, niti je to moje mišljenje - moram ipak naglasiti. U svakom slučaju - nice try! 🙌

Sunday, October 11, 2026

Summer of 2026 swimming

The #summer of 2026 has ended, as has my #swimming season, which lasted from June 13 to October 3. To sum it up, I swam:

4 × 0.5 km
8 × 1.2 km
51 × 2.5 km

This totals 139.1 km for this year, bringing my overall distance to 972.6 km since 2021. My imaginary trip has finally taken me out of the Adriatic and into the Ionian Sea. I will be resting on the shores of Corfu Island until next season. I was thinking swimming back to Italy, but upon further reflection, I haven't made up my mind about whether to exit the Mediterranean through the Strait of Gibraltar or the Suez Canal. Any insightful comments on that would be appreciated!

Distances in kilometers by year:

2021    200
2022    182.5 
2023    180
2024    134.5
2025    135.6
2026    139.1

 

Saturday, October 10, 2026

Another android dev rant

Developing for android is either it's like trying to hit a moving target as the platform is constantly changing, or it's like being on an abandoned ship as the proper docs are absurdly missing. 6+ years since the issue was reported, and we are still supposed to guess that MaterialDatePicker uses UTC timezone.



Tuesday, September 22, 2026

OI Shopping List for Android: how to save data and transfer it to a new phone

For years I relied on OI Shopping List, little open‑source app that also let me track the prices for groceries that I buy. The app is nothing fancy, nothing bloated, just the essentials: item, unit, price, store. Then, I have decided (actually, I was forced) to replace my phone with a new one. It turned out that OI Shopping List data export is broken, and there are no other sync options. The app was not updated since 2020. My entire carefully curated shopping list with prices was trapped on my old device like a hostage. 

After being desperate for a while,  I tried something I didn’t expect to work: an old‑school ADB backup and restore. Against all odds, it actually transferred my OI Shopping List data from the old phone to the new one. Though with warnings that the method is deprecated and that it might stop working any time.

So run this command while the old phone is connected:
adb backup -f oi_shopping.ab -apk org.openintents.shopping

And this one while the new phone is connected and OI Shopping List installed:
adb restore oi_shopping.ab

Now I’m left with a bittersweet victory. I saved my data, but the app that has it is effectively dead. I also went down the rabbit hole of "modern replacements". Every open‑source shopping list app today is either too simple (no price tracking), too complex (full household inventory systems), or just missing the one feature I actually need. Even if I fork the OI Shopping List or write a new app to suit my preferences, I won't be able to transfer the data that easily. I genuinely reached the point where paper and pen feel like a more reliable technology than Android apps in 2026.