Jump to content

  • Log In with Google      Sign In   
  • Create Account

curator785

Member Since 06 Jul 2013
Offline Last Active Jan 26 2016 12:50 PM

Topics I've Started

Online Video Game Indie Development Studio

04 September 2015 - 09:59 AM

Thou Curator is a hobbyist game development studio looking for volunteers to join us on our multi-platform 3rd arcade military style game.

If you have ANY of the following skills or a desire to learning

    Artist Talent on Paper or Digital
    Creative Thinking for Designing
    Music & Sound Effect
    Knowledge in C# Programming
    Ability to Write in Comic Book Style
    Familiar with Modeling 3D
    Interests in Game Creation
    Team Work
    Communication Skills via Facebook & Our Email System

And wish to be a part of a productive team come join us by clicking http://www.thoucurator.com/join

If you have any questions please message us on our Facebook account at https://www.facebook.com/ThouCurator

Our current project is The Last Stand you can review what this game is about that we are developing by the link below.

http://www.thoucurator.com/projects?id=1

And finally if you are just wanting to follow our group and be updated on the progress and release of the game.  Well we got you covered too by following us you will get a newsletter every month.  The link to that is also below.

http://www.thoucurator.com/follow


Hobbyist Game Development Online

27 February 2014 - 01:59 PM

Thou Curator is a game development studio looking for hobbyists to help create games using 3ds Max, Adobe Photoshop, C#.NET and similar tools. If you have an interest in game creation and want to be a part of a productive team come join us by visiting our website [DELETED]

C# Loop with threading

10 July 2013 - 08:05 PM

I have been researching game loops and thread.  I post my code below to accomplish this.  Does this look correct to anyone or have a better solution for multithreading a game loop?


// Loop
using System;

namespace Client.Plateform.Window.Lifetime
{
    public class Loop : Client.Plateform.Window.OperatingSystem.Threads
    {
        /// <summary>
        ///
        /// </summary>
        private static bool _IsExit = false;

        /// <summary>
        ///
        /// </summary>
        public static bool IsExit
        {
            get
            {
                return _IsExit;
            }
            set
            {
                _IsExit = value;
            }
        }

        /// <summary>
        ///
        /// </summary>
        public Loop()
        {
        }

        /// <summary>
        ///
        /// </summary>
        public void Excute()
        {
            base.RenderThread.Start();
            base.LogicThread.Start();
            base.ResourceThread.Start();
            base.SoundThread.Start();
        }
    }
}
// Thread
using System;
using System.Threading;

namespace Client.Plateform.Window.OperatingSystem
{
    public class Threads
    {
        #region Global Var

        private ThreadStart _RenderThreadStart = null;
        private Thread _RenderThread = null;

        private ThreadStart _SoundThreadStart = null;
        private Thread _SoundThread = null;

        private ThreadStart _ResourceThreadStart = null;
        private Thread _ResourceThread = null;

        private ThreadStart _LogicThreadStart = null;
        private Thread _LogicThread = null;

        #endregion

        #region Accessors

        /// <summary>
        /// asdfadsf
        /// </summary>
        public Thread RenderThread
        {
            get
            {
                return _RenderThread;
            }
        }

        /// <summary>
        /// asdfadsf
        /// </summary>
        public Thread SoundThread
        {
            get
            {
                return _SoundThread;
            }
        }

        /// <summary>
        /// asdfadsf
        /// </summary>
        public Thread ResourceThread
        {
            get
            {
                return _ResourceThread;
            }
        }

        /// <summary>
        /// asdfadsf
        /// </summary>
        public Thread LogicThread
        {
            get
            {
                return _LogicThread;
            }
        }

        #endregion

        #region Constructor

        /// <summary>
        ///
        /// </summary>
        public Threads()
        {
            _RenderThreadStart = new ThreadStart(() => RenderMethod());
            _RenderThread = new Thread(_RenderThreadStart);

            _SoundThreadStart = new ThreadStart(() => SoundMethod());
            _SoundThread = new Thread(_SoundThreadStart);

            _ResourceThreadStart = new ThreadStart(() => ResourceMethod());
            _ResourceThread = new Thread(_ResourceThreadStart);

            _LogicThreadStart = new ThreadStart(() => LogicMethod());
            _LogicThread = new Thread(_LogicThreadStart);
        }

        #endregion

        #region Method

        /// <summary>
        ///
        /// </summary>
        private void RenderMethod()
        {
            while (!Plateform.Window.Lifetime.Loop.IsExit)
            {
                Console.WriteLine("Render Method");
                Thread.Sleep(3000);
            }
        }

        /// <summary>
        ///
        /// </summary>
        private void SoundMethod()
        {
            while (!Plateform.Window.Lifetime.Loop.IsExit)
            {
                Console.WriteLine("Sound Method");
                Thread.Sleep(8000);
            }
        }

        /// <summary>
        ///
        /// </summary>
        private void ResourceMethod()
        {
            while (!Plateform.Window.Lifetime.Loop.IsExit)
            {
                Console.WriteLine("Resource Method");
                Thread.Sleep(6000);
            }
        }

        /// <summary>
        ///
        /// </summary>
        private void LogicMethod()
        {
            while (!Plateform.Window.Lifetime.Loop.IsExit)
            {
                Console.WriteLine("Logic Method");
                Thread.Sleep(13000);
            }
        }

        #endregion
    }
}


PARTNERS