Search found 51 matches

by bonjovifan
February 5th, 2016, 7:57 am
Forum: Everything
Topic: Game State Enums
Replies: 2
Views: 1467

Game State Enums

Hey guys. I was wondering if using enum / enum class would be a good way to switch between the different game states (i.e title screen, menu screen, playing screen, etc). Or is there a better way to do this?
by bonjovifan
December 17th, 2015, 1:09 am
Forum: Everything
Topic: Trouble with intermediate lesson 21
Replies: 1
Views: 1235

Trouble with intermediate lesson 21

I'm on Intermediate lesson 21 (Scrolling). The first time I've watched this lesson, my code broke it somehow, and now the second time watching it, it's breaking more. LOL. The problem I had before was the window would open and take about 5 seconds before display anything. Also It would take forever ...
by bonjovifan
December 6th, 2015, 10:22 pm
Forum: Everything
Topic: Converting to SDL
Replies: 1
Views: 1326

Converting to SDL

So, I've decided that I like SDL better than DirectX. It seems to be more simpler, so I've decided to convert it from DirectX to SDL. But I ran into a problem. I'm following the intermediate tutorials also to help me guide myself (I like the structure of the classes, etc), I even copy and pasted som...
by bonjovifan
December 6th, 2015, 11:13 am
Forum: Everything
Topic: Trouble with Intermediate Lesson 13
Replies: 4
Views: 2143

Re: Trouble with Intermediate Lesson 13

Well that makes me feel stupid. >.< I learned something with this mistake though. So if I don't specify public, private, or protected, the compiler automatically makes it private? Am I getting that right?
by bonjovifan
December 5th, 2015, 8:25 pm
Forum: Everything
Topic: Trouble with Intermediate Lesson 13
Replies: 4
Views: 2143

Trouble with Intermediate Lesson 13

I'm receiving an error when trying to build the solution from Intermediate Lesson 13 at 1:26. The error I get is: error C2248: 'PlayerStanding::PlayerStanding' : cannot access private member declared in class 'PlayerStanding. I've been trying to solve it for about an hour and can't seem to solve the...
by bonjovifan
November 19th, 2014, 8:20 pm
Forum: Everything
Topic: How to change default background color to green?
Replies: 4
Views: 2320

Re: How to change default background color to green?

I could easily do it with using a lot of gfx.PutPixels using loops to fill the screen, but I wanted to save myself the extra code.
by bonjovifan
November 19th, 2014, 8:06 pm
Forum: Everything
Topic: How to change default background color to green?
Replies: 4
Views: 2320

How to change default background color to green?

I've been messing around for a bit trying to change the default background color in the D3DGraphics.cpp file. What would I change 0xFF to to make it green?

void D3DGraphics::BeginFrame()
{
memset(pSysBuffer, 0xFF, sizeof(D3DCOLOR) * SCREENWIDTH * SCREENHEIGHT);
}
by bonjovifan
February 22nd, 2014, 4:48 am
Forum: Everything
Topic: Question for Mr. Chili about the forums
Replies: 14
Views: 5788

Re: Question for Mr. Chili about the forums

If your using php with mySQL, you can add an enum type to the sql database. give it a value of either 0 or 1. if they read the sticky post, change it to 1, enabling the user to post. That's what I did with my current website that I'm working on. ( idk if you code the site yourself or whatever lol ) ...
by bonjovifan
February 22nd, 2014, 4:42 am
Forum: Everything
Topic: Visual Studio 2013 Express
Replies: 21
Views: 10924

Re: Visual Studio 2013 Express

I downloaded it yesterday and I love it so far. The only that that i don't like about it, is the way the intelisence is. For instance in 2010 I could type: #include "Spr and it would narrow down and if i type the ending " it would auto complete it. In 2013 it doesn't have that feature unless I haven...
by bonjovifan
February 19th, 2014, 10:00 pm
Forum: Everything
Topic: Sprite does not draw
Replies: 2
Views: 1632

Re: Sprite does not draw

Your D3DGraphics::DrawSurface function is a little off. Took me a little bit to find the error, and I have. Your loop indexes are messed up, you have this: for( int iy = yStart; y < yEnd; y++ ) { for( int ix = xStart; x < xEnd; x++ ) { //..stuff here } } It should be: for( int iy = yStart; iy < yEnd...