Our Game Development forum is the place for Q&A-style discussions related to algorithm design, physics and math theory that are directly related to game development, in addition to techniques implementing sound and graphics libraries.

8 Reusable Code Snippet Topics

Remove Filter
Member Avatar for
Member Avatar for Tom_46

Easy tutorial: https://slicker.me/javascript/tower.htm

Game Development gaming java javascript
0
203
Member Avatar for Lp_baez

when the console displays the "StudentAns" I get weird characters instead of the actual answer. ///////////////////////////////////////////////////////////// this is the files CorrectAnswers.txt A D B C A A D B D C A D B A C C D B C A StudentAnswers.txt A D B C A A D B …

Game Development c++
Member Avatar for AssertNull
0
378
Member Avatar for restrictment

I accidentally posted a lower version of the game that had more flaws, and a few less features. This one has a few more minor bugs fixed, and a power attack instead of a normal attack.

Game Development gaming
Member Avatar for apkrieg
0
696
Member Avatar for Bumpehh

This is a very simple Rock Paper scissors game i made. i showed it to my cousin and he played it for like 20 mins lol. Its against an AI and you pick by number, not words.

Game Development c++
Member Avatar for m4ster_r0shi
0
2K
Member Avatar for lxXTaCoXxl

I had a small problem with collision detection starting out with XNA 4.0 so I figured I'd release a simple snippet that helps with two different types of collision detection; Per-Pixel and Rectangular. To use simply copy and paste the snippet into your current source, or you could put it …

Game Development google:android-development
Member Avatar for tpb_rocpile
0
271
Member Avatar for lxXTaCoXxl

I realize I haven't released anything in a while so I figure I'll just type a basic set of things for you all to use or learn from. All of the following requires XNA Framework, but can be easily ported over to .NET Framework for use with forms applications. The …

Game Development .net:c#
0
135
Member Avatar for lxXTaCoXxl

I haven't tested this yet but it should work. The implementation is fairly simple. I don't have my laptop so I can debug the code at the present time. This basically increments the frame count everytime the game draws itself (allowing us to calculate frames per second considering the draw …

Game Development .net:c#
Member Avatar for lxXTaCoXxl
0
273
Member Avatar for lxXTaCoXxl

I've developed a simple class and enum that will make ammunition creation and usage simpler in game development for those who are interested. I will be making a tutorial video on how I made this so that you will fully understand how the code works if you do not. Simply …

Game Development .net:c#
Member Avatar for lxXTaCoXxl
-1
255

The End.