XNA and Windows Form

ok, this time I’ve focused my spare time on making Windows Forms and XNA cohesist. I’ve created a small example of how to do that and pushed everything on GitHub as the last time  , you can find the repository here. Basically you have to create everything by yourself, GraphicsDevice and...

1 minute read

Hexagonal Map Rendering

I’m still working on my Hexagonal Map Renderer in my spare time and I decided to create a project on GitHub to better keep track of the changes . Features so far: Hexagonal tiles Map culling Picking Pathfinding using A* Here’s the link: https://github.com/mizrael/hex-map I’ve used a couple of external resources...

1 minute read

Hexagons! Hexagons everywhere!

I feel bored. Sometimes I feel so bored that I start walking around as if I were on a tiled map. And sometimes I like to switch from rectangular to hex-shaped tiles 😀 I’ve started working on a hex-based map renderer, just because, as I said. I’m bored. Here’re the...

1 minute read

HttpContext.Current, I hate you.

What if you have some legacy code that you cannot refactor and that contains references to HttpContext.Current ? What if you are writing unit tests for your code and it has references to that legacy code? Option 1: refactor the calls to the legacy code with the proxy pattern and continue writing the...

1 minute read

Simple Membership Provider. Oh you!

{“The Role Manager feature has not been enabled.”} 1/2 hour. Took me half an hour to track down this. It all began with the ASP.NET MVC 4 template, with its shiny AccountController. “Why do I have to write all that auth code? Why can’t I use WebMatrix ? ” {“The...

1 minute read

Brand new start

A long time ago, I had the chance to read this post. At the time I thought it was a great idea (and I still do), but I was still too focused on learning the basic principles of Computer Graphics and all the math behind the scenes. Years have passed...

1 minute read

Pure beauty

Look at this javascript code: '#'+Math.floor(Math.random()*16777215).toString(16); It prints a random hex color in just one line. I love when I find this kind of solutions. Smart, effective…and if you think a little more about it, even simple. Thank you, Raymond.

1 minute read

Knowledge is power.

Today I finally got my brand new copy of Professional ASP.NET MVC 4 😀 I’ve been following Phil Haack‘s blog for a long time and I really like the guy, so this time I decided to give his group a chance and take the book … Now I guess I’m going...

1 minute read