Giter Club home page Giter Club logo

lcd-game-shrinker's Introduction

LCD-Game-Shrinker

This program permits to shrink MAME ROM & Artwork of LCD handheld devices (Game & Watch, Konami, Tiger, Elektronika,...).

High resolution artworks are mixed, downscaled and color reduced to match portable device performances.

LCD segments are resized and extracted from Scalable Vector Graphics with drop shadow effect.

Finally, a compressed data file is created including all relevant information for portable device running LCD-Game-Emulator : https://github.com/bzhxx/LCD-Game-Emulator

Environment

Python (3.6) script tested under Linux Ubuntu and Windows 10.

Requirements

The following application need to be installed

The following Python modules are used

  • import sys, os, subprocess, re, lxml, importlib, zipfile, numpy, urllib.request, svgutils
  • from struct import pack
  • from PIL import Image,ImageChops

Usage

MAME Artworks and ROMs

This tool is used to shrink any MAME artwork and ROM SM510 family. You have to place Artwork file and ROM file in their respective directory input/artwork and input/rom.

Design, layout and artwork by hydef or DarthMarino are recommended. www.mameworld.info

Execute

Python shrink_it.py to process all files or Python shrink_it.py input/rom/gnw_mygame_zip to process a single file.

All intermediate files are created in build/ directory. At the end, resulting files are available under output/ directory. The resulting files can be executed by https://github.com/bzhxx/LCD-Game-Emulator ported on https://github.com/bzhxx/game-and-watch-retro-go

Advanced usage : Custom rules

It's possible to customize the shrinking process by adding some image processing on artwork and graphics. For this purpose, a python script is available or must be added in custom/ directory. Sometimes, an example is better than any explanation. So, have a look on https://github.com/bzhxx/LCD-Game-Shrinker/blob/main/custom/gnw_ball.py; This script customizes the rendering by adding gradient effect, anti-newton rings filter, artwork background shadow and experimental drop shadow effect on each LCD segments.

lcd-game-shrinker's People

Contributors

aminch avatar brianpugh avatar bzhxx avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.