We have a thin treasure/inventory capability wired in. Let’s review our notes and pick something to add. We add visible treasures and console announcements with just a little code. A few articles back I remarked that we need a message to appear, wherever messages appear, indicating what has been given when a content item gives something to Dot. There is also the need for an inventory display, and of course the item needs an image to be displayed in the dungeon and in some kind of inventory display. We can begin to sketch design and implementation ideas from that much: For the message, we can have an announce method on whatever object is given to the interact_with_player method. That object is currently the Dungeon. We can have announce print to the console, as our first move. We’ll want some kind of on-screen text display, of course. One simple possibility would be a text pane in the game display. Another might be to display the text superimposed on the dungeon display. For extra…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.