Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 16 Jul 2009
Offline Last Active Nov 05 2015 01:10 PM

#5106854 PUTT People's Choice Award and Comments

Posted by on 03 November 2013 - 11:26 PM

Hey thanks for taking the time to check out some of the games and share your experience.

And thank you for being such a good sport. smile.png
I tried the compiled version, but unfortunately it is not working for me on Windows 8. It dies immediately, and doesn't produce an error message, even from the console.

#5106375 PUTT People's Choice Award and Comments

Posted by on 01 November 2013 - 08:38 PM

Unfortunately, I didn't really think Segmented fit the Time theme (just my personal opinion)...

Haha, I was worried that "network time" and the whole ping thing might be too much of a stretch. smile.png Hope it still counts for the mandatory points tho =) Glad you liked the style, thanks for the feedback. smile.png

#5105694 PUTT Updates and Finals Thread

Posted by on 30 October 2013 - 10:22 AM

Heres my submission: http://andrew.pregent.ca/putt3.html


Chrome only, please! smile.png Didn't have time to make it cross browser so thats all I tested.


Notes for the judges:

  • I'm presuming the "moarpwr" option will count as a hard mode... its definitely more chaotic anyway...
  • Press Esc in the main menu to see the exit screen.
  • Press Esc during gameplay to see the pause screen.
  • Save functionality is implemented using cookies. Refresh the page, and note it will keep the current level.
  • The power-ups are the ascii characters that appear on the screen. There are 6 kinds in total, 4 of which deal with time.
  • The animated background changes at the bonus round (level 3).

Attached Thumbnails

  • hyper.png

#5104620 Giving a try to 3D graphics programming

Posted by on 26 October 2013 - 12:47 PM

For simply testing 3d math, maybe you should look at matlab or consider picking up a graphing calculator... There is a lot of setup involved in OpenGL, which would take time away from what you currently wish to do.

#5104520 Globals usage in tutorials and elsewhere.

Posted by on 25 October 2013 - 10:34 PM

For Example :  int x,y;  // Loop Counters  These I declare up front instead of declaring them in Each function I would use a Counter.

I used to do this, thinking it was a clever way to save space, so believe me when I say don't!!! You cannot conceive of every way in which you might call a function, so don't expose its inner workings to the global scope! Good practice in software design is to reduce the affect a piece of code can have on other pieces of code.
As an aside I actually ran into this exact problem today. Javascript will put a variable in the global scope if you don't explicitly put 'var', so all of my loops used the same variable "i" unintentionally. Not fun to debug. =)


I believe that I read that C variables are not actually strictly globals in that context, so my usage of the term may be incorrect.

Variables in C declared outside of any functions are global in scope.


I would like to point out to all those who blindly discourage the use of globals, that cout is a global. Globals have their place, but can be very easily misused.

#5104374 Which OpenGL book to pick?

Posted by on 25 October 2013 - 09:53 AM

I began graphics programming with the book you mention, "Beginning OpenGL Game Programming", and I found it an excellent start to the subject. That being said, the first edition of the book which I used was purely fixed-pipeline which would be somewhat pointless to learn nowadays as you would have to relearn everything to use shaders anyway. I notice the book is now in its second edition, so maybe they have updated things to incorporate shaders. Its something to be aware of, at any rate.

#5100354 Where to start in game programming

Posted by on 10 October 2013 - 04:51 PM

Before jumping into /game/ programming, I would recommend you take the time to learn the basics. Start with some tutorials in a language of your choice. I would start with python these days. Make some simple console programs first before jumping into graphics. Then once you have the foundation you will be a lot more comfortable learning all that is required to make a game.


As an aside, having a passion playing games doesn't necessarily mean you have a passion making them. I have more of a passion making them then I do playing them, the two are not necessarily equivalent. Anyways, good luck, and I hope you do indeed find it your passion, because there are few things as rewarding as game development in my opinion. =)

#5100141 Data Structures & Algorithms for Blackjack Simulator

Posted by on 10 October 2013 - 05:42 AM

1/ I think I would prefer to use a std::deque in this case, because it allows fast removal and insertion. However perhaps you should rethink your shuffle model altogether. It sounds like first answer preposed here might be a better fit, in which case I would go with a std::vector.
2/ Aces kind of mess things up because they can have two values. Resorting to a conditional check as you mention may be the best option for that, I can't really think of anything more elegant.