Tag Archives: open sources

img2dcpu Header

img2dcpu – Spec 1.7 + Lots o’ Stuff Update! (v0.8)

Notch has updated the DCPU specifications to 1.7 and has released a hardware specification for the video screen that will be included in-game, so a lot has changed in how images are displayed on the DCPU screen (or more specifically, the LM1802 Display). Included in these changes are hardware interrupts, mappable video and font RAM, and custom palettes. img2dcpu now takes full advantage of these features, allowing for less flickery animation, more accurate color representation, faster code execution, and smaller code size output! It now works with most current emulators as well. To show off the new custom palette handling, I’ve redone the original Notch image with a more color-accurate version show below or on 0x10co.de:

img2dcpu v0.8 Screenshot

img2dcpu v0.8 Screenshot

Continue reading

img2dcpu Header

img2dcpu – Smaller Output Update (v0.7)

Note: img2dcpu has been updated to v0.8! More info can be found here.

I made a few small changes in img2dcpu, in order to decrease the size of the output code that it generates. This means that images and animations will take up much less memory on the DCPU, and longer animations can be generated. Unfortunately, img2dcpu has not been updated to work with Notch’s new (and mostly final) specifications for the DCPU (Version 1.5 and Monitor Hardware), so it will only work on the older DCPU emulators. Updates will soon be made that add support for the specifications, followed by increased color resolution through the use of the new custom color palettes. After that, I will probably work on using image buffering to reduce flickering and scan artifacts in animations (if deemed necessary). If all of that is finished soon, then I will possibly work on improving the UI, maybe adding a drag and drop GUI to simplify conversion. That milestone will mark the release of v1.0 if I feel it is ready for public use. Continue reading

img2dcpu Header

img2dcpu – Cross-Platform Update (v0.6)

Note: img2dcpu has been updated to v0.8! More info can be found here.

Thanks to some code contributed by my friend Christopher Brown, img2dcpu is now cross-platform! It should now work on Windows, Mac OS X, and Linux-based systems. I’ve also fixed an error in generating 32×24 animated images, so those of you having issues with that should download the latest version. I used a little animation of the Nyan cat to test out the new fixes, and you can check it out at 0x10co.de! This utility is licensed under a GPLv3 License and the source and executable binaries can be found at: https://github.com/tac0010/img2dcpu.

Continue reading

img2dcpu Header

img2dcpu – Animation Update (v0.5)

Note: img2dcpu has been updated to v0.8! More info can be found here.

The newest version img2dcpu has been released, this time bringing you animation for all three resolutions! img2dcpu now allows you to convert BMP image lists into code that will run on the DCPU in 0x10c. There is not currently an option to set the frame rate in img2dcpu, but you can change the rate by modifying the delay value found at the end of the generated code. A screenshot can be found below, or you can view/run the code yourself on 0x10co.de, but a still image doesn’t really do it justice! Next up: output code optimization! This utility is licensed under a GPLv3 License and the source and Windows binary can be found at: https://github.com/tac0010/img2dcpu.

Continue reading

img2dcpu Header

img2dcpu for 0x10c – Initial Release (v0.1)

Note: img2dcpu has been updated to v0.8! More info can be found here.

You may have heard of the new game under development by Notch (of Minecraft fame), called “0x10c”. If not, here is a short description of some mechanics of the game from 0x10c.com:

 Each ship has a generator capable of producing a fixed wattage, and everything you connect to it drains wattage. A cloaking field, for example, might require almost all the power from the generator, forcing you to turn off all computers and dim all lights in order to successfully cloak.

The computer in the game is a fully functioning emulated 16 bit CPU that can be used to control your entire ship, or just to play games on while waiting for a large mining operation to finish.

I had some free time, so I decided to work on creating img2dcpu – a utility for converting an image into DCPU assembly code for 0x10c. This utility is licensed under a GPLv3 License and the source and Windows binary can be found at: https://github.com/tac0010/img2dcpu

— Description —

img2dcpu allows you to convert a color bitmap image into code that can be used to display the image on the DCPU in Mojang’s new space game, 0x10c. Currently, the specification of the IO system in 0x10c allows for a 32×12-tile screen, where each tile consists of a 4×8 character. img2dcpu can create assembly code that can display a 32×24 color image on the DCPU screen by making use of a custom font, splitting each tile into two square pixels. Future work includes dividing the tile further so that a full 128×96 image can be generated and displayed. Continue reading