Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 28 Nov 2010
Offline Last Active Yesterday, 10:25 PM

Posts I've Made

In Topic: Pathfinding AI in an ECS game

16 December 2014 - 04:51 AM

In my current project I have both Pathfinding and an Entity Component System. Entities that need to be able to perform actions have a command component that handles queuing and execution of commands such as "Move to X,Y". When a movement command begins executing, it first runs an A* search to find the path to the destination, and from then on it just moves from tile to tile as appropriate.


My A* implementation knows nothing about Entities or Components, it just deals with tiles and movement costs.

In Topic: [New] I am committed to starting my first real game

04 December 2014 - 02:31 PM

Back when I started on my current game project I evaluated XNA but was disappointed because I wanted more control over what was going on. I ended up going with SlimDX, which is a wrapper around DirectX which can be used in .net. It doesn't hold your hand at all, it's exactly like the blank recipe book analogy cited by Code_Grammar, but that's exactly how I like to roll.


That said, it was fairly daunting to get a working game engine up and running. But now that I've put in the effort I'm really proud of what I've achieved. If I ever get more heavily involved with games development it should provide a good base skill set.


I'm not saying its the right way to go for you, something like Unity or Monogame might be more appropriate, but thought I'd add it to your potential options.

In Topic: Where It all begins

29 November 2014 - 04:12 AM

I'm a Software Development student at the University Of South Australia *Waves*.



Whoa.. a local on gamedev? *Waves back* 


If you are competent in 3 languages, its time to pick one of those and start a small game project. A lot of people on these forums recommend pong or something similarly simple, and though it sounds patronising, pong introduces you to most of the core concepts you'll encounter in any game. Eg: taking input from the player, drawing to the screen and the all important game loop.


Robert Nystrom's recent book "Game Programming Patterns" has some great stuff in it if you're transitioning from traditional software development to games. There's a free version hosted on his site at: http://gameprogrammingpatterns.com/contents.html but it is also available in various eBook formats as well as print.

In Topic: Funniest line of code ever ?

24 November 2014 - 06:12 AM

This snippet comes courtesy of some healthcare related development I'm involved in: 


if (staff.StaffType != null && !staff.Staff.StaffTypes.Any(st => st.StaffType.Id == staff.StaffType.Id))

staff.Staff.StaffTypes.Add(new StaffStaffType(staff.Staff, staff.StaffType));




Reminded me of the "Spam Spam Spam..." Monty Python skit.

In Topic: Game Maker v1.3 Code Crashes Game

22 November 2014 - 10:46 PM

A program becoming unresponsive is quite different to crashing. What you've described sounds more like an infinite loop. From the code snippet you provided, I can see two while loops that - depending on the return value of place_meeting()  - could loop endlessly. I'd start by looking in there.