Reputation
1,050
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
7 15
Impact
~33k people reached

  • 0 posts edited
  • 51 helpful flags
  • 1,410 votes cast
Jun
25
comment How can I improve my isometric tile-picking algorithm?
What does int index represent in the last two code blocks?
Jun
25
asked How can I improve my isometric tile-picking algorithm?
Jun
22
comment C# XNA Elasticity Behavior
In addition to this great answer, elasticity could also refer to elastic or inelastic collisions.
Jun
20
awarded  Editor
Jun
20
comment Creating a new instance, C#
I've edited my answer to include some more specific examples.
Jun
20
revised Creating a new instance, C#
fixed typo
Jun
20
comment Creating a new instance, C#
To answer your question, my examples were very basic to show you how to pass an object around. If you're going to go with that method, you'll need to add a parameter to your existing Ball constructor that takes in type Bat in addition to your ContentManager and Vector2 parameters. Then you can build your ball the same as you do now with the addition of an already instantiated bat object. Does that make more sense?
Jun
20
awarded  Commentator
Jun
20
comment Creating a new instance, C#
Are your bat and ball instances both being created within the same scope? Also, looking at your snippet for your GameplayScreen, you are creating your bat objects after your ball. It needs to be the other way around, since your new ball class relies on a bat object to be created.
Jun
20
awarded  Yearling
Jun
20
answered Creating a new instance, C#
Jun
15
answered Xna performance
Jun
10
comment How to refactor and improve this XNA mouse input code?
@michael.bartnett, ah I misinterpreted what wasPressed() meant. I was under the impression that this was a click (was down, is now up). Nice answer, by the way. Very clever implementation.
Jun
10
comment How to refactor and improve this XNA mouse input code?
I believe wasPressed() should read: return (mouseButtonsLastFrame & button) == button && (mouseButtonsThisFrame ^ button) == button;
Mar
1
comment C# creating a simple snake game
Great answer. I love how you are moving the snake - it's quite elegant.
Feb
17
comment Coding for a really, really high-resolution display array
This sounds like a really fun project.
Dec
7
awarded  Civic Duty
Nov
7
comment How can I make message passing between threads in a multithreaded engine less cumbersome?
If you want to engage in a more general conversation, I would recommend you try this post over in the forums at gamedev.net. As Josh said, since your "question" isn't a single specific question, it would be quite difficult to accomodate in the StackExchange format.
Oct
12
comment What is the most serious limitation of Unity?
As an avid Dropbox user, I would say that the version control inherent in the product is merely the side-effect of a robust recovery system. It's immensely useful for when you accidentally overwrite or delete a file; you have something to recover with. It has some very basic functionality (on individual files), but that's about it. A poor-man's version-control system at best.
Aug
24
awarded  Teacher