I was bored and made a Langton's ant, after quick success, I decided to try to make it more complicated by following the more advanced rules by Greg Turk and Jim Propp. Which allows for more colors. There is also a rule editor by pressing "Z".
This is the first game that my talented 5 year old daughter made, I've helped her with the code, but she made the sprites and sounds by herself.
I've made a math games for my Daughter.
I am did not want to focus on the art side (not my strong point). So I have heavily modified the Jelpi demo (just kept the sound and the beloved Jelpi).
Dear @zep is it ok if I use jelpi and his music for this cartridge?
Hi I have made a quick python script to turn an square picture to a string of text that can the be parsed by pico8 to make a nice splashscreen.
Pico8 code
function txt_to_pic(txt) local d={ a=10, b=11, c=12, d=13, e=14, f=15 } d['0']=0 d['1']=1 d['2']=2 d['3']=3 d['4']=4 d['5']=5 d['6']=6 d['7']=7 d['8']=8 d['9']=9 local x=0 local y=0 for i=0,#txt do if x>128 then x=0 y+=1 end c=d[sub(txt,i,i)] pset(x,y,c) x+=1 end end |
And here is the python script (just replace "me.jpg" by your image):
import numpy import PIL #%% img = PIL.Image.open("me.jpg") img = img.resize((128,128)) imgarr = numpy.array(img) newimg=numpy.array(img) img.resize((128*10,128*10)) p8colors=[ (0,0,0), (29,43,83), (126,37,83), (0,135,81), (171, 82, 54), (95, 87, 79), (194, 195, 199), (255, 241, 232), (255, 0, 77), (255, 163, 0), (255, 236, 39), (0, 228, 54), (41, 173, 255), (131, 118, 156), (255, 119, 168), (255, 204, 170)] col_to_letter='0123456789ABCDEF' def color_dist(a,b): r1,g1,b1 = a[:3] r2,g2,b2 = b[:3] return int(((r1-r2)**2+(g1-g2)**2+(b1-b2)**2)**(0.5)) def best_col(c): distances=[color_dist(c,i) for i in p8colors] m=min(distances) return distances.index(m) STR = '' for y,line in enumerate(imgarr): for x,c in enumerate(line): newc=best_col(c) STR+=col_to_letter[newc] newimg[y][x]=p8colors[newc] STR+='L' p8image=(STR) PIL.Image.fromarray(newimg).resize((1280,1280)) |
A highly realistic simulation of Brexit negotiations. Enjoy the riveting and exciting career of a Brexit Prime Minister. Only you can do this, because no one else wants to deal with it.
I have not seen any 'political satire' games here, so I hope its a good precedent. There is very contextually implied nsfw material which is based on real events and quotes.
Hi, I am having a problem with sprites and the map.
It seems that the botom half of my spritesheets is interlinked with the bottom part of the map.
It is realy frustating, is there anything I can do?
Following the vein of word quiz animals I have now made another version.
Code wise it now enables to use funcitons instead of sprites.
The drawing function do not use any global variable besides the tick number (tick+=1 every _update()).
Any suggestions would be welcome.
To do:
better mainpage.
MOAR shapes.
A small young children game for learning to spell and read.
want to update with more and more animals (ideally consume all possible sprites).