Page 3 of 6

Re: Attack on the Forest

Posted: August 3rd, 2017, 6:47 am
by albinopapa
Hey Zed!

How's the project coming? I've updated the framework some and it might be useful to you, especially the fixed sprite drawing bugs. Unfortunately, I had to get rid of the DrawReverse functions, but added functions to clone a mirrored version of the sprites and frames. Let me know if you need any help implementing this stuff.

Re: Attack on the Forest

Posted: August 3rd, 2017, 8:38 am
by Zedtho
The project's doing well, I've been working on sprites. I can't get the Alpha channel to work though (Image is saved as .png from Gimp, 60x100.). I might've not saved it correctly in Gimp, so I'll re-do that, then I'll update this post. Also, to add your new stuff, do I just do the same Engine stuff as before?

I'm going to get all the sprites done for the person running and stuff before I continue on.
After I've done that I want to be able to attack a "monster" (here still red cube, bit wide for a monster too). Then, the monster should get sprites and be able to move around and attack me. Then I'll add the tower in the middle of the screen which gets attacked by the monsters. I'll have to figure out when the monsters attack me and when they attack the tower, though.

I should add that the character colliding with the square below is a bit compressed, because my laptop screen isn't 1920x1080, but I want that 1920x1080 for my desktop later on. The other image is the actual character.

Edit: Can't figure out how to make the black of that image transparent. Internet resources aren't helping either :(

Edit 2: Got the Alpha Channel to work!

Re: Attack on the Forest

Posted: August 3rd, 2017, 3:49 pm
by albinopapa
Good deal. Glad to see you figured out the alpha transparency.
Also, to add your new stuff, do I just do the same Engine stuff as before?
Not sure what you mean exactly.
I'm using the same Chili Framework 2016, just heavily modified. It's almost unrecognizable except for the Chili license comments atop his files.

The interface for Graphics is the same, with the addition of PutPixelAlpha, DrawCircle and DrawCircleAlpha (<- bad name for what it really does ).

The Scene_ classes aren't meant to be a part of your pojects, they are testing grounds for development that I leave in there to show how things work.

Some files you don't include directly, they are used by other classes, like FontSheet, TextFormat and DWriteIniitlaizer are all used by Font. WICInitializer and ImageLoader are used by Sprite and by extension AlphaSprite, SpriteSheet, FontSheet and Frames.

Re: Attack on the Forest

Posted: August 5th, 2017, 12:16 pm
by Zedtho
Thanks for the reply! I'll just have to do what I did before then :D

By the way, the project is making good progress. I just switched from laptop to desktop, but I don't know how to downgrade the solution to VS 2015 (Laptop has 2017, desktop 2015). Google didn't give me any good results either, sadly.

TL;DR How do I open a v141(VS 2017) solution in VS 2015? (Somehow Albinopapa manages to, so it has to be possible?)

Re: Attack on the Forest

Posted: August 5th, 2017, 1:59 pm
by albinopapa
Project/ properties/...

On left, choose top option and general, then on right change build option to v140

Re: Attack on the Forest

Posted: August 5th, 2017, 2:06 pm
by Zedtho
Thanks! :D

Re: Attack on the Forest

Posted: August 5th, 2017, 2:14 pm
by albinopapa
I guess after General, on the right side it's Platform Tooset.

I do it a lot, but never look for the setting, just the v140 or v141 and change to what I need.

Re: Attack on the Forest

Posted: August 5th, 2017, 2:25 pm
by Zedtho
Nevermind, it works now! Today I learned that sdk != v140 stuff. Sorry for derping and wasting your time :P

Re: Attack on the Forest

Posted: August 5th, 2017, 3:58 pm
by albinopapa
No prob.

Re: Attack on the Forest

Posted: August 7th, 2017, 1:23 am
by chili
Doesn't even give Chili the credit for the save. SMH