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,…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.