Game Development Hack Chat

Join us on Wednesday, August 18 at noon Pacific for the Game Development Hack Chat with Kyle Donnelly!

Chances are we all have fallen into the time trap of computer games at one point or another. It’s easy to do — the worlds that games put before us can be immersive and addictive, and even if they’re populated by fantastical creatures hell-bent on our virtual destruction, they offer a degree of escapism and relaxation that can be hard to come by with any other form of entertainment.

But what does it take to build these virtual worlds? How exactly does one come up with all the ideas needed to make a game fresh and exciting? And once you’ve got the ideas, how do you turn them into the code needed to make the whole thing work? Kyle Donnelly has quite a bit of experience with the game development process, seeing his idea through from initial prototyping to working with a publisher and even getting the game demonstrated at conventions. Along the way, he picked up a collection of tips and shortcuts to make the process easier, as well as developing a small suite of tools to help set up and test game levels quickly and easily, and to deal with the custom physics of his virtual world.

Join us as Kyle stops by the Hack Chat to talk about game development from an angle that rarely gets much coverage — from the software side.

join-hack-chatOur Hack Chats are live community events in the Hackaday.io Hack Chat group messaging. This week we’ll be sitting down on Wednesday, August 18 at 12:00 PM Pacific time. If time zones have you tied up, we have a handy time zone converter.

Banner Art: Video Games Awesome Fanart by sacolin99.

Solving Ultra High Vacuum Leaks Has An Elementary Solution

When we think of a vacuum leak we generally think of a car that just doesn’t want to run quite right. Most normally aspirated internal combustion engines rely on the vacuum created by the pistons to draw in the air fuel mixture that’s produced by the carburetor or fuel injection system. Identifying the leak usually involves spraying something combustible around common trouble areas while the engine is running. Changes to the engine speed indicate when the combustible gas enters the intake manifold and the leak can be found.

What if your vacuum leak is in a highly specialized piece of scientific equipment where the pressures are about 12 times orders of magnitude lower than atmospheric pressure, and the leak is so small it’s only letting a few atoms into the vacuum chamber at a time? [AlphaPhoenix] takes dives deep into this very subject in his video “Air-tight vs. Vacuum-tight.” which you can watch below the break.

Not only does [AlphaPhoenix] discuss how a perfect pressure vessel is sealed, he also explains the specialized troubleshooting methods used which turn out not to be all that different from troubleshooting an automotive vacuum leak- only in this case, several magnitudes more complex and elemental in nature.

We also enjoyed the comments section, where [AlphaPhoenix] addresses some of the most common questions surrounding the video: Torque patterns, the scarcity of the gasses used, and leaving well enough alone.

Does talking about vacuums get you pumped? Perhaps you’d enjoy such vacuum hacks as putting the toothpaste back in the tube in your homemade vacuum chamber.

Thank you [Morgan] for sending this one in. Be sure to send in your own hacks, projects, and fantastic finds through the Tip Line!

Continue reading “Solving Ultra High Vacuum Leaks Has An Elementary Solution”

Linux Fu: Walk, Chew Gum

If you ever think about it, computers are exceedingly stupid. Even the most powerful CPU can’t do very much. However, it can do what it does very rapidly and repeatably. Computers are so fast, they can appear to do a lot of things at once, too and modern computers have multiple CPUs to further enhance their multitasking abilities. However, we often don’t write programs or shell scripts to take advantage of this. However, there’s no reason for this, as you’ll see.

Bash Support

It is surprisingly easy to get multiple processes running under Bash. For one thing, processes on either side of a pipe run together, and that’s probably the most common way shell scripts using multiprogramming. In other words, think about what happens if you write ls | more.

Under the old MSDOS system, the first program would run to completion, spooling its output to a temporary file. Then the second program will run, reading input from the same file. With Linux and most other modern operating systems, both programs will run together with the input of the second program connected to the first program’s output. Continue reading “Linux Fu: Walk, Chew Gum”

Tree Of Life Branches Out With A Twist

In the middle of 2020, [charlie] challenged himself to conceive of and finish one project every month for the next twelve. Here we are a year later with [charlie]’s last project of the challenge: a tree of life with a bit of a twist to it.

The idea was to build a tree with lights that would represent the leaves and change as the tree went through the seasons. After a lot of searching, he found a really elaborate model meant for CNC carving, but the model maker converted it to an STL. [charlie]’s original plan was to poke the LEDs through the print. After consulting a wise woman, he decided to take the two-color approach and make the background translucent so that the 16 RGB LEDs can shine through.

So, what’s the twist? Well, over time, the tree will develop dementia. One by one, the leaves will lose awareness and go through the seasons backward, or slow down their cycle, or speed up. Eventually, the entire tree recedes into a rainbow of confusion. Sadly beautiful, isn’t it?

No printer? No problem. Trees of life come in all forms, including free-form.

The Faux-Vintage Becomes Vintage

For those who might have missed it, there was a brief period in the mid-00s where gamers everywhere eschewed consoles and PCs in favor of simple Flash-based games to be played in a browser. Among these was the game Peasant’s Quest, created by the folks at Homestar Runner and modeled after video games from the 80s. [deater] was a fan of this game and wondered if it would actually be possible to play this retro-styled game on actual retro hardware.

For the experiment he decided on using an Apple II since this computer is featured as a prop rather often by the developers at Videlectrix. It turns out that with some determination it’s actually possible to run this game on the late 80s hardware with very little modifications. Squeezing the sprites into the required space was a challenge, as well as getting the sound tracks to play properly, but in the end the game runs within the hardware’s 280×192 resolution with 6 colors. There are also detailed notes on how the complicated graphics system on the Apple works for those willing to take a deep dive. There’s a lot going on here, but surprisingly few compromises needed to be made to get this to work.

The game itself is available on the project’s webpage for anyone who still has an Apple II kicking around, or for anyone who is willing to try it out in an emulator. Of course you could always play the original Flash version but that’s missing a certain charm that decades old retrocomputers have with games. We certainly aren’t seeing video game controllers like those built for the Apple II anymore, for example.

Continue reading “The Faux-Vintage Becomes Vintage”

Light Painting With An 19th Century Inspired Plotter

The geometric chuck was a device that stacked up multiple rotating wheels that could vary their speed and their offset to a central shaft, in order to machine ornate designs using a lathe. It’s this piece of machining obscura from the 19th century that inspired this light painting build from [Ted Kinsman].

Rather than the complicated gears and wheels used in the distant past, [Ted] instead elected to use stepper motors. Three stepper motors are stacked on top of each other, each one able to rotate at an independent rate. The design only implements three steppers as the slip rings needed to send power and control signals to each stepper are prohibitively expensive.

An Arduino is programmed to run the show, changing the speed of each motor and thus the patterns the system generates. Put LEDs on the spinning plates, or install a pen to mark a piece of paper, and it’s possible to generate all manner of beautiful spirograph-like patterns. Vary the motor speeds or the positioning of the lights, and the patterns vary in turn.

It’s a fun build for light painting, with some great visuals produced. We also appreciate the use of the Arduino which makes varying the parameters far easier than having to change out gearsets in classical designs.

If you miss the old school spirograph, you can always build one out of Lego. Else, consider experimenting with other light painting techniques. If you’ve built a fancy rig of your own, be sure to let us know!

[Thanks to zit for the tip!]

Robot Pet Is A Chip Off The Old Logic Block

When [Ezra Thomas] needed inspiration for his senior design project, he only needed to look as far as his own robot. Built during his high school years from the classic 1979 Frank DaCosta book “How to Build Your Own Working Robot Pet”, [Ezra] had learned the hard way the many limitations and complexities of the wire wrapped 74xx series logic chips surrounding its 8085 processor.

[Ezra] embarked on a quest to recreate the monstrosity in miniature, calling it Pet on a Chip. Using a modern FPGA chip allows the electronics to shrink by an order of magnitude and provides flexibility for future expansion. Implementing an 8 bit CPU on the amply sized FPGA left plenty of room for a VGA GPU, motor controller, serial UART, and more. Programming the CPU is handled by a custom assembler written in Python.

The results? Twelve times less weight, thirteen times less power draw, better performance, and a lot of room for growth. [Ezra] hints at an I2C bus expansion as well as a higher level programming language to make software development less of a hurdle.

The Pet On A Chip is a wonderfully engineered project and we hope that we’ll be seeing more such from [Ezra] as time goes by. Watch his Pet On A Chip in action in the video below the break.

If [Ezra]’s FPGA escapades have you wondering how to get started, you can check out this introduction to FPGA from the 2019 Hackaday Superconference. And if you have your own FPGA creation to share, please let us know via the Tip Line!

Continue reading “Robot Pet Is A Chip Off The Old Logic Block”