Subscribe to Stuck in an Infiniteloop        RSS Feed
- - - - -

Abstraction: Good and Bad

Icon 1 Comments
Abstraction ...
- - - - -

Teenage Mutant Ninja Hurdles

Icon 2 Comments
Believe it or not, programmers can have writers' block. Well, its not called writers' block, but we can have it. But if we don't call it that, it that what it really is? I leave that philosophical quandary for another day. The point, that I am laboriously trying to get to, is writing software is not unlike other processes most everyone...
- - - - -

Shades of Grey

Icon Leave Comment
It is human nature to rationalize, regardless of circumstance. This could be attributed to our need to understand the world around us. What is troublesome is some individual's ability to condemn others for such a rationalization, but fail to see their own. Does this excuse either's attempt to justify their position or actions? ...
- - - - -

Custom Recursive "Unpack" in Lua

Icon Leave Comment
Just a quick snippet to tide you over until the next Lua tutorial.

The default unpack() function is written in C. So let's write our own (why? for fun of course!) in Lua. We'll take a recursive approach and use a neat default value feature:

...
- - - - -

Introduction to Lua - Part III

Icon Leave Comment
Coming Soon to an "Other Languages" Tutorial Section Near You! Tutorial here

Introduction to Lua - Part III


This tutorial requires you to have a somewhat firm grasp on basic Lua concepts (variables, how to run Lua, etc...), for complete information please read Introduction to Lua and Introduction to Lua - Part II...
- - - - -

Introduction to Lua - Part II

Icon 1 Comments
Coming soon to an "Other Languages" tutorial section near you! Tutorial Here

Introduction to Lua - Part II

If you haven't familiarized yourself with Lua, please read: Introduction to Lua...
- - - - -

Introduction to Lua

Icon 4 Comments
Coming Soon to an "Other Language" Tutorial Section Near You! Tutorial here

What is Lua?

From Lua's homepage, www.lua.org:

...
- - - - -

Detecting Collision Between Two Spheres

Icon Leave Comment
This blog post is going to be more code then text as the code has plenty of comments and typing it again would be overly redundant. To determine collision between two spheres in a given time step we calculate the "next" position of each spheres and pass both of them in addition to the "current" position of the sphere to the...
- - - - -

Gravitational Effects on a Particle in 3D Space

Icon 2 Comments
Consider a point in 3D space, i.e. a 3D vector. We have x, y, and z coordinates, however for the purposes of the following snippet, it is easier to picture a 2D graph with X and Z axes since I won't be doing any changes on the Y value.

In a video game, collision detection is very important. In fact, it makes or breaks a game. You want that...
- - - - -

Passing By Reference (C++ vs. Java)

Icon 5 Comments
At some point, I imagine you have had the need for functions to communicate with one another. It usually takes the form of function parameters since global variables are not good programming practice. A basic version looks like:

...

  • (13 Pages)
  • +
  • « First
  • 9
  • 10
  • 11
  • 12
  • 13

January 2015

S M T W T F S
    123
45678910
11121314151617
18192021222324
25262728 29 3031

Tags

    Recent Entries

    Recent Comments

    Search My Blog

    3 user(s) viewing

    3 Guests
    0 member(s)
    0 anonymous member(s)