Search found 15 matches

by clau007
September 8th, 2013, 11:18 am
Forum: Everything
Topic: C++ rand() Function Question
Replies: 6
Views: 3149

Re: C++ rand() Function Question

rand() returns a pseudo-random INT number between 0000 0000 0000 0000 (ZERO) and 1111 1111 1111 1111 (2^15 - 1 or 32767) if you use the bitwise operator & with 0000 0000 0101 1111 (95) you will obtain a number from 0 to 95 with the numbers from 32 to 63 excluded because of the 6th bit wich will alwa...
by clau007
September 8th, 2013, 10:12 am
Forum: Everything
Topic: Sudoku Game
Replies: 9
Views: 5660

Re: Sudoku Game

Wow! Very nice! That's by far the most badass Sudoku game I've ever played :D
by clau007
September 8th, 2013, 9:44 am
Forum: Everything
Topic: Hangbot - Asimov Testgame
Replies: 62
Views: 26747

Re: Hangbot - Asimov Testgame

Could you please upload the release executable? I had troubles building your project (d3dx9.h missing).

Edit: Nevermind, solved!

Nice robot :)
by clau007
August 27th, 2013, 9:17 am
Forum: Everything
Topic: Need some help - SOLVED
Replies: 17
Views: 6485

Re: Need some HELP

Try to check if the pointer is not null before the release, like this:

Code: Select all

if(m_bitmap)
{
 m_bitmap->Release();
}
by clau007
August 9th, 2013, 10:43 pm
Forum: Everything
Topic: Visual Studio 2013
Replies: 19
Views: 7519

Re: Visual Studio 2013

Also started again working on Direct2D, but this time D2D 1.1, since 3D takes damn too much time. D2D 1.1 uses Direct3d 11 interoperability and it's really cool for 2D stuff anyway... Cool! If you find any good tutorial/ebook on this stuff let me know, because personally I still didn't find a decen...
by clau007
August 9th, 2013, 7:05 pm
Forum: Everything
Topic: Sudoku Problem
Replies: 6
Views: 2845

Re: Sudoku Problem

Yep, LuisR14 is right.

For example, with cX = 1 and cY = 5 you would be at the index 5*9 + 1 into your board.

Anyways, if you still find this unintuitive you should consider using a bidimensional array instead (a matrix). Something like this: Board[x][y];
by clau007
August 9th, 2013, 3:57 pm
Forum: Everything
Topic: [GAME] Tetris Infinity v1
Replies: 0
Views: 4300

[GAME] Tetris Infinity v1

Hi! Just wanted to share with you guys this little game I made some time ago. It's the good ol' Tetris!! Sources may contain cryptic variable identifiers, MALLOCs, STRUCTS and rough coding style :lol:. Didn't have enough time and will to improve It a little bit (It lacks of classes), but fuck It! It...
by clau007
August 9th, 2013, 3:12 pm
Forum: Everything
Topic: Visual Studio 2013
Replies: 19
Views: 7519

Re: Visual Studio 2013

Came across something weird. So first I had my buffer swap effect as "discard" and one buffer: frames render in about 3-5 ms. I changed the swap effect to "flip sequential" and 2 buffers: frames render in 16 ms (vsync off) this setting was advised by microsoft. Now add a third buffer and frames ren...
by clau007
August 9th, 2013, 2:22 pm
Forum: Everything
Topic: Pong!
Replies: 9
Views: 5455

Re: Pong!

It's cool, but crashes very often!
by clau007
August 5th, 2013, 9:10 pm
Forum: Everything
Topic: Hi everyone, new member here.
Replies: 11
Views: 4756

Re: Hi everyone, new member here.

I'm actually starting a Software Dev certificate at my unversity for the next semester, and I would like to get as much ahead as I can. Of course the certificate is in JAVA which sounds horribly boring, because it is not really game related , but from what I can see, C++ and Java really looks simil...