Be a Supporter!
Response to: C# or Java Posted June 24th, 2013 in Programming

C# is not used for apple dev!?!

Response to: Sooooooo Posted April 16th, 2013 in Programming

I'm interested... what is a TWEANN???

Response to: Good Starting Point To Programming Posted March 21st, 2013 in Programming

You wouldn't want to learn Java

Why no JAVA??????

Response to: Hey, new at programming Posted February 11th, 2013 in Programming

Hmm, that is weird, when I first started learning c# I went to various sources including theNewBoston. Although the dude who makes them is kind of a freak, I found them pretty helpful. But yeah I guess it is what ever works for you. I can see how the new boston could teach some bad concepts specifically with the c# videos regarding programming to the pre-made objects you can just drag into your window. I'd rather start learning the console programming. None the less, I thought it was a helpful source.

Response to: C# Xna Graphics Scaling Posted February 1st, 2013 in Programming

At 2/1/13 11:55 AM, doondeka wrote: Alrighty-ho. I have a problem, one that seems to be going on without much as an answer at all.
My desire is to make a 600x600 window with double-sized graphics.
What do I mean by that? Well, I mean it would sorta retro.
I want to attach Texture2D's that automatically scale up to their twice their normal scale without blurring
Anyway to go about that?

Hmmmmm well, For adjusting the screen height, I know there is plenty of ways to do this but I do this in the initialization method in the main class:

graphics.PreferredBackBufferWidth = width;
               graphics.PreferredBackBufferHeight = height;
               graphics.ApplyChanges();

As far as the double-sized graphics go... Well I know in the draw method when you do the spriteBatch.Draw("BLAH BLAH");
on of the overloaded methods calls for a float that would essentially be the scale at which you are drawing your textures on. Other than that I really don't know. I hope this was helpful :D

Response to: Hey, new at programming Posted February 1st, 2013 in Programming

Here!

Response to: Arraylist Collision Detection Xna Posted January 29th, 2013 in Programming

At 1/29/13 05:40 AM, deckheadtottie wrote: Please wrap your code in code tags.

Code goes here.

I will be sure to next time. :D On the other hand, I figured it out. I was creating a new rectangle every time it the update method was called in the Character class(the Character collides with the enemy). So I moved that line of code into the constructor and then in the update method just kept updating the position of the sprite.

Response to: Arraylist Collision Detection Xna Posted January 28th, 2013 in Programming

Here is my constructor for my Enemy class:

public Enemy(Texture2D texture, Vector2 location,ContentManager content)
{
this.texture = texture;
this.location = location;

randX = random.Next(-2, 2);
if (randX == 0)
randX++;
randy = random.Next(-2, 2);
if (randy == 0)
randy++;

border = new Rectangle((int)location.X, (int)location.Y, texture.Width, texture.Height);

}

And then here is the update method that is called and is constantly updating them:

public void update()
{

location.X += randX;
location.Y += randy;

//updates the texture width & height
border.Width = texture.Width;
border.Height = texture.Height;

//updates the location
border.X = (int)location.X;
border.Y = (int)location.Y;

checkBoundsX();
checkBoundsY();

}

Response to: Arraylist Collision Detection Xna Posted January 27th, 2013 in Programming

foreach (Enemy enemy in enemies)
{
if (me.getRectangle().Intersects(enemy.getRectangle()))
this.Exit();
}

Sorry, I should probably post the whole loop :D

Arraylist Collision Detection Xna Posted January 27th, 2013 in Programming

So I have this object and when it hits a "bullet"(That is part of a list) I want the game to exit. When I try to detect the collision of the objects by using the rectangle.intersects method the game will exit randomly and the collision is not apparent. Please help, here is my code:

if (me.getRectangle().Intersects(enemy.getRectangle()))
this.Exit();

I just want to know if this would work or not?

Response to: need help with basics of c# unity Posted January 10th, 2013 in Programming

Well do you know any programming languages? Because if you don't, you will find yourself struggling with jumping straight in to programming games. I had this same problem a while back and trust me, it is better to just start from scratch. If you do know the basic logic of programming or know another language similar to c# like java then, well I have never used unity but I suggest looking at the API or maybe start doing small tutorials.

Response to: How do i make games? Posted November 13th, 2012 in Programming

http://thenewboston.org/ this has A BUNCH OF TUTORIALS for programming!!!!

Response to: Fastest way to learn making games? Posted November 8th, 2012 in Programming

There is none :p. I was like you about 2 years ago and then I finally excepted the fact that if you want to make games, you have to learn how to program. That means go through all of the basic's and start small. Unless you use you do like GameMaker or any of those lame programs.

Response to: Simple game I made in Javascript Posted November 7th, 2012 in Programming

This game is exactly like the pixel game on the iPhone.

Response to: 2d lighting for xna? Posted October 18th, 2012 in Programming

Oh, alright yeah I will check it out

Response to: 2d lighting for xna? Posted October 18th, 2012 in Programming

At 10/17/12 08:39 PM, polym wrote: You could try bloom if you only want things to sparkle and glow.

Thanks for the response but what is bloom? Is it like a separate program or is it built into the xna libraries?

2d lighting for xna? Posted October 17th, 2012 in Programming

I was just wondering if anyone know how to make a 2d lighting effect in xna. What I mean by this is if you can make like a small white ball or something like that and then have it illuminate a color in a specific radius. This is kind of the best way I can explain it but basically I have a space background and I want to set some different lighting effects throughout it giving it a very colorful feel to it.

Response to: Shooting bullets C# Posted October 15th, 2012 in Programming

WOW!!!! I am incredibly stupid... I had two shoot methods :( one that did not have any parameters and that one was being called instead of the one that I was supposed to call. I FELL SO STUPID RIGHT NOW!! I literally posted the previous topic and five minutes later I am going through my code for about the thousandth type and I am scrolling down and I see an empty shoot method... so sorry ha

Shooting bullets C# Posted October 15th, 2012 in Programming

Alright so currently I am in the process of making a space shooter type game and I need help making the sprite actually shoot. So I have the concept of the bullet increasing velocity in the direction the ship is facing and also the keyboard.getState(keys.space)... and all of that. I think the real problem that I am having is drawing it to the screen because even when I get no errors, the bullet is not drawn on the screen. So I have a bullet class and it's constructor only takes a texture passed through it. The other method that I have in this class is a draw method and what it draws is the texture, position,a null for the rectangle, the color, the angle which is 0f, the origin, the sprite effects, and then 0. So these methods are being called from a ship class. All of those variables are initialized in the ship class accordingly.(Or I hope so :) anyway so that ship class is being called from the main game1 class. So the problem I think I am having is spawning a new bullet each time the space bar is hit on the origin of the sprite. I am sorry if this post is very confusing but I would be happy to post code if that is necessary but I was wondering if I even have the right logic. So any advice would be helpful sorry about the extremely confusing post.
-thanks

Response to: Use my music! Posted October 13th, 2012 in Collaboration

I like these I would like to use the desert one for a space shooter I agree that they are short but they loop well!

C# directional moving Posted July 1st, 2012 in Programming

Hi, so I was just wondering how I would be able to find the direction that my sprite is facing? The reason I would be trying to do this is so I can make him eventually move in the direction that he is facing. So if anyone can help me I would really appreciate it.


Hi, I am trying to rotate a sprite that is on a sprite sheet. I am rotating it by using the arrow keys and it works fine except it is rotating the whole sheet rather than the set Height and Width that I specified. I am Just wondering what I am doing wrong and how I should fix it so that the the specified sprite on the sheet will rotate rather than the whole sheet. Well Here is my Ship Class that has all the rotation stuff in it I have been playing around with it and changing different things and I still cannot find the solution.

class Ship: Sprite
{
const string AssetName = "BlueShip";
const int StartPositionX = 250;
const int StartPositionY = 250;
const int SPEED = 40;

public Vector2 sOrigin;
Rectangle spriteRectangle;

enum State
{
Flying,
}

State mCurrentState = State.Flying;

KeyboardState mPreviousKeyboardState;

ContentManager mContentManager;

public void LoadContent(ContentManager theContentManager)
{
mContentManager = theContentManager;

Position = new Vector2(StartPositionX, StartPositionY);
base.LoadContent(theContentManager, AssetName);
Source = new Rectangle(0, 0, 100, Source.Height);
}

public void Update(GameTime theGametime)
{
KeyboardState aCurrentKeyBoardState = Keyboard.GetState();

UpdateRotation();

mPreviousKeyboardState = aCurrentKeyBoardState;
base.update(theGametime, mSpeed, mDirection);
}

private void UpdateRotation()
{
spriteRectangle = new Rectangle((int)Position.X, (int)Position.Y, Source.Width, Source.Height);
sOrigin = new Vector2(Source.Width / 2, Source.Height / 2);
theRotation();
}

private void theRotation()
{
if (Keyboard.GetState().IsKeyDown(Keys.Right)) rotation++;
if (Keyboard.GetState().IsKeyDown(Keys.Left)) rotation--;
}

public override void Draw(SpriteBatch theSpriteBatch)
{

base.Draw(theSpriteBatch);
}
}

Animation software Posted April 6th, 2012 in Animation

Alright so I want to get some animation software but Flash is too expensive and I just don't really like toon boom that much. Is there any other good animation software out there? And also would it be worth it just to get an older version of flash like flash mx or cs4 or something I don't really know? Please let me know if you know of one.

Response to: NeedSomeInfo Posted February 26th, 2012 in Programming

At 4 hours ago, Berklis wrote: Hello guys, I'm currently studyin IT. And i need prepar english presentation on "Graphics and design", do I would like to ask for some help. Can some1 put some links to web sites where I could read more about it? I would appreciate yuo help. Thanks in advance.

this is the programming forum

Scaling sprites and stuff Posted February 16th, 2012 in Programming

Hi, sorry that I have been posting so much. I was just wondering how to scale a sprite easily. I looked on the internet and well, I find some resources but they are not very explanatory. I was just wondering because I have a sprite on the screen that is just giant and I want to shrink him quite a bit. So I don't even know if would be scaling, just making him smaller through code.
-thanks
(Sorry for posting like every other day I will definitely try to not post so much)

Response to: C# moving sprite and Animation Posted February 16th, 2012 in Programming

Thank you all this really helped a lot! I have decided that I am going to change the game I am developing so the character can only move on the X Axis though. But this has all helped me a ton!

C# moving sprite and Animation Posted February 14th, 2012 in Programming

I was just wondering how I would be able to add animation of a run or walk cycle when a sprite moves. Do I need to have like sprite sheets or can I just use like animated file or something like that. And also I was wondering where I could find some good tutorials about making a sprite move with arrow keys. I have a basic up down left right movement but I cannot make my sprite go diagonal.
-thanks

Response to: Le Java Posted February 9th, 2012 in Programming

I hate JCreator too! but I have to use it for my school but yeah netbeans is awesome!!!

basic ai logic tictactoe Posted February 9th, 2012 in Programming

Hi, so I am having trouble with logic for a tic tac toe game. Well I have the basic pvp logic and stuff but I am having trouble with the logic for playing against the computer. Here is what I have so far(logistics not code):

if(player moves here)
then a random number is generated
if(num = 1)&&(space isn't filled)
a space = O
if(num = 2)&&(space isn't filled)
a space = O
if(num = 3)&&(space isn't filled)
a space = O

I am more worried about the logic than the code right now. The flaws with this is what if all of the spaces are already filled? I mean I am kind kind of a beginner so I am still learning how to solve logical problems like this and I am sure there is a lot more things to take in consideration. I am sorry if this logical breakdown is hard to read but on a side note if anyone knows any better ways of planning programming logic I would really appreciate if you could share them with me. (I am familiar with flow charts but I don't have visio and they are kind of a pain to draw).
-Thanks

Response to: Generate Random Number C# Posted February 7th, 2012 in Programming

Thanks for all the comments, yeah like right after I posted this I felt pretty stupid knowing that I could just google it because it is actually really simple but thanks anyway!