Search found 5 matches

by ArmSun
October 7th, 2018, 4:26 pm
Forum: Everything
Topic: Snake Game Tutorial 14a
Replies: 69
Views: 59524

Re: Snake Game Tutorial 14a

Mine is integrated graphics too. I didn't have thus issue until recently. I think it can be visual studio problem. It's 15.7.5 now.
by ArmSun
October 2nd, 2018, 6:50 pm
Forum: Everything
Topic: Snake Game Tutorial 14a
Replies: 69
Views: 59524

Re: Snake Game Tutorial 14a

Hi everyone, it's me again )

I'm having trouble with running snek game code. From time to time it gives me OUT OF VIDEO MEMORY error. I thought that I have done something wrong, so I've downloaded Chili's code from git. It gives the same error.

Can anyone help me?
by ArmSun
August 16th, 2018, 7:58 pm
Forum: Everything
Topic: Snake Game Tutorial 14a
Replies: 69
Views: 59524

Re: Snake Game Tutorial 14a

Thank you for the reply. I've just found the error. I was declaring the constructor function in the right way, but the gxf parameter was not a reference, and that was causing the issue.
by ArmSun
August 16th, 2018, 6:07 pm
Forum: Everything
Topic: Snake Game Tutorial 14a
Replies: 69
Views: 59524

Re: Snake Game Tutorial 14a

This is the declaration of the function
Board(Graphics& gfx);

And here is it's definition

Board::Board(Graphics& gfx)
:
gfx(gfx)
{
}

Seems like I'm passing gfx by reference, not by value.
by ArmSun
August 15th, 2018, 6:48 pm
Forum: Everything
Topic: Snake Game Tutorial 14a
Replies: 69
Views: 59524

Re: Snake Game Tutorial 14a

Hi I'm trying to run snek game, and I'm getting an error at the disco part ) When I try to make a constructor for Board class, it gives an error Graphics::Graphics(Graphics &) attempting to reference a deleted function and the error line is gfx(gfx) I've looked into Graphics.h and found function dec...