Blog Image

Schwartz Engine

About This

I develop Apps and Games. I play board games and I am an experienced GM in Warhammer Fantasy Role Play (1st and 2nd Ed). I am also painting and sculpting miniatures.
Yes that's right I am a freak - No mistake there, I even exercise Ju-Jitsu three times a week too. I am using this media to track my work and organize it a little.

Act like you seriously mean it

Uncategorised Posted on Nov 25, 2022 21:01

I just bought myself an pre-XMas present, my parents always give my money, so I thought I’d grab one of IFIXIT’s Pro Tech Toolkits that was on offer for around half the price. Contrary to a message that almost sounds like BS from the climate fanatic winds that blow in this era, these guys have a more serious take on taking care of our planet.

I do not se this message amongst what looks like the hypocrites of the climate crusade, which seems to have become more religious than fact based. Well done IFIXIT guys. There is an an almost ignorance towards repairing computers, phones and other devices, all the climate complainers are part of the buy use and throw away society we live in today.



Asteroids – now with Manual

Uncategorised Posted on Nov 21, 2022 21:26

My Asteroids Clone know has a manual I just added to give some instructions during play. In fact it is 3+ years since I touched the code, but it was easy (like in less than an hour) to add. Nothing beats modular code, and of course I made a new class for the manual, making it easy to insert to the Game State machine ;-).

Coding is like therapy for the soul, you think of almost nothing as you sit and implement new features focusing on making it easy to maintain. BTW this clone is a tribute to Ed Logg who made the original!



I am Back!

Uncategorised Posted on Oct 15, 2022 21:40

Had some problems since the PHP version of the WordPress Site was updated to 8.0, which caused problems bu know I can create entries again. Lately I’ve been working as a DevOps handling PHP sites and it puzzled med that my provider not was more informative around this update, you cannot expect ‘normal’ mortal bloggers to understand the consequences of PHP upgrades. Now I have to figure out how to migrate my blog entries.

There are tools in the Word Press Administration part where you can update your installation but it is not obvious that you need to update to make things work. Now I am up and running after switching back to PHP 7.4 and the updating in the Administration Part.



Gaming is Therapy

Board Games Posted on Feb 12, 2020 22:47

Things have been a little slow here since I’ve been and am still partly going through a rough patch at the moment. some 3+ months ago I suddenly was converted to a single because my wife left me from one day to the other. I am getting used to handling the house and the kids alone and needs a break from this know and then to relax. So the other night I found the game Hate that I had bought a while ago and this is really good stuff playing this game really make you relax as you think of the most nasty strategies to deploy to win the game.

The game is brilliant and has many good mechanics that makes it fun and gives very good replay value, two games will never be the same. After finishing the session I felt even better – recommended πŸ™‚

Going through something like a divorce sets things into perspective. I have come to realize that you gain most from the situation by being positive and try to work things out in a constructive manner. One thing is certain; you are not happy if you get angry or bitter. And it makes the world an easier place to live in when you have an optimistic approach πŸ˜‰



Cheating Leoric, The Undead King

Apps an' Mobiles Posted on Sep 23, 2019 18:01

What can I say! I am a sucker for Retro Games. I have just been playing Diablo I via Windows XP running in Virtual Box, and I found a little cheat action you could some extra gold and experience from. I have reached King Leoric’s Tomb, and by Luring the King forward to the Closed Gates, I can get him to raise more Undead Minions by pacing back and forth in front of the Gates.

This is a great little trick, that allows me to:

  • Get more experience points by killing the raised minions
  • Get more Gold and Items (that more often than normal are magic) when the minions drop some thing as the are killed
  • Have fun ‘cheating’ the King

Great hilarious stuff and probably the next step towards being an Über Geek πŸ˜‰

And you can get a lot of minions raised by teasing the King:



Burning the Midnight Oil

Apps an' Mobiles Posted on Sep 03, 2019 09:51

Be careful when starting to code in the evening, when you get in deep you forget the time. I had an intention of just wrapping up a few loose ends in my attempt to port my take on the 1979 Asteroids arcade game from Type Script to Rust. I just wanted to control a space ship and see some asteroids in the game view, no collision detection and no nothing.

But I ended op implementing all the default collision detection I needed, the destruction of the asteroids when they where hit by space ship bullets, the mass based collision handling of asteroids, the destructive asteroid to space ship collision on screen and finally the animation of space ship and asteroid obliteration. I went to bed around 2 am. My code still panicked when I destroyed to many of the smallest asteroids.

Next morning I found the bug I has made that classic mistake of looping a collection and removing elements from it inside the loop. It just goes to show that if you code when you are tired you start making mistakes, so think of that when you believe you can save the day by putting in extra hours πŸ™‚

As an aside! I now have a functional Rust based Asteroids game with HiScore and all! πŸ˜‰



Now I have a custom font too!

Apps an' Mobiles Posted on Aug 27, 2019 23:37

Yep, that right!

I have ported the font i made for my typescript Asteriods Clone to Rust. I have also moved all the essential files for making vector games and the font into a library or as the Rusteans call it a crate. This has made the foot print of the triangle collision demo much smaller and easier to prepare for a good template example, if you want a gtk based game loop using Rust.


Also I put both the crate and the triangle demo in git, so that I have control over the changes. And I have added some test code, which is relatively easy in Rust where the test framework comes out of the box, much more seamless than in so many other languages. After this I can recommend trying out the language. I could also not help my self and added functionality for increasing or reducing the number of triangles on screen using the ‘+’ and ‘-‘ keys on the keyboard – Great fun πŸ™‚



Recreational Weekend Coding

Apps an' Mobiles Posted on Aug 19, 2019 08:40

Yep That’s Right!

I have read about a new coding language called Rust. I have used a lot of the weekend porting my triangle collision demo to this language. Kind of hard to learn a new language for an old fart like me but I succeeded in porting a decent solution using the gtk library for Rust to display the triangles. I is a language that forces you to code to avoid race conditions in your code, the compiler analysis your work and punished with errors if you have made some code that has potential race conditions embedded into it. Tough to work with and understand to from scratch, but a great help once you get the hang of it.


And the compiler is also very helpful, once you get into trouble. It will deliver help texts along the lines of consider adding this or doing that which often hits the mark or gives you a good idea of what you need to do leading you in a constructive direction. I do not know if this system language as they call it will be as popular as to be used all over the industry, but I’m in on this! Highly recommended and unit testing is also relatively easy to start using to thumbs up!

And it was also great relaxation therapy coding along, porting one of my old projects changing and refactoring it to fit the mindset of Rust and improving it at the same time, highly recommended I say. πŸ™‚



Next »