Handmade Hero»Forums»Code
5 posts
[Day 191] I've obviously done something wrong
Edited by Theatrical on
I really hope that this is the right place to post whatever issues I'm having with the code.

Everything compiles fine and I've done all the things and stuff. The only warning I've gotten is a command line warning that /O2 overrides /Od.

Anyway, I did the test builder assets thing stuff, and it generated the stuff. I ran it through the data thing like I'm supposed to but I also tried to just double-click the win32_handmade.exe, obviously that didn't work either.

When I try to run win32_handmade.exe I get this weird thing happening.



Has anyone experienced this and know what I did wrong?

I am so sorry if this is some basic stuff and I'm just being a silly boy and I just wasted all of you guys' time or something.

EDIT:

So apparently if you press the spacebar, you can move the thing, however, A is right, D is left, W is down, and S is up.
Mārtiņš Možeiko
2559 posts / 2 projects
[Day 191] I've obviously done something wrong
Make sure assets are built correctly - check the output in data folder, it should contain bunch f *.ha files.

And make sure that all the *.hha asset files are in current folder when you are running exe. Casey does this by making Visual Studio to set "working directory" to data folder. If you are double clicking your exe file, then you need to make sure all the .hha files are next to .exe (or .exe is in "data" folder).
5 posts
[Day 191] I've obviously done something wrong
testfonts.hha
test3.hha
test2.hha
test1.hha

Those are the files generated when running the test assets builder. I just noticed however that when I run it through the command prompt where I can see the output, it says "ERROR: Cannot open file test/test_hero_shadow.bmp" and a lot, a lot of other bmps and wavs and I have no idea how to fix this.
Mārtiņš Možeiko
2559 posts / 2 projects
[Day 191] I've obviously done something wrong
Edited by Mārtiņš Možeiko on
Do you have these bmps downloaded? They are available in same sendowl account where you download source code from - look for "Handmade Hero (Test Assets)".

Casey introduces these test assets in Day 36: https://hero.handmade.network/episode/code/day036/#125
In Day 58 they were updated with new bmp files: https://hero.handmade.network/episode/code/day058/#28
And in Day 138 they were updated with wav files: https://hero.handmade.network/episode/code/day138/#66
5 posts
[Day 191] I've obviously done something wrong
...
This is awkward.

Thank you, haha.