BeRecursive

Stories submitted by BeRecursive

Collision Textures and 2DRenderTargets in XNA(berecursive.com)

submitted by BeRecursiveBeRecursive(35) 3 years, 4 months ago

I started making a Tower Defense Game which I will be sharing soon, including all my trials and tribulations and the theory behind it. Whilst making it I came across an interesting problem, which was how to tell whether or not the user could place the tower where they currently have the cursor. I thought about it for a while and then decided that the best method would be a sort of collision texture whereby you have a texture ‘underneath’ the main texture which outlines the areas where a tower can and cannot be placed (thought this texture is never actually rendered). read more...

add a comment |category: |Views: 47

tags: another

Sprite Sheets in XNA: Auto-Movement(berecursive.com)

submitted by BeRecursiveBeRecursive(35) 3 years, 9 months ago

If you begin from my previous article then you should already have a decent template for what we're about to create, which is auto-movement! We've all played games such as Final Fantasy or Pokemon that have sprites that walk around say, in a circle, or back and forth along a path. Of course, they don't just glide around, they walk like you do when you move. Therefore, in order to create a non-playable character (NPC) that uses the same animation method we do, lets add the ability to create an auto-moving character. read more...

add a comment |category: |Views: 150

tags: another

Sprite Sheets in XNA: Keyboard Movement(berecursive.com)

submitted by BeRecursiveBeRecursive(35) 3 years, 10 months ago

Previously we explored the basics of animating a sprite sheet in XNA, but we only allowed the Sprite Sheet to do literally that, animate. Here we will begin to put our new skills into use by allowing our user to move our sprites in one of four directions (North, South, East, West). read more...

add a comment |category: |Views: 364

tags: another

Sprite Sheets in Xna: The Basics(berecursive.com)

submitted by BeRecursiveBeRecursive(35) 3 years, 10 months ago

When designing 2D games, many of has have the annoying habit of being born out of the Flash age. We want to be able to have a drawing of something and animate, just like we did in Flash! However, this is obviously not possible in XNA since XNA is not a enriched content creation platform but instead a library for the creation of games. There is, however, an alternative that we might find more familiar, and these are Sprite Sheets. read more...

add a comment |category: |Views: 154

tags: another

Interacting with Napster through C#(berecursive.com)

submitted by BeRecursiveBeRecursive(35) 3 years, 10 months ago

Using C# and P/Invoke in order to grab the currently playing song from Napster and send it to Windows Live Messenger (MSN Messenger) like iTunes does. read more...

add a comment |category: |Views: 11

tags: another

Rotating A Sprite Towards An Object In XNA(berecursive.com)

submitted by BeRecursiveBeRecursive(35) 3 years, 10 months ago

Often when creating games in 2D you need a sprite to rotate towards another object, whether that be a turret rotating towards an enemy or making something follow your mouse. Regardless of the use of this rotation the principle is the same. In this tutorial I use the basic concept of making something follow the mouse, but the game logic provided should enable you to rotate any sprite towards just about any object on the game screen. read more...

add a comment |category: |Views: 208

tags: another

Tile Based Placement in XNA(berecursive.com)

submitted by BeRecursiveBeRecursive(35) 3 years, 10 months ago

Having just begun programming for XNA I thought I’d begin to share what I’ve been learning. One thing I definitely aim to do which I find lacking in many tutorials is explain the logic behind what I’m doing so it can be easily ported into other languages (such as Flash). For this tutorial I’m going to cover quite an easy feature, which is locking the placement of a sprite to a ’tile-based’ system. This is essentially the mechanism found in most tower defense games for tower placement. read more...

add a comment |category: |Views: 92

tags: another