173 days ago · Tech · hide · Fediverse post

A few little changes to content this morning trigger some further improvement this afternoon. It’s better than it was, and more capable too. I want to continue to make this content blob more nearly right. In a spirit of making things worse so as to see better how to improve them, let’s have two buttons and two hidden items. Clearly the buttons will need to send different messages, and the items subscribe differently. Let’s have the buttons prepend their name to the message. main.py dungeon.place_content_at(Cell(34, 28), Button('key')) dungeon.place_content_at(Cell(36, 28), SecretKey('a secret key')) dungeon.place_content_at(Cell(34, 29), Button('torch')) dungeon.place_content_at(Cell(36, 28), SecretKey('a brilliant torch')) I need the SecretKey to be more clever. I’ll rename it to SecretObject, add a resource. I was going to add a short name but for now let’s make the Button deal with it: dungeon.place_content_at(Cell(34, 28), Button('a secret key')) dungeon.place_content_at(Cell(36,…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town