Search found 6 matches

by AleksiyCODE
October 9th, 2019, 7:17 pm
Forum: Everything
Topic: Question about scaling sprites
Replies: 10
Views: 69

Re: Question about scaling sprites

Well, i made a quick (shitty) animated sprite tester for my friend, and there is simple scaling built in (arrow keys change animation playback speed and size)
https://gitlab.com/AleksiyCODE/st
you may be able to get some ideas from there (but the code is shit)
by AleksiyCODE
September 28th, 2019, 8:20 pm
Forum: Everything
Topic: Dealing with debugging and the learning curve?
Replies: 3
Views: 53

Re: Dealing with debugging and the learning curve?

Well, I might be able to help despite being a beginner myself. First of all, you give a link to .sln file, but this file along is no use (try opening it yourself with Notepad and make sure that your code isn't there). There is a page on Chilipedia on how to ask for coding help, so check that shit ou...
by AleksiyCODE
September 28th, 2019, 8:01 pm
Forum: Everything
Topic: A quick question on reference initialisation
Replies: 5
Views: 77

Re: A quick question on reference initialisation

Thanks a lot, that fully answers my question!
Now im a step closer to the Almighty C++ Sex God
Spoiler:
Image
by AleksiyCODE
September 28th, 2019, 11:36 am
Forum: Everything
Topic: A quick question on reference initialisation
Replies: 5
Views: 77

Re: A quick question on reference initialisation

Oh, forgot to mention that Graphics class is the same as in Beginner series, but Ill leave Graphics.h code here just in case /****************************************************************************************** * Chili DirectX Framework Version 16.10.01 * * Graphics.h * * Copyright 2016 Planet...
by AleksiyCODE
September 27th, 2019, 3:30 pm
Forum: Everything
Topic: A quick question on reference initialisation
Replies: 5
Views: 77

Re: A quick question on reference initialisation

Man, you got me there :( . Here's a copypasted version of initializing Graphics& that works: class ActionBox { public: ActionBox(const std::wstring & boxSpriteFileName,Surface* iconSprites, Vec2 in_pos,std::vector<Vec2> in_skillPos, std::vector<char> keyToSkill, int nBoxSkills,Graphics& in_gfx) : bo...
by AleksiyCODE
September 26th, 2019, 6:04 pm
Forum: Everything
Topic: A quick question on reference initialisation
Replies: 5
Views: 77

A quick question on reference initialisation

Hey! So I'm trying to write a game ( https://gitlab.com/AleksiyCODE/riftedtimes (not much to look at yet)), but here is a quick question: when i do in a constructor class A { public: A(Graphics& in_gfx) : gfx(in_gfx) {}; //this line! privare: Graphics& gfx; } it works, but if i do class A { public: ...