Search found 721 matches
- January 28th, 2014, 10:21 pm
- Forum: Everything
- Topic: Question, window x,y vs screen x,y
- Replies: 3
- Views: 1768
Re: Question, window x,y vs screen x,y (solved)
Its ok, i figured it out. :D. I have dived into 3D programming about 2 years ago, go frustrated and figure i had better do 2d first to get the structure of a game down first.. I've gotten some pretty cool 3d games but they got way too messed up, and not very scalable. So now its onto 2d, to get the ...
- January 28th, 2014, 10:12 pm
- Forum: Everything
- Topic: So some code to share, might be useful.
- Replies: 1
- Views: 1486
So some code to share, might be useful.
Inspired by Chilli and arrays of pointers .. Thanks Chilli, been learning tonnes :) #pragma once #include <windows.h> // for RECT i believe its in WinDef.h #include <windef.h> // Used To grid out a texture based on rectangle values // use the constructor to create or reuse class via the Execute func...
- January 28th, 2014, 9:49 pm
- Forum: Everything
- Topic: Question, window x,y vs screen x,y
- Replies: 3
- Views: 1768
Question, window x,y vs screen x,y
So i have my window as a window, not full screen. I have the mouse x,y to be relative to the window coordinates. Now the Question is, is the draw x,y of objects at the windows x, y or relative to the actual screen x,y. ..
- January 27th, 2014, 6:09 pm
- Forum: Everything
- Topic: Game Update
- Replies: 4
- Views: 1879
Game Update
So i have created a level builder for my game. Game should be available to try out soon. few more engine tweeks and building levels
- January 25th, 2014, 7:31 pm
- Forum: Everything
- Topic: Game, Beta **Updated
- Replies: 10
- Views: 4357
Re: Game, Beta **Updated
Thanks SunShine .. don't usually say that to people unless i'mma huggin her .. haha .. anyways, thanks for the feedback.
Ya Chilli, i kinda by accident had it move diagonally but thought .. what ever and went with it. I used you approach to level building using strings, novel idea, nice and simple.
Ya Chilli, i kinda by accident had it move diagonally but thought .. what ever and went with it. I used you approach to level building using strings, novel idea, nice and simple.
- January 25th, 2014, 7:19 pm
- Forum: Everything
- Topic: Space Invaders clone (Sorta)
- Replies: 15
- Views: 5850
Re: Space Invaders clone (Sorta)
cool, good ole space invaders .. funny the other day i was thinking about Galaga game .
Nice work
Nice work
- January 22nd, 2014, 6:59 pm
- Forum: Everything
- Topic: Rectangle Collision
- Replies: 2
- Views: 1422
Re: Rectangle Collision
Its all good, i found a better way .. i think lol
Code: Select all
Vec2 AToB = CurrEnemy->Center - Player->Center;
float dist = D3DXVec2LengthSq(&AToB);
if( dist < Player->Shields()->Radius() * 16.0f/*enemy radius*/)
{
//do stuff
}
- January 22nd, 2014, 6:02 pm
- Forum: Everything
- Topic: Rectangle Collision
- Replies: 2
- Views: 1422
Re: Rectangle Collision
The problem with this is if there are two tiles side by side, sometimes it wiggles between the tiles and passes through, not good
- January 22nd, 2014, 5:36 pm
- Forum: Everything
- Topic: Rectangle Collision
- Replies: 2
- Views: 1422
Rectangle Collision
Can anyone help with why this isn't 100% correct ?. 90% of the time it works but sometimes it fails, i think it has to do with when the lengths are the same . Its designed to bounce off in the proper direction no matter which side it collided with(top bottom left right) inDirX and inDirY are set as ...
- January 21st, 2014, 12:16 am
- Forum: Everything
- Topic: Game
- Replies: 8
- Views: 3204
Re: Game
Thanks Lux, I realize it needs a lot of work yet its still in the baby stages. I was fishing for ideas when i put this up. I do agree when the enemy loses line of sight or is out of range it does act a bit odd. I will continue to work on this, again its in the very baby stages. I appreciate the inpu...