Is there a way to convert an PNG or Jpeg into data statements?

Crayon21
Posts: 364
Joined: Sun Nov 04, 2018 2:33 am

Is there a way to convert an PNG or Jpeg into data statements?

Post by Crayon21 »

I am making a game where you kill Jar Jar. is there a program to convert a png or jpeg into a bitmap file?
In Heck, there are two options for perpetual torment:

Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
:twisted:
User avatar
XavSnap
Posts: 1950
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Is there a way to convert an PNG or Jpeg into data statements?

Post by XavSnap »

Xavier ...on the Facebook groupe : "Zx81 France"(fr)
User avatar
zarsoft
Posts: 18
Joined: Wed Dec 29, 2021 2:20 pm
Location: Portugal
Contact:

Re: Is there a way to convert an PNG or Jpeg into data statements?

Post by zarsoft »

This app converts image to TAP:
https://arcalusitana.org/MuseuZX/ZXspritesBlock

On that site, there is another app who generates DATA statements but the image comes out splited into blocks 8x8.

But, if you want to generate a SCREEN then it is better bmp2scr or SevenUp, etc.
dr beep
Posts: 2178
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Is there a way to convert an PNG or Jpeg into data statements?

Post by dr beep »

I detect someone is taking pictures of the game in my book and so "typing in" the game.
User avatar
zarsoft
Posts: 18
Joined: Wed Dec 29, 2021 2:20 pm
Location: Portugal
Contact:

Re: Is there a way to convert an PNG or Jpeg into data statements?

Post by zarsoft »

dr beep wrote: Sat Jun 01, 2024 12:34 pm I detect someone is taking pictures of the game in my book and so "typing in" the game.
Which book?
dr beep
Posts: 2178
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Is there a way to convert an PNG or Jpeg into data statements?

Post by dr beep »

zarsoft wrote: Mon Jun 03, 2024 10:46 am
dr beep wrote: Sat Jun 01, 2024 12:34 pm I detect someone is taking pictures of the game in my book and so "typing in" the game.
Which book?
This one... page 75 and on....
https://www.amazon.nl/ultimate-1K-codin ... B0CZS63D14
User avatar
zarsoft
Posts: 18
Joined: Wed Dec 29, 2021 2:20 pm
Location: Portugal
Contact:

Re: Is there a way to convert an PNG or Jpeg into data statements?

Post by zarsoft »

dr beep wrote: Mon Jun 03, 2024 11:03 am The ultimate 1K coding book


Does this book includes a LINE routine?
dr beep
Posts: 2178
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Is there a way to convert an PNG or Jpeg into data statements?

Post by dr beep »

No, just coding and a game
User avatar
zarsoft
Posts: 18
Joined: Wed Dec 29, 2021 2:20 pm
Location: Portugal
Contact:

Re: Is there a way to convert an PNG or Jpeg into data statements?

Post by zarsoft »

It's easy to write a LINE routine to invoke from BASIC.
Line from COORDS (16438) to PEEK 16514, PEEK 16515.
RAND USR 16516.
You can call the ROM routine at 0BB2 to PLOT each point.
You can get inspired here:
https://skoolkid.github.io/rom/asm/24B7.html
dr beep
Posts: 2178
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Is there a way to convert an PNG or Jpeg into data statements?

Post by dr beep »

That I can make.
Post Reply