https://github.com/saadbazaz/antipixel
👾 Generate code for sprites, for your game in 8086 assembly
https://github.com/saadbazaz/antipixel
16-bit 16-bit-cpu 8086-architecture code-generator game-art game-development masm student-project
Last synced: 2 months ago
JSON representation
👾 Generate code for sprites, for your game in 8086 assembly
- Host: GitHub
- URL: https://github.com/saadbazaz/antipixel
- Owner: SaadBazaz
- Created: 2019-11-07T11:59:58.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-13T17:31:44.000Z (about 5 years ago)
- Last Synced: 2025-07-05T00:38:17.195Z (3 months ago)
- Topics: 16-bit, 16-bit-cpu, 8086-architecture, code-generator, game-art, game-development, masm, student-project
- Language: C++
- Homepage:
- Size: 1.66 MB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# antiPixel [](https://travis-ci.org/SaadBazaz/antiPixel) [](https://github.com/SaadBazaz/antiPixel/actions)
👾 Convert BMPs and text files to proper x8086 assembly arrays.
## About
Converts pictures and text files into MASM code arrays.
Basic image reading and manipulation in C++, in Visual Studio 2019.
*Author: Saad Bazaz.*
> Use **cactus_example.txt**, **16color-palette** or **cactus_example.bmp** as examples## How to make pixel games in MASM?
Follow this guy's awesome tutorial (https://www.youtube.com/watch?v=dyANHsj2UOw&list=PLvpbDCl_H7mfgmEJPl1bTHlH5g-f0kWDM)!## Instructions
### HOW TO USE METHOD 1:
1. Create a pixel drawing in mspaint on 25x25 canvas
2. Save As => BMP Picture => (24-bit Bitmap)
3. Go to https://www.text-image.com/convert/ascii.html, convert the BMP to text
4. Save the text in a txt file, place it in the program's solution folder
5. Compile the program and feed it the text file### HOW TO USE METHOD 2 (my current method):
1. Create a pixel drawing in mspaint on 25x25 canvas
2. Save As => BMP Picture => (16 color Bitmap) !!!!! IMPORTANT !!!!!
3. Now, Save As => BMP Picture => (24-bit Bitmap) !!!!! These steps were necessary to convert all extra colors into 16 color !!!!!
3. NOW you can place the image in the program's solution folder
4. Compile the program and feed it the bmp file### HOW TO USE METHOD 3:
1. Create a pixel drawing in mspaint on 25x25 canvas
2. Save As => BMP Picture => (24-bit Bitmap)
3. Place the image in the program's solution folder
4. Compile the program and feed it the bmp fileYou can change the color number assignments according to your desire. Just head over to Color.h and change the preprocessor definitions.
👇
## Troubleshooting
- if you can't find the User_Results folder, make it yourself or download the latest build
a) STRUCTURE
User_Results =>
- BMPColorASM
- BMPMonoASM
- TextToASM
- Sometimes the arrays may be terminated by an extra comma so remove that before running the arrays.
- avoid using pictures bigger than 500x500 pixels. It won't crash in any situation, but it would be slow to render and you'd probably get worried.
- The program has not been tested with images generated from different programs, like GIMP or Photoshop. In those cases,
you would have to look up the HEADER SIZE and change it in the Advanced Configurations## Support
Make pull requests, create Issues, and do everything you want to get information out of me.
You can personally email me at saadbazaz@hotmail.com
I'd love to entertain any questions and suggestions!