Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 21 May 2012
Offline Last Active Today, 03:55 PM

Topics I've Started

Improving skills

Today, 07:55 AM

Hi All,


I would like to enhance my programming skills. I have done few projects like space invader, and atari asteroids as games. I was doing 3D game programming but was fired due to my lack of skills. When I back home from work, I have plenty of time.. I want to invest it to enhance my programming skills.. So Would you suggest projects or some stuff that I can do in my spare time ? I'm most of the time reading data structure and algorithms but I never practice them.. for example of the things that I focus on. 


I lost the confidence in my self, and I need to restore it.. but don't know how..


btw, here is a list of some of the projects that I have done https://www.youtube.com/user/ahmedragia21

Game programming is hard

12 March 2015 - 02:37 PM


I worked last year into 3d games and participated into two titles sports simulation, did some stuff like sounds, skid marks,..etc.

I'm into the way of getting fired soon, tasks getting hard and I couldn't do them...  I lost the confidences at all, however I have doing programming for 7 years, but worked on business applications,..etc. Game programming is really different and it needs a lot of algorithms and imagination.. 


Now I lost the confidence at all after failure in two tasks, I even want to be a taxi driver and leave the programming career...  my education is electronics engineer and never studied programming in the university, I taught myself everything... which basically is nothing 


How would I restore my confidence :S ?


Space invader barrier implementation algorithm

10 March 2015 - 04:59 PM

I've been struggling with implementing the space invader bullet to barriers. I wanted right now to blast a circle around, when the bullet hits the barrier and modifies the circle. As shown in the video, the algorithm looks wrong, http://youtu.be/VMBczCsP3J4 I have tried my best to debug it, but I've failed.

here is the algorithm:

// if there is intersection
    if (IntersectsWith((*it)->BoundingRect, barrierRect))
        // subtract (*it) bullet position from barrrier's rect 
        int normX = (*it)->Position.x - barrierRect.x;
        int normY = (*it)->Position.y - barrierRect.y;

        // barrier image pixels 
        uint32* ptr = (uint32*)pixels;
        // height of the barrier
        int y = 31;

        for (int i = 0; i < 31; i++)
            int pixelOffset = y + normX * 51;
            int color = ptr[pixelOffset];
            // look up the color if its not black, it should be green
            if (color != 0xFF000000)
                // delete the bullet
                Bullet *bullet = *it;
                it = ship->Bullets->erase(it);
                delete bullet;
                ship->Canfire = true;
                isCollision = true;

                // blast a circle around that bullet hit position
                int radius = 9;
                for (int y = -radius; y <= radius; y++)
                    for (int x = -radius; x <= radius; x++)
                        if (x*x + y*y <= radius*radius)
                            int j = x + normX;
                            int i = y + normY;
                            int pixelOffset = j + i * 51;
                            ptr[pixelOffset] = 0xff000000;
            // go up


Employee appraisal

05 March 2015 - 11:20 AM

Hi All,

I have been working 3D game programming for a year now, and that is my first job in industry. Today I had employee appraisal and my manager told me that I don't work independently and I ask for help and two guys (seniors) they are tutoring me for the last year and I'm wasting their time. However I have worked on a lot of tasks dependently too, but for tasks that are beyond my knowledge, yes I ask them. 

I asked him what if the situation won't be improved, he said I won't be in the team..however he asked me to be patient with another team member that is causing a lot of troubles to other team members and he is still in the company for a long of years! 


I have already another offer from a company that is doing augmented reality, do you think should I wait to be fired or listen to my boss and do better or leave and keep my dignity untouched, in case getting fired? 

Review of class rendering code using marmalade c++

24 February 2015 - 04:42 PM

Hi All,

I'm trying to clone space invader of atari and I have problem with bounding rect calculations.. the rect is not correctly bounded.. maybe I have problem with the transformations 

void Barrier::Render()
	if (mBarrierImage)
		CIwFMat2D Transform;
		// Build transform

	CIwFVec2 pos = Transform.t;
	BoundingRect.x = Position.x;
	BoundingRect.y = Position.y;
	BoundingRect.w = (float)mBarrierImage->GetWidth();
	BoundingRect.h = (float)mBarrierImage->GetHeight();
	Iw2DSetColour(0xff0000ff); // Set red
	Iw2DDrawRect(CIwFVec2(pos.x, pos.y), CIwFVec2(mBarrierImage->GetWidth(), mBarrierImage->GetHeight())); // Draw red outline