XNA Creators Club Online
foros de la comunidad

Search Forums

Page 1 of 5 (42 items) 1 2 3 4 5 Next >
  • Re: General Question/s

    Just to help ya out from 'if' hell, you might want to look into a loop through characters. For example I know in VB, kinda new to C#, there is a chr(#) function that when you pass in a number from x-y returns the character. Like chr(65) is A, 66 = B etc. I'm 100% sure there is a way to get this done in C# just not sure atm and I'm ...
    Posted to Game Design (Forum) by Slickman on 05/09/2008
  • Re: Class vs. Method

    Let's also not forget the loss of polymorphism. Encapsulation is only one aspect of a class, but I feel polymorphism is a more powerful reason to use classes. I have never programmed any game without heavy use of polymorphism. Game code would look pretty ugly if you just used the Game1 class and just made methods for everything. My mind does ...
    Posted to Game Algorithms (Forum) by Slickman on 05/09/2008
  • Re: Designing a Game

    If you just got done learning XNA you should know how to draw an image on the screen. Use a paint program to make your image. Save it as bmp, jpg, or png. Add your image to the Content folder. In the LoadContent() method call Content.Load<Texture2D>("namewithoutextension"); Then in the Draw() method call spriteBatch.Begin(); ...
    Posted to Game Design (Forum) by Slickman on 03/09/2008
  • Re: Need Help :: I want to build a card deck of non-standard cards stature.

    Actually by doing               BuildDeck deck = new BuildDeck();             deck.BuildTileDeck(0);             deck.tileDeck[20]();   I was able to get it to ...
    Posted to Game Algorithms (Forum) by Slickman on 03/09/2008
  • Re: Need Help :: I want to build a card deck of non-standard cards stature.

    You have Tiles floorTiles = new Tiles(); declared in BuildDeck(). As soon as BuildDeck is complete floorTiles is destroyed since it's a local variable. I'm guessing that means the methods you pointed to are also not valid. Try declaring floorTiles in the class, and create it in the BuildDeck() and see if that helps.
    Posted to Game Algorithms (Forum) by Slickman on 03/09/2008
  • GUI Button behavior

    I'm having a hard time thinking of how to get the exact button behavior I'm after. I have a GUIManager that tracks all input and dispatches all messages for controls. So basically the Update method of this GUIManager loops through all forms, and all controls on that form and checks if the mouse location is in any control rectangle. If it ...
    Posted to Game Design (Forum) by Slickman on 29/08/2008
  • Re: Tile based RPG movement

    I did this and use vector movement. Basically I predefined 8 vectors that represent the 8 directions I want to allow movement. North, South, East, West, NorthWest, NorthEast, SouthEast, SouthWest. I then normalize those vectors once. I created an enum of each direction, then name a variable for my actors of that enum. Then I made code to rotate ...
    Posted to Game Design (Forum) by Slickman on 28/08/2008
  • GUI event design

    How events are fired in creating a gui has always been something that throws me for a loop when I set out to design my own gui.  I always come back to the same design and always never find a way to make it work/look elegant.  Here is how my mind works when thinking about how events should work and the gui design.   You have ...
    Posted to Game Design (Forum) by Slickman on 28/08/2008
  • Re: Shapes ... other than a rectangle

    I remember this being a pain when I was working with isometric view. I broke my diamond tile shape into 2 triangles and did a which side of the lines was my mouse pointer for each triangles.
    Posted to Game Design (Forum) by Slickman on 23/08/2008
  • Re: Key hold down help

    Also a good thing to get into I find with key and mouse input is to store 2 variables for both states. A current state variable and a previous state variable. Then you can check if the current state is down && previous state is up. That means it will only ever go into what you want it to do once. So if you hold down the Enter key in your ...
    Posted to Game Design (Forum) by Slickman on 23/08/2008
Page 1 of 5 (42 items) 1 2 3 4 5 Next >