Search found 33 matches

by xu2201g
July 17th, 2017, 2:06 pm
Forum: Everything
Topic: sfml framework
Replies: 25
Views: 9735

Re: sfml framework

Thanks albinopapa, i got a bit distracted by those puzzles and the stuff i had to prepare for the internship. Ill go on with the editor for now.
by xu2201g
July 17th, 2017, 2:01 pm
Forum: Everything
Topic: Problems with window creation
Replies: 5
Views: 2343

Re: Problems with window creation

Hi, i usually write console apps, but i was able to figure out what was necessary to make it compile and run for me at least. LRESULT WINMAIN WinProc(HWND, UINT, WPARAM, LPARAM); In this line you got a function called WinProc. A function usually consists of a return type, functionname, functionparam...
by xu2201g
July 15th, 2017, 1:51 pm
Forum: Everything
Topic: sfml framework
Replies: 25
Views: 9735

Re: sfml framework

Hi there, this thread was inactive for a bit. I made an internship and got an apprenticeship starting soon as application developer. So now i got some time again to move on with this project. Besides that i started doing some puzzles at http://www.codingame.com and i like it and learned a lot new st...
by xu2201g
July 8th, 2017, 1:50 pm
Forum: Everything
Topic: Simon Says Game
Replies: 67
Views: 26375

Re: Simon Says Game

Hi, the problem is like the error message says those member variables in game.h cant be constructed by default. You defined a specific constructor for the Square class: Square(int GivenRedV, int GivenGreenV, int GivenBlueV, int GivenHorizontalLeft, int GivenHorizontalRight, int GivenVerticalBottom, ...
by xu2201g
July 1st, 2017, 3:43 am
Forum: Everything
Topic: Having trouble with downloading / using the tutorial code
Replies: 11
Views: 3950

Re: Having trouble with downloading / using the tutorial cod

You re welcome and thanks albinopapa. I rarely used the debugger until ive seen how its done in chilis tutorials and want to help out especially when someone runs into problems i already run into.
by xu2201g
June 30th, 2017, 7:28 pm
Forum: Everything
Topic: Having trouble with downloading / using the tutorial code
Replies: 11
Views: 3950

Re: Having trouble with downloading / using the tutorial cod

Ye thats ok, you watched the callstack already to find this line, didnt you? Now you ve at least two options, you could try to find the error by some intuition and the information given by the assertion which failed: assert(y < int(Graphics::ScreenHeight)); //an assertion checks the expression to be...
by xu2201g
June 30th, 2017, 5:40 am
Forum: Everything
Topic: Having trouble with downloading / using the tutorial code
Replies: 11
Views: 3950

Re: Having trouble with downloading / using the tutorial cod

Hi,
some more details would be good to pin down the problem, like the error messages etc. The errors you get are build errors? I am using visual studio 2017 and had to retarget the project to make it run properly right after opening the solution.
by xu2201g
June 25th, 2017, 9:59 pm
Forum: Everything
Topic: Boolean values
Replies: 5
Views: 2285

Re: Boolean values

It is useful to avoid tons of boolean variables to describe something and makes it easier to handle functions using those. instead of bool a; bool b; bool c; bool d; bool e; bool f; bool g; bool h; foo(a,b,c,d,e,f,g,h); where you would waste 8 * 7 bits and its getting even worse if u want to use lik...
by xu2201g
June 25th, 2017, 2:53 pm
Forum: Everything
Topic: Boolean values
Replies: 5
Views: 2285

Re: Boolean values

Thats not a stupid question. It is right that bool values usually should take up only 1 bit of space, but the smallest unit a cpu can load from RAM is a Byte (8bit). So you have to send at least 1 Byte to the cpu even if it holds less information. If you dont want to waste the other 7 bits you can u...
by xu2201g
June 23rd, 2017, 11:56 pm
Forum: Everything
Topic: My 2D platformer shit so far...
Replies: 17
Views: 6948

Re: My 2D platformer shit so far...

No problem :) Now what I'm going to try is instead of allowing the boost for 0.2s, i will allow it for like 200px or so, and rely less possible on the float type... If you want I can reupload my files, but you already have a copy in case you want to mess with it, right? You fixed the issue by that o...