Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

MasterSharp

@MasterSharp
About
Posts
276
Topics
74
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Publish XNA Project (Please?) [modified]
    M MasterSharp

    I did.

    - I love D-flat! - Need. More. Code.

    C# question

  • Publish XNA Project (Please?) [modified]
    M MasterSharp

    How do I publish an XNA project? I want to be able to send it in an eMail.

    - I love D-flat! - Need. More. Code.

    modified on Saturday, April 5, 2008 6:29 PM

    C# question

  • XNA Publish [modified]
    M MasterSharp

    How do I publish / distribute either on a CD or for an eMail an XNA Windows game? I've tried things but they don't work... Like MSDN. I DO know that you can't use the regualr IDE options, but that's it. Please help.

    - I love D-flat! - Need. More. Code.

    modified on Thursday, April 3, 2008 8:58 PM

    C# question visual-studio game-dev help

  • More Collision (XNA)
    M MasterSharp

    OK: never mind; I figured it out, fianlly. Thanks for helping, though. The problem was that the Y value kept checking after a certain limit was supposed to be. I added 1 line and it was fixed.

    - I love D-flat! - Need. More. Code.

    modified on Monday, March 17, 2008 7:07 PM

    C# help algorithms question

  • More Collision (XNA)
    M MasterSharp

    I have this code so far on checking collision. It doesn't quite work. if (Velocity.Y > 0) { for (int n = 0; n < 25; ++n) { if (Position.Y + Sprite.Height > grassTopBlock[n].Position.Y && Position.Y < grassTopBlock[n].Position.Y + grassTopBlock[n].Sprite.Height) { if (Position.X + Sprite.Width > grassTopBlock[n].Position.X && Position.X < grassTopBlock[n].Position.X + grassTopBlock[n].Sprite.Width) { Position.Y = grassTopBlock[n].Position.Y - Sprite.Height; } } } } /// FIX ME! ( i wrote his for myself before I got off last night) if (Velocity.X < 0) { for (int n = 0; n < 25; ++n) { if (Position.Y + Sprite.Height > grassTopBlock[n].Position.Y && Position.Y < grassTopBlock[n].Position.Y + grassTopBlock[n].Sprite.Height) { if (Position.X < grassTopBlock[n].Position.X + grassTopBlock[n].Sprite.Width && Position.X + Sprite.Width > grassTopBlock[n].Position.X + grassTopBlock[n].Sprite.Width) { Position.X = grassTopBlock[n].Position.X + grassTopBlock[n].Sprite.Width; } } } } What the problem is, I can never tell if the second statement acts, because every time I try, the sprite moves to the top of the grassTopBlock. Can anyone post (or help?) with some collision algorithm for 2D sprites? thanks

    - I love D-flat! - Need. More. Code.

    C# help algorithms question

  • 2D Platformer (XNA)
    M MasterSharp

    XNA just adds certain specific things easier for beginners. (Game loop, draw loop, simpler things) It could help, and I might have seen it a long time ago... so maybe not... Btw: I switched the design to tiles.... I've almost got it but ONE part doesn't work. What exactly is the algorithm for collision. I set it up to find if the velocity.X / Y is smaller / bigger (based on input) and from there updated certain parts for positions, but it doesn't seem to work right. (The player ends up on top of the platform as they fall....)

    - I love D-flat! - Need. More. Code.

    modified on Sunday, March 16, 2008 11:39 PM

    C# game-dev help design tutorial

  • 2D Platformer (XNA)
    M MasterSharp

    I don't know how to make collisions work for a game I'm currently making. I have an image (800 / 600) and a person. I'm not going to make any tile classes for the level (at least yet...), but I can't seem to get the person to 'work' with this. They fall through places and such, and sometimes when there's cliff, move straight to the top of it when moved that direction. I have a physics engine I could utilize, but I heard it isn't great for platformers. (To help understand my issue, I want something along the lines of the game "Braid") If anyone could give *** *** *** ANY *** *** *** insight or help, please do. Even if it's a different design idea (such as tiles). (And please don't bring XNA's Torque level building whatever into this) I hope I explained my issue well, but if there are any questions about the dilemma, please ask. PLEASE help if you can. Thanks many in advance.

    - I love D-flat! - Need. More. Code.

    C# game-dev help design tutorial

  • Clean Recently Used Projects
    M MasterSharp

    Well; I just got it. I messed the name up, and it let me remove. Thanks for the help, even though it's STILL over my head.

    - I love D-flat! - Need. More. Code.

    C# help

  • Clean Recently Used Projects
    M MasterSharp

    I just erased everything under it's file, and I try to open it and it STILL lets me open it, but it's unavailable. How do I get rid of it? Step by step instructions, please? THanks for your help, though.

    - I love D-flat! - Need. More. Code.

    C# help

  • Clean Recently Used Projects
    M MasterSharp

    Can you explain regedit? (I'm sorry, I'm still a beginner... Haven't done too much for a long time for real, anyway... And I've never really messed around with internal C# stuff) Where can it be found?

    - I love D-flat! - Need. More. Code.

    C# help

  • Clean Recently Used Projects
    M MasterSharp

    This project isn't in the "Projects" folder. And I can't open (not that I want to) the one I can;t get rid of. How long does a project usually stay in the list?

    - I love D-flat! - Need. More. Code.

    C# help

  • Clean Recently Used Projects
    M MasterSharp

    Thanks! Will this work for 05'? (Visual C# 2005 Express) Also, where do I enter this path in? My documents seems epty for this...

    - I love D-flat! - Need. More. Code.

    C# help

  • Clean Recently Used Projects
    M MasterSharp

    Is there a way to clean the recently used projects list. If so, please explain. It kind of irritates me to have hem on there, as in when I try a downloaded sample, they never work and end up on the list. I know you can just wait it out, but I want the list clean, so help would be appreciated. Thanks.

    - I love D-flat! - Need. More. Code.

    C# help

  • Collision Help (XNA) : Please Help!
    M MasterSharp

    OK, thanks, Luc!

    - I love D-flat! - Need. More. Code.

    C# csharp graphics game-dev performance help

  • Collision Help (XNA) : Please Help!
    M MasterSharp

    Does GDI and such apply fo XNA? And thank you for your reply, even if I have some trouble with it. Another Possible Way?: Is there a way to check collisions with all of the StaticBlocks with a for loop with good performance results? I tried something like this, but the framerate dipped to around 10...

    - I love D-flat! - Need. More. Code.

    C# csharp graphics game-dev performance help

  • Collision Help (XNA) : Please Help!
    M MasterSharp

    #region Using using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Net; using Microsoft.Xna.Framework.Storage; #endregion namespace Bouncer { #region Bouncer Game : Main public class BouncerGame : Microsoft.Xna.Framework.Game { #region Variables GraphicsDeviceManager Graphics; SpriteBatch SpriteBatch; SpriteFont SpriteFont; Player Player; StaticBlock[] StaticBlock = new StaticBlock[200]; int Stage = 1; enum GameState { Title, Game, StageSelect, Help } GameState State = new GameState(); #endregion #region Performance Variables int FPS, FrameCounter; TimeSpan ElapsedTime = TimeSpan.Zero; #endregion #region Initialization public BouncerGame() { Graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; } protected override void Initialize() { IsFixedTimeStep = false; InitializePlayer(); InitializeStaticBlock(); base.Initialize(); } private void InitializePlayer() { Player = new Player(); } private void InitializeStaticBlock() { for (int numberOfStaticBlocks = 0; numberOfStaticBlocks < 200; ++numberOfStaticBlocks) { StaticBlock[numberOfStaticBlocks] = new StaticBlock(); } } #endregion #region Load protected override void LoadContent() { SpriteBatch = new SpriteBatch (GraphicsDevice); SpriteFont = Content.Load<SpriteFont> ("Trebuchet MS"); Player.Texture_Player = Content.Load<Texture2D> ("BouncerSprite_Bouncer"); for (int numberOfStaticBlocks = 0; numberOfStaticBlocks < 200; ++numberOfStaticBlocks) { StaticBlock[numberOfStaticBlocks].Texture_StaticBlock = Content.Load<Texture2D> ("BouncerSprite_StaticBlock");

    C# csharp graphics game-dev performance help

  • Class Tips [modified]
    M MasterSharp

    I see...

    - I love D-flat! - Need. More. Code.

    C# game-dev question

  • Class Tips [modified]
    M MasterSharp

    Oh sorry, XNA.

    - I love D-flat! - Need. More. Code.

    C# game-dev question

  • Class Tips [modified]
    M MasterSharp

    I'm currently making a game (as always) and can't seem to make a Projectile class work right. Can someone just explain the concept of it. I really just don't understand how you get a sprite from the class. (?)

    - I love D-flat! - Need. More. Code.

    modified on Saturday, February 23, 2008 5:26 PM

    C# game-dev question

  • (XNA) Calculate FPS [modified] Please?
    M MasterSharp

    How do I calculate the FPS of an app? I've looked to some articles and what I find always gets me an "Infinite" FPS. EVEN with nearly 50 sprites and I know it's not infinite. Thanks in advance.

    - I love D-flat!

    modified on Friday, February 22, 2008 8:09 PM

    C# question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups