Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.
eatcomics wrote:Yeah my game's collision needs redone to, but to do that I have to remake the levels... they weren' that great to begin with but that doesn't make me want to redo them anymore.... But anyways the game looks like it will be awesome! =)
I'm glad to see that other ppl have trouble with collisions, and it's not just me. XD
I made a side-scroller that was kinda like Metroid meets Quake - the collisions were a bit flakey..
eatcomics wrote:Yeah my game's collision needs redone to, but to do that I have to remake the levels... they weren' that great to begin with but that doesn't make me want to redo them anymore.... But anyways the game looks like it will be awesome! =)
I'm glad to see that other ppl have trouble with collisions, and it's not just me. XD
I made a side-scroller that was kinda like Metroid meets Quake - the collisions were a bit flakey..
Collision detection is one of the hardest things i have encountered in game development too..
function Update()
ball_pos = ball:GetPosition();
paddle_play_pos = paddle_player:GetPosition();
paddle_AI_pos = paddle_AI:GetPosition();
vel = ball:GetVelocity();
paddle_AI:SetVelocity(pongai.AI(paddle_AI, ball, false));
paddle_player:SetVelocity(pongai.AI(paddle_player, ball, true));
if collision.Check(paddle_player, ball) == true then
if paddle_flip == false then
vel:set(-vel.x, vel.y, vel.z)
ball:SetVelocity(vel)
paddle_flip = true
end
else
paddle_flip = false
end
if collision.Check(paddle_AI, ball) == true then
if paddle2_flip == false then
vel:set(-vel.x, vel.y, vel.z)
ball:SetVelocity(vel)
paddle2_flip = true
end
else
paddle2_flip = false
end
if ball_pos.y > 575 or ball_pos.y < 0 then
if y_flip == false then
vel:set(vel.x, -vel.y, vel.z)
ball:SetVelocity(vel)
y_flip = true
end
elseif ball_pos.y < 575 or ball_pos.y > 0 then
y_flip = false
end
end
basically the if the balls velocity is already flipped it cannot be flipped again until in the "safe zone". It stops it from getting stuck in the paddle.
Gyro Sheen wrote:you pour their inventory onto my life
IRC wrote:
<sparda> The routine had a stack overflow, sorry.
<sparda> Apparently the stack was full of shit.
I've messed around with a few ways of doing collision, for example, I wanted to make a rectangle react differently based on the direction your player collided into.
I almost had it cracked, unfortunately, my pc broke (I'm fairly sure something has gone insane with the CPU) so I was able to test the algorithm, and I couldn't check whether the lag it caused in the game was due to the computer or the function I was using (I think and hope it was the computer, which is now completely kaput! )
Long story short, collision(and old computers) are ass!
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
--------------------------------------------------------------------------------------- And now a joke to lighten to mood :D
I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P
programmerinprogress wrote:I've messed around with a few ways of doing collision, for example, I wanted to make a rectangle react differently based on the direction your player collided into.
I almost had it cracked, unfortunately, my pc broke (I'm fairly sure something has gone insane with the CPU) so I was able to test the algorithm, and I couldn't check whether the lag it caused in the game was due to the computer or the function I was using (I think and hope it was the computer, which is now completely kaput! )
Long story short, collision(and old computers) are ass!
programmerinprogress wrote:Long story short, collision(and old computers) are ass!
For game development, yes.
Quite rightly! you can't beat the whirring of an old computer's hard drive/floppy drive (and I mean an OLD computer, like an IBM from the early 90's or 80's if you're that hardcore!), or being able to run DOS games without an emulator!
But a nice reliable machine that you know won't go berserk on you if you decide to test a piece of untested code on a machine is very helpful
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
--------------------------------------------------------------------------------------- And now a joke to lighten to mood :D
I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P
Bleh, I was going to upload what I had so far but I cannot find my backup disk. It's around here somewhere, I'll find it eventually.
I haven't worked on it much since I posted the video, hrm.
Well i have never read this thread before and now i just went and read the whole thing. None of the links work so i am so lost.
But was there really a company making biblely games? i thought that is like off limits just because you can get so many people mad at you and its kind of morally wrong haha. I mean im not religious but i think if i was religious i would think making a bible game is wrong.
Hyde from That 70's Show wrote:Woman are like muffins... Once you have a muffin you will do anything to have another muffin... And they know that.
Aeolus wrote:Well i have never read this thread before and now i just went and read the whole thing. None of the links work so i am so lost.
But was there really a company making biblely games? i thought that is like off limits just because you can get so many people mad at you and its kind of morally wrong haha. I mean im not religious but i think if i was religious i would think making a bible game is wrong.
that's why Wisdom Tree couldn't get licenses...(I mean apart from the fact that the games were crappy)
(also those horrific game cartridges show you just how unauthorised those games actually are)
If you were a game publisher would you licence these games?
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
--------------------------------------------------------------------------------------- And now a joke to lighten to mood :D
I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P