Jump to content

  • Log In with Google      Sign In   
  • Create Account


Olaf Van Schlacht

Member Since 16 Dec 2011
Offline Last Active Today, 03:14 AM
-----

Topics I've Started

Modern C++ looking for information

07 May 2014 - 07:52 AM

Hey everyone,

 

after working for 5 years with Java in my current job and in my hobby projects I'm getting tired of writing all my stuff in this language.

I think the time has come to fulfill my dream and start diving deeper into the C universe.

 

First thing I want to try is to port one of my Java projects into a C++ project. What I am looking for is a guide for code styling, project structure and modern C++ usage.

 

I'm going to use Visual Studio 2013 and want to take a look at SDL or SFML for the start. Any good advice for a Java developer exploring the big world of C/C++ language?

 

I'd would be really grateful if someone can share his knowledge with me or post intresting links.

 

Best Regards

Olaf


Construct 2 experience?

31 March 2014 - 03:02 AM

Hey everyone,

 

for my next Project I want to step into HTML5 game development. I want to create a 2D game and came across Construct 2 which looks pretty neat.

 

-Cross Platform

-Simple editor

-Javascript SDK for custom additions.

 

For my game I also want to implement multiplayer functionality.

The requirment is, that two players should get matched and then duel against each other.

 

Anyone got experience using Construct 2 and maybe also created a multiplayer game with it?

I'd really like to hear some opinions.

 

Best Regards

Olaf


"MMO" What to store in database?

21 February 2013 - 05:06 AM

Hey everyone,

 

I recently started a project in my free time, which is about constructing a very very simple mmo 3-tier architecture (for a max player count of 100).

I came to the point where I have to decide what data can be stored in the backend (MySQL). Constantly storing a players position seems unefficient to me.

The same goes for item properties like damage, item level and other.

 

I wonder how this thing would be done by an expert. My idea was to store player data only if something happend (like level up) and save players position every 5 minutes or something.

 

For the item properties part, i thought of a construction, that the item data may be stored in the backend, but initialy loaded once the server starts up. So the item properties would be stored in the memory of the server. If I change something at runtime of an item, this item could be reloaded again.

 

I hope you understand what I am trying to do and maybe you can give me tips or links to some articles.

 

Best Regards

Olaf

 


Simple 2D Physics

28 January 2013 - 08:57 AM

Hey Everyone,

 

Im just playing around with Java and Slick2D and try to create a small Physics simulation.

At the moment I just want have a simple ball falling from the top of the screen to the bottom.

I want the ball to have some kind of rebound from the ground but I have no idea how I could accomplish that.

 

for the moment my Shape update and fall physics look like this (Which is a Cube at the moment).

 

private Rectangle shape;


private float x;
private float y;
private float friction;
private float velocity;
private float acceleration;


public Cube(int length) {
        this.length = length;
        this.x = 0;
        this.y = 0;
        this.friction = 0.8f;
        this.velocity = 0.0f;
        this.acceleration = 0.5f;
        this.shape = new Rectangle(this.x, this.y, this.length, this.length);
    }


public void setY(float y) {
        this.y = y;
        this.shape.setY(this.y);
    }


public void update(GameContainer gc, int delta) {
        if (this.shape.getMaxY() < gc.getHeight()) {
            this.velocity += this.acceleration * this.friction;
            this.setY(this.y + this.velocity);
        } else {
            this.velocity = 0.0f;
            this.setY(gc.getHeight() - this.length);
        }
    }

 

I could not find any good tutorials about physics on google so im trying to find some advices or hints here

 

Best Regards


Java: Complex file transfer

03 May 2012 - 06:01 AM

Hey Guys,

Im stuck at a little problem right now and I have no idea how to get it on.

My task is to copy Images via http to a different machine.

I already managed to crawl over the web directory structure and save the images to my local machine.

Now i am searching for a way to send the images to a unix file server.

Does anyone know how to do it?

Best Regards
Olaf

PARTNERS