Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Ghosrath

Member Since 25 Oct 2011
Offline Last Active Jun 13 2012 02:12 AM

Posts I've Made

In Topic: MVS + C# + XNA to iOs? is it possible?

15 March 2012 - 07:43 AM

sadly, no..

XNA is a framework that utilizes DirectX. DirectX is a true Microsoft product, so there are no DirectX API's on Mac OS or iOS.

You can port c++ with OpenGL though. Mac OS uses OpenGL and iOS uses a somewhat stripped down version of OpenGL.

In Topic: Unloading/Loading and Movement

13 March 2012 - 08:45 AM

I think you are helped a lot by following riemers tutorials on http://www.riemers.net

these will help you a lot in getting a solid XNA basis

In Topic: Player movement.

09 March 2012 - 11:44 AM

Sorry just to add when I run the application pressing any key makes my player disappear.

that probably means he is moving :) try setting the move amount to 5 or so...

In Topic: Text Wrapping C# Console Game

09 March 2012 - 11:42 AM

did some playing around and got this working, i know it is not the most elegant way, but it works. it's up to you to make it pretty :)


private string[] DoWordWrap(string input, SpriteFont f)
        {
            string[] words = input.Split(new char[] { ' ' });
            float strLen = f.MeasureString(input).X;
            string[] result = new string[(int)(strLen / Window.ClientBounds.Width) + 1];
            int count = 0;
            int currentLine = 0;
            float lineLen = 0;
            float wordLen = f.MeasureString(words[0]).X;
            while (count < words.Length)
            {
                while (lineLen < Window.ClientBounds.Width - wordLen && count < words.Length)
                {
                    result[currentLine] += words[count] + " ";
                    count++;
                    if (count < words.Length)
                    {
                        wordLen = f.MeasureString(words[count]).X;
                        lineLen = f.MeasureString(result[currentLine]).X;
                    }
                }
                lineLen = 0;
                result[currentLine] = result[currentLine].TrimEnd();
                currentLine++;
            }

            return result;
        }

In Topic: Recursive Methods

09 March 2012 - 11:10 AM

i watched the next episode of the tutorial. That will explain in detail what type of error you are gettting and how to solve it!

PARTNERS