Today I propose to change the Border code to return a ‘meaningful’ string rather than those 0-15 integers. I figure I can handle something that tricky, probably. The core notion that I have in mind is to have a cell’s border described as a string, with the letters ENWS, in that order, if the cell has a border on that side. I chose that order because I count the sides in the conventional angular direction, starting with east. I think we’ll have some visible prefix, perhaps just _, depending on how it seems when we get there. That will let me recast the texture dictionary, which now looks like this: texture_dictionary = { 0: arcade.load_texture(path+'Tile (21).png'), # none 1: arcade.load_texture(path+'Floor_Edge_29.png'), # east 2: arcade.load_texture(path+'Floor_Edge_36.png'), # north ... We’ll have the much more meaningful string keys, which should help us as we decide what tiles to put where. There may be more to do, because we may want to provide for multiple tiles of a given type,…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.