{"id":16253557,"url":"https://github.com/pleft/sega_vdp_background_1","last_synced_at":"2025-06-16T09:33:08.112Z","repository":{"id":75633969,"uuid":"79739576","full_name":"pleft/SEGA_VDP_Background_1","owner":"pleft","description":"SEGA Mega Drive Programming: Load a simple image as background","archived":false,"fork":false,"pushed_at":"2017-01-22T19:26:09.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T08:48:24.742Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pleft.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-22T19:23:19.000Z","updated_at":"2017-01-22T19:23:33.000Z","dependencies_parsed_at":"2023-06-07T04:45:36.031Z","dependency_job_id":null,"html_url":"https://github.com/pleft/SEGA_VDP_Background_1","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"aedea951bf023e69a4ac0dbbafd6ac949cdd306c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleft%2FSEGA_VDP_Background_1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleft%2FSEGA_VDP_Background_1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleft%2FSEGA_VDP_Background_1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleft%2FSEGA_VDP_Background_1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pleft","download_url":"https://codeload.github.com/pleft/SEGA_VDP_Background_1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247846563,"owners_count":21006067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T15:17:47.466Z","updated_at":"2025-04-08T12:45:32.914Z","avatar_url":"https://github.com/pleft.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"== SEGA VDP, display a background image\n\nThis Sega Mega Drive project shows how to display an image as background. It does just the bare minimum job, load the image and setup the palette. The background image is a simple drawin in `MSPaint`. It is converted to a valid, compatible with Mega Drive `png` image using the tool `RetroGraphicsToolkit` (RGT) which can be found https://github.com/ComputerNerd/Retro-Graphics-Toolkit[here].\n\n=== Instructions to create the background image\n. Draw an image or download one from the internet.\n. Open `RetroGraphicsToolkit` choose `File-\u003eTile map-\u003eImport image to tilemap`.\n. Then `Tilemap actions-\u003eGenerate optimal palette with x amount of colors`. In the dialog displayed press first `Preview` and then `Done`.\n. Then `Tilemap action-\u003eDither tilemap as image`.\n. Finally save the converted image with `File-\u003eTile map-\u003eExport tile mas as image`.\n\n=== Instructions to load the image resource\n. Put the converted image from RGT into the `res/` folder.\n. Create a file named `resources.res` and write a line with the following: `IMAGE background \"background.png\" 0` where `background.png` is the image filename.\n. Perform a project build (if project is setup according to https://github.com/pleft/SEGA_VSCode_Template[VSCode template]), just press `Ctrl-Shift-B` on `VSCode` editor.\n. A `resources.h` file should be created in `res/` folder. Include it in your `main.c` file and you are ready to use your newly created Image structure.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpleft%2Fsega_vdp_background_1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpleft%2Fsega_vdp_background_1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpleft%2Fsega_vdp_background_1/lists"}