Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding > Coding Tutorials
You last visited: Today at 21:25

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Sdl Gaming Template [Visual Studio Template]

Discussion on Sdl Gaming Template [Visual Studio Template] within the Coding Tutorials forum part of the General Coding category.

Reply
 
Old   #1
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Sdl Gaming Template [Visual Studio Template]

If you have problems with the sdl dll's just download them from their site.



For learning Sdl + Documentation:


I'll be doing a few tutorials when I got time.

Basically it's just a project template which you add to your Visual Studio.

Everything except for Sdl is created by me in this template, that means every class where you can see actual codes. The SdlDotNet.dll and Tao.Sdl.dll is the only assemblies I do not own.

Download:


How to install:

It includes wrappers for audio (Music + Sound), Eventhandling (Keyboard[up/down], Mouse[up/down/click/hover/move], Screen), Graphics (Collision check with both sprite/point, gameobjects/tiles), Settings for video and game read from xml, ScriptEngine for both C#/VB (Needs optimization tho.), Multithreading (Threads running with interval-actions, Thread-safety collections (ConcurrentDictionary) + random, Delayed actions and at last support for fullscreen/window with Windows Form support.

Screenshots:




Anyways enjoy!

#Edit there is a little bug with full screen and events. To make it work proper go to Events.SdlEvents.cs and replace LoadEvents() with:
Code:
  /// <summary>
  /// Loading all the sdl events.
  /// </summary>
  internal static void LoadEvents()
  {
    Begin();

    if (!Sdl.VideoCore.FullScreen)
    {
    Thread eventThread = new Thread(new ThreadStart(SdlDotNet.Core.Events.Run));
    eventThread.IsBackground = true;
    eventThread.Name = "SDL.NET";
    eventThread.Priority = ThreadPriority.Normal;
    eventThread.Start();
    }
    else
    {
    SdlDotNet.Core.Events.Run();
    }
  }
Also you can remove the while loop in Program.cs -> Main(), if you've done above.

#Edit ugh, why doesn't images work? LOL
Super Aids is offline  
Thanks
1 User
Old 12/09/2012, 18:55   #2


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,902
Received Thanks: 25,407
Arrow .NET Languages -> Coding Tutorials

#moved
MrSm!th is offline  
Old 12/09/2012, 19:07   #3
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Quote:
Originally Posted by MrSm!th View Post
#moved
Move it back... it's .NET and also it's not a tutorial, but a template for Visual Studio lol.
Super Aids is offline  
Thanks
3 Users
Old 04/25/2013, 22:00   #4
 
elite*gold: 0
Join Date: Mar 2007
Posts: 369
Received Thanks: 79
there is error still with the threads

The type initializer for 'SdlDotNet.Graphics.Video' threw an exception.

{"Unable to load DLL 'SDL.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}
becko713 is offline  
Old 05/15/2013, 13:28   #5
 
elite*gold: 0
Join Date: Jul 2011
Posts: 98
Received Thanks: 12
very nice.
tariqx111 is offline  
Old 06/28/2013, 00:23   #6
 
Syfox™'s Avatar
 
elite*gold: 40
Join Date: Jun 2013
Posts: 79
Received Thanks: 57
Nice, Tutorial (Y)
Syfox™ is offline  
Reply


Similar Threads Similar Threads
[Website template] Silkroad free template
12/27/2017 - SRO Guides & Templates - 35 Replies
Silkroad free template ver.1 is a free template designed by Zneeky, feel free to edit what you want to make it fit your usage. http://www.sroinfo.com/imghost/thumbs/ilkroadfr.j pg It contains a index.html, style.css and a folder with images and a psd for the header. Live demo: Silkroad free template ver.1 Download: Silkroad free template ver.1.rar - 3.4 MB -----------------------------------
[Website Template] Silkroad free template
01/16/2013 - SRO Guides & Templates - 4 Replies
Silkroad website free template Live demo :Click Here ! Download attachment .. :)
[Template]Homepage Template by CrystalPrime (Gold-Version)
09/21/2011 - Metin2 PServer Guides & Strategies - 46 Replies
#Done
WTB Pheonix PS12+ BoT Warrior template/non template
05/15/2011 - 9Dragons Trading - 9 Replies
I will pay by paypal. No nab scammers. pm me with details of what is on the char ie weopon relics etc. thnx
WTS Phoenix account ( bot war)template & non template
05/15/2011 - 9Dragons Trading - 0 Replies
Hi all... 1st account: I wts Phoenix template male bot warrior cs12.... got some items on it + on the same account ec11 bot hybrid male non template and on the same account template male shao hybrid ec12.... with the items in the bags u can make some money for them too.... lot of paszes some books and more... 2nd account: Phoenix Fc1 bot warrior female non template character.... got on it def set 400 cc dodge set + ck dodge set and again a lot of items.... Please offer me for...



All times are GMT +1. The time now is 21:26.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.