serialize() vs json_encode()

Posted on 04.05.2015 21:05:09 in PHP, Webcoding 0 Comments

Some of you might know the problem: You have to store a dynamic array of values in your database. But what’s the fastest solution on the php side? What’s better for the database? Any more pros and cons? I did a bit of testing and came to conclusion that json is the way to go, if you have to store an array as value to your database.

More →

Creating a basic Isometric Map

Posted on 04.05.2015 20:59:41 in Browsergames, General, JavaScript, Webcoding 0 Comments

Today I would like to show you how to make a very basic isometric game map. It’s not really optimized and there are still plenty of things to do. But well, it’s a good start I think.

More →

Basic Pixel Related Object Selection

Posted on 04.05.2015 20:52:44 in Browsergames, github, Goodies, JavaScript, Webcoding 0 Comments

UPDATE

This plugin is out of date. The new demo can be found here: DEMO

In my last tutorial I talked about how the isometric map could be enhanced, for example by using canvas as a tool to determinate the real position of an object and not the whole image including transparency. In this small article I would like to introduce this technique. I got inspired by Dextrose AG and their fabulous upcoming AVES Engine. I’m sure their approach is much more efficient and functional. But mine should give you a good point to start.

More →

Basic XSS and session security

Posted on 04.05.2015 20:41:53 in General, Goodies, PHP, Webcoding 0 Comments

Many of the websites on the internet are still totally easy to attack using Cross-Side-Scripting (XSS) and of using the sessions of other users. This is a very bad thing, especially sinse both are very easy to prevent, at least you can make it much harder for them with just a few lines of code. It’s still far away from perfect, but with this you provide a solid base security.

More →