#where did my math took wrong turn?

9 messages · Page 1 of 1 (latest)

vocal cloakBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

balmy pendant
#

Don't use single comments like that ever in macros

#

Use a multiline comment /* */ if you must use a comment inside a macro

#

Basically what happens is SCREEN_WIDTH expands like this:

1. SCREEN_WIDTH
2. DISPLAY_WIDTH  * DISPLAY_SCALE // 640
3. TILE_SIZE * TILE_ROW_LEN // 256 * DISPLAY_SCALE // 640
```And hopefully here you see the issue
balmy pendant
#

Am I misremembering?

indigo pecan
#

You are.

#

Comments are removed before replacements take place.

balmy pendant
#

Oh, I'm thinking of multiline macros with \