Skip to main content
GameDev.net gamedev.net
🔒 Locked

Space invaders question.

Started by fishleg003 Oct 30, 2005 at 6:28 AM 1 replies 400+ views
Original Post
fishleg003
fishleg003
Im making a space invaders game in 3d that uses bezier curves for the enemy paths. Ive got it working and all the curves are mapped to a box with lower left -1 -1 and top right 1, 1. i.e. ================1,1 |...............| |...............| |......0,0......| |...............| |...............| -1-1============ This is fine for mapping the curves and ive got it displaying in opengl with squares following the curves but im wondering is how do i map that to say a window of 400 by 400 so the points stay relative to the window size. I was thinking id just times the x and y by height/2 width/2 of the window but surely theres more to it then that >< ? cheers fishleg [Edited by - fishleg003 on October 30, 2005 8:09:25 AM]
JohnBolton
JohnBolton
What is the size of your window now? Wouldn't you make it fit to 400x400 the same way you make it fit to the current size?
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!
Boder
Boder
================1,1|...............||...............||......0,0......||...............||...............|-1-1============

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.