oyyou's Profile User Rating: -----

Reputation: 27 Craftsman
Group:
Active Members
Active Posts:
184 (0.12 per day)
Joined:
26-April 10
Profile Views:
4,664
Last Active:
User is offline Jul 02 2014 01:15 AM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0
Icon   oyyou has not set their status

Posts I've Made

  1. In Topic: Chat Database (Friends)

    Posted 20 Jun 2014

    Funnily enough, almost as soon as I started this, I made my "UserFriends" class
      public class UserFriends
      {
        public int ID { get; set; }
        public int UserID { get; set; }
        public int FriendID { get; set; }
    
        public virtual User Friend { get; set; }
      }
    
    


    I feel like I'm cheating with the below code. This is called whenever a user logs in. It appears to work, but in my mind it seems a bit.. crude
    dbUser.Friends = db.UserFriends.Where(c => c.UserID == dbUser.ID).Select(c => c.Friend).ToList();
    
    
  2. In Topic: Winforms controls in XNA

    Posted 31 Dec 2013

    View PostRhino1111, on 30 December 2013 - 11:17 AM, said:

    So far I have a lot of basic controls done, buttons, check boxes, labels, etc. The textbox has given me a little bit of trouble, but I think I'm finally on the right track to having something near identical in feel to the windows forms one. automatic text scrolling, clipping, selecting, copy/paste, carrot position indicator, etc.


    I have been trying to do this myself for so long now. I've found that it's good to go on the MSDN website and try to copy the layout from WinForms and WPF.
    But like you've said, the TextBox is trouble (I've had nightmares about it, no joke).

    If you like, we could do a bit of code sharing to try and help each other out a bit. At the minute I'm trying to make a stable Base Class. Something all my controls can inherit and use.
  3. In Topic: Game Sectors

    Posted 24 Oct 2013

    Okay okay.

    I have a player class. With the property "Position", which is a Vector2.
    I change the position with but using Velocity. Which is also a Vector2
    Position += Velocity
    


    The also has a rectangle, which is used for the collision detection (Which isn't implemented, yet) and drawing the player on the screen
    spriteBatch.Draw(texture, rectangle, Color.White);
    


    And that's just about it. Change velocity with keyboard input. (I actually have rotation implemented, but that makes no diff).

    So my question is, how do I make my position so that it is always relative to the sector?
  4. In Topic: Game Sectors

    Posted 24 Oct 2013

    So I never want Position.X to be more than 10000. But sector[0, 1].Position.X will be 10001. So when I go into sector[0, 1], I will want the players position to reset back to 0.

    Does that make sense?
  5. In Topic: Peer2Peer

    Posted 3 Oct 2013

    View PostSkydiver, on 03 October 2013 - 05:32 AM, said:

    What happens if Dns.GetHostEntry() only returns one item in the AddressList array?

    Good call. I guess it would crash.
    But that's not a concern at the minute. I'm still trying to figure out how all this junk works.

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Programming Languages:
C#, C++, Java

Contact Information

E-mail:
Click here to e-mail me

Friends

Comments

Page 1 of 1
  1. Photo

    Shinobi411 Icon

    23 Feb 2013 - 19:52
    Hey, I just saw your post about looking for a project. I might have just the thing but are you looking to deal with strictly xna? My team and I are currently working between Unity and Indielib. If you'd like some more information feel free to email us at Ondayo.Studios@me.com That way we will be able to discuss in further detail if you are up to helping us out. We would greatly appreciate ...
Page 1 of 1