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.


Topics - TheYoungGeek43

Pages: [1]
1
DotNet / Input detect once
« on: August 26, 2018, 09:38:41 am »
Hello

I've problem my problem is I want when player pressed the left button of mouse my game detect one clic not 3600 clic

Thanks for your help ;)

2
DotNet / Error first project
« on: August 24, 2018, 06:51:27 pm »
Hello,
I begin use SFML with C# and I've see a youtube video for display window but I have a error
(I use Rider)

This is the error

Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'sfmlnet-graphics-2, Versio
n=2.2.0.0, Culture=neutral, PublicKeyToken=null'. Tentative de chargement d'un programme de format incorrect.
   at French_Master_Game_Jam_1.Program.Main(String[] args)



 

MyCode
Program.cs
using System;

namespace FrenchMasterGameJam1
{
    class Program
    {
        static void Main(string[] args)
        {
            RPG game = new RPG();
            game.Run();
        }
    }
}

Game.cs

using SFML.Graphics;
using SFML.Window;

namespace FrenchMasterGameJam1
{
    public abstract class Game
    {
        protected RenderWindow window;
        protected Color clearColor;
       
        public Game(uint width, uint height, string title, Color clearColor)
        {
            this.window = new RenderWindow(new VideoMode(width, height), title, Styles.Close);
            this.clearColor = clearColor;
        }

        public void Run()
        {
            LoadContent();
            Initialize();
            while (this.window.IsOpen)
            {
                this.window.DispatchEvents();
                Update();
                this.window.Clear(clearColor);
                Render();
                this.window.Display();
            }
        }

        protected abstract void LoadContent();
        protected abstract void Initialize();

        protected abstract void Update();
        protected abstract void Render();
    }
}
 

Main.cs

using SFML.Graphics;

namespace FrenchMasterGameJam1
{
    public class RPG : Game
    {
        public RPG() : base(600, 800, "Test", Color.Blue)
        {
           
        }

       
        protected override void Initialize()
        {
        }
       
        protected override void LoadContent()
        {
        }

        protected override void Update()
        {
        }

        protected override void Render()
        {
        }
    }
}
 

I have look all dll (SFML) is copied in the debug directory

Thanks for help

3
Java / Collision
« on: August 03, 2014, 04:53:50 pm »
Hi,

I would like to know how to make games with a collision on JSFML

thank you to explain me with code


----------------------------------------------------------------------------------------------------------------------------------------------
I'm French

Pages: [1]
anything