Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

odrega

Member Since 18 Aug 2012
Offline Last Active Feb 01 2013 08:11 PM
-----

Posts I've Made

In Topic: Determining Line of Sight in AS3 using collision detection, need help!

23 December 2012 - 08:49 PM

It's not very efficient, but something like this could work, if actual trigonometric calculations are thrown at it.

//Ray Trace - for loop
for(var i = 0; i < rayIterations; i++){
	
	rectangle = new Rectangle(1, 1, ray.x, ray.y);
	for(WallArray.length){
		if(rectangle.hitTest(WallArray[whatever].rectangle)){
			return true
		}
	}
}

In Topic: In game Minimap Issue

12 October 2012 - 12:12 AM

Is there by chance front face culling and you've ordered the vertex's wrong? Or maybe you've left it with a projection matrix rather than an orthographic matrix?

In Topic: Skyrim version Overview map in a voxel/cube world?

27 September 2012 - 11:33 PM

I'm not sure if its possible, but couldn't you render the whole map to a texture when you open the map menu. You wouldn't see real time block changes, but there's probably a way around that.

In Topic: Generating Large Maps Using Libnoise (Limits?)

05 September 2012 - 03:10 PM

I don't know much about libnoise, but if you use the same seed won't it always generate the same map? Because if it did, you could store the seed on the server, send it to the player (who then generates it) and then retrieve x, y, health and inventory. Would that work?

PARTNERS