Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - AF2013

Pages: [1]
1
DotNet / Re: C# Documents and Tutorials SFML?
« on: March 07, 2014, 04:22:46 pm »
Can you please give me example of source example display image on screen for C# SMFL because for simple reason, I try to do in C# even thought there is lack of Documents for C# SMFL ! I dont want to learn C++ SMFL because I prefer C# better!

cheers

2
DotNet / Re: C# Documents and Tutorials SFML?
« on: March 07, 2014, 11:00:57 am »
That is shame because C# is easier than C++ as you can tell the different in coding wise!

3
DotNet / C# Documents and Tutorials SFML?
« on: March 06, 2014, 11:27:35 pm »
Hello Everyone,

I just download Visual Studio 2012 then SFML and to my surprise, I dont have messed about putting include files and Lib files folder like VS 2010 !! I just create a Project and I saw SFML then It installed and everythings done for me!

I am very happy when I just click run button to see what it does and it render Window with background Colours!

Now I want to know where I can learn C# SFML Documents and tutorials to help me speed up my programming :)

cheers

P.S. I hope I put in the right post in here as I need know where the C# SFML Documents and tutorials is :)

4
General / Window Applications?
« on: July 02, 2013, 12:46:06 am »
Hello everyone :)

I just starting doing SFML but I got stuck because I want window application instead of having console window that keep coming up every time I run the program

I get the error saying

WinMain must return a value

I am using Visual Studio express 2012

the code does work in Console Window but when I went to Project > SFML 2.0 Properties > Linker > System > Subsystem and I changed Console (/SUBSYSTEM:CONSOLE) TO Windows(/SUBSYSTEM:WINDOWS)

The code that I learn are blow

#include <SFML/Graphics.hpp>
#include <iostream>
#include <stdlib.h>
#include <ctime>

 
int main()
{

sf::RenderWindow Window(sf::VideoMode(800,600,32),"First SFML Game");

sf::Texture ptexture;
sf::Sprite playerImage;

if(!ptexture.loadFromFile("background.png"))
   std::cout << "Error could not load player image"<< std::endl;

playerImage.setTexture(ptexture);

sf::Vector2u Size(400,400);

Window.setSize(sf::Vector2u(400,400));
Window.setTitle("Coding Made Easy");
Window.setPosition(sf::Vector2i(200,100));


   while(Window.isOpen())
   {
      sf::Event Event;
       while(Window.pollEvent(Event))
   {
      if(Event.type==sf::Event::Closed)
         Window.close();
   }
    Window.clear(sf::Color(0, 255, 255));
   Window.draw(playerImage);
   Window.display();
}

}

Second Questions that does bugged me lots.....if you going start new applications and why does I have keep setting SFML every time i start my VS Express 2012.........Surely that Once I have setup SFML then it should stay there on every time i open the VS Express 2012 and do you know what I mean?

P.S. I just bought SFML Game Development book now on my Ipad :)


Pages: [1]
anything