• Content count

  • Joined

  • Last visited

Community Reputation

203 Neutral

About Zenix

  • Rank
  1. Hard to say what you're doing wrong without seeing the complete code.   I created a new XNA project, and added a triangle into the draw method and it displays fine.   My draw method looks like this:   [code]   protected override void Draw(GameTime gameTime)         {             GraphicsDevice.Clear(Color.CornflowerBlue);               var verts = new VertexPositionNormalTexture[3];               verts[0].Position = new Vector3(-0.5f, -0.5f, 0.0f);             verts[1].Position = new Vector3(0.0f, 0.5f, 0.0f);             verts[2].Position = new Vector3(0.5f, -0.5f, 0.0f);                 var be = new BasicEffect(_graphics.GraphicsDevice);               foreach (var pass in be.CurrentTechnique.Passes)             {                 pass.Apply();                   _graphics.GraphicsDevice.DrawUserPrimitives(PrimitiveType.TriangleList, verts, 0, 1);             }               // TODO: Add your drawing code here);               base.Draw(gameTime);         } [/code]    
  2. Help in random-number generator

    Look what's actually happening in your for loop. All it's doing is calling cout 10 times. You need to move the rand() call into there as well, so that it will also be called 10 times.
  3. A little outdated, but there's a post mortem on Gamasutra from the company that ported Resident Evil 2 from PSX to N64. It took 9 developers full time 12 months and $1,000,000. http://www.gamasutra.com/view/feature/3148/postmortem_angel_studios_.php
  4. Quake 2 railgun effect

    Just to clear up some confusion.. the screenshot the op posted is not from the original Quake2. It's from an engine mod that was made after the source code was released. Looks like it's the mod "Quake 2 Evolved". The source to both Q2 and Q2Evolved is freely available, so probably worth checking those out.
  5. ++ For style. The art / atmosphere are awesome. Didn't get far through it though, the game seemed to break if you fell down too deep a hole.
  6. The two words are synonymous..
  7. Whats wrong with this code?

    Perhaps if you posted a link to the exact tutorial you're trying to follow..
  8. Whats wrong with this code?

    Those are pretty straight forward errors.. The variables it mentions (fps, FRAMES_PER_SECOND, myDot etc.) are not defined anywhere. You must define them somewhere prior to usage, or, if these are SDL variables you're possibly missing an include file (include "sdl.h"). I'm gussing myDot is meant to be an instance of the class Dot, so it would require something like.. "Dot myDot;" Then you can use it.
  9. [C++] Small Math Problem with Camera's

    It should be.. 'm_CamzPos -= 1;' 'm_CamzPos += (-1)' is vaild, but why bother?
  10. Creating a menu system with XNA

    Might seem a strange idea, but you could try looking at the official site :) http://creators.xna.com/en-US/ There's a Game State Management example on there that you probably want to take a look at.
  11. problem with directx and it libraries

    In the Options dialog, you added the 3 directx directories (.., Include, Lib) all under the "Executable Files". Only the base directory should be under here, the others should be in the appropriate sections. So, under 'Show directories for', switch it to 'include files' (or whatever it is) and add, 'C:\Program Files\Microsoft...\Include' under there. Hope that was kind of clear...
  12. FPS movement

    I generally do two separate collision checks. One to let the player move from the scene, then a simple one to check if they're standing on the ground.
  13. Places in a horror game

    It's a little harder to make a bright open place scary though. Bright isn't too bad, because there's still plenty of places for creatures to hide. Though I guess if you had a big open space, with thousands of zombies coming towards you.. well I guess I'd be a little scared. Especially if you had fast movie enemies. Zombie's are often quite slow, which means it's a little harder for them to scare you from far off. But if the enemies were quick, it means they could 'jump out' at you from pretty far off.
  14. Game Object Interaction

    Why do you specifically need access to the derived class? Can't you just call your methods on the base call pointer?
  15. Xbox Games

    Anyone know how much an official dev kit does cost? Or a site where I can get this info. Is there even a fixed price?