Log In  

Cart #looploop64-0 | 2021-12-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
This random sprite generator will never stop until it's finds the perfect 8*8 Jelpi sprite

P#102600 2021-12-13 20:13 ( Edited 2021-12-14 09:39)


I'm intrigued at the determination in what you are doing here, @Billal50.

First off, let's see how many possible combinations you can have in an 8x8 field with 16-colors.


There are :


possible combinations for the pixels to appear with only one being the JELPI.

What you MIGHT do is search for a B&W of it to have a greater chance. Here, let me see ...


Now in searching for THIS image staying only with B&W dots the number gets a bit smaller:


So there are that many possibilities of pixels to appear with only one being the B&W JELPI.

Still. You are using FLIP() every cycle. Let's add a keystroke that skips FLIP() to make your program run top speed in its search for JELPI.

Here, try this. Hold (O) to skip the FLIP(). That is your code running flat out.

Cart #wofoniyeko-0 | 2021-12-13 | Code ▽ | Embed ▽ | No License

P#102622 2021-12-13 22:23

@dw817 yeah thanks,i already did the math ,it's was just a joke , i used flip() to show every generated sprite every frame

P#102727 2021-12-14 09:34

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-11-28 16:17:00 | 0.057s | Q:20