jleahey / Minicraft

A Minecraft 2D Demake
http://gamejolt.com/freeware/games/adventure/minicraft/2818/
Other
9 stars 0 forks source link

Use numeric IDs for items #9

Open perimosocordiae opened 12 years ago

perimosocordiae commented 12 years ago

ala Minecraft. This would allow the name attribute to be used for a more descriptive String.

perimosocordiae commented 12 years ago

I've gotten started on this, but there's a bit more work to be done. Relevant commits are: a3d59eadc3046cec476d92309005d7a529e6f557 6d8b610558dbaeb96fb9b64c53fd768288b187ca 9748590b03bcc2323bff5d93a6f2b2e6a0bbb9f1 59e6c5c86b9f46c056a3fcde586bc7ac11aae15f

jleahey commented 11 years ago

How did you chose the particular ints for the ids?

perimosocordiae commented 11 years ago

Right now, the ints are the ASCII character codes that the single-character names used to be. That's still necessary while this code is being used, but hopefully that will get cleaned up soon. :haircut: