I’ll try to keep this short & clear so ( hopefully ) I’ll have to time actually code tonight. In first post we talked about Fixed and Tiled Backgrounds In second post we talked about Big Huge Backgrounds In this post we’ll talk about Flowing Backgrounds. I believe it sounds silly but couldn’t find any…
Game Backgrounds in XNA 2D – Part 2
OK so we talked about layered background structure in 2D games in the first post and implemented 2 simple types; Fixed Background and Tiled Background. Although I keep saying them simple , those two are probably the most used types too. Especially Tiled Background is standard for top down or isometric view games. In this…
Game Backgrounds in XNA 2D ( Fixed & Tiled )
It was like 2-3 weeks ago when I got bored and decided to check out some gaming forums. Gaming forums are always fun after all. After a few hours of skimming / reading / talking ; I remembered about XNA, the gaming framework of Microsoft using C# , and decided to give it a…
Simple Map Generator Part 2
Wow , it has been 31 days since that last post? Damn I’m lazy. Ok so in this second part of the series , we’ll create our island and visualize it in 2D with some basic colors. Remember we had our voronoi diagram and our polygons in previous post? Now we’ll need a logic to…
Simple Map Generator Part 1
Simple Map Generator – Introduction OK so now that we have Amit’s blog post as a general guideline and a Voronoi diagram library , we can start coding. In this post , we’ll just create a nice Voronoi diagram and a 2D visualization of it. First of all , we need a Voronoi diagram. We’ll…
Slide Transitions in WPF
I have been working on a small media player application on WPF these days. And since I’m going full Metro on it , I needed some good animations and transitions. The main idea is to have a one screen for everything and then just slide in/out whole content with the help of a little menu…
Simple Map Generator
So I was thinking about some game concepts last week , stealing ideas from here and there etc. One thing I noticed tho , indie games with random maps really have an advantage over professional games with static content , especially when it comes to replay value of the game. Also random map generation is…
Creating a custom ActionResult
OK so now that we know a little more about ActionResults , let’s create a new one! I’ll go with a simple one , a personalized ViewResult. It’ll be pretty much like standard ViewResult. First we’ll derive a base class from ActionResult , this abstract base class will take care of the ViewData , TempData…
Understanding ActionResults in Mvc
Almost all our Action in Mvc returns some kind of an ActionResult ( surprise! ). Or let’s say , they return a class derived from ActionResult , such as ; · ViewResult · RedirectResult · RedirectToRouteResult · JsonResult But how does this ActionResults work? It pretty simple actually ; namespace System.Web.Mvc { public abstract class…
A Different Approach To Master Pages
I’ll just say it out loud , I don’t understand why do we ( or at least the MVC ) use _ViewStart to apply master pages. I just don’t get it. I mean we have a controller layer for decisions right? Why would I want to put decision logic in View layer ( or folder…