Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


Aart

Member Since 20 Mar 2012
Offline Last Active Oct 11 2014 12:42 PM

Posts I've Made

In Topic: Pong Project near completion; looking for Critique.

02 December 2012 - 05:35 PM

Hey Stitchs,

The executable complains about MSVCP100.dll not being present, you might as well want to include that.
Furtermore, I took a quick look at your code, and it seems okay to me. I don't know how much experience you have in C++, but I think this program is written with a good sence of object orientation. One thing though, why do you save the score in the bat, and not in the arena?

Aart

In Topic: Accessing other game objects

01 December 2012 - 07:42 AM

Sorry, what I actually meant was an std::vector. Thanks for the link though, I'll check it out.
I'll see what I can do with the information I have now. Time to write everything down and create some structure graphs.

Thanks all.

Aart

In Topic: Make stage "move" when main character moves

01 December 2012 - 07:32 AM

I assume the coordinates in this function represent the position on the screen in pixels. So if you want to move the viewport, what you call 'stage', you would have to substract the viewport position from the position of the object you want to draw to find the right place on the screen.

Example:
int objectPosX = 2000;
int objectPosY = 2500;
int viewPortPosX = 1500;
int viewPortPosY = 2000;
int drawPosX = objectPosX - viewPortPosX; // 500. actual position in pixels where the object should be drawn on the screen
int drawPosY = objectPosY - viewPortPosY; // 500

// put here your draw call

Forgive me, I have no experience in Java, but I hope this makes it clearer.

In Topic: Needing advice on 2D collision response.

01 December 2012 - 05:09 AM

If you want to negate the movement, might it be an option to reduce the speed to zero and then place the player excactly on the spot where it collided? Just a suggestion, I don't know excactly what you are trying to achieve.

Aart

In Topic: How to improve myself as a programmer wanting to create games?

01 December 2012 - 04:53 AM

Hey Cdrandin,

What are you studying excactly? Since you will be learning OpenGL I figure that you are not the only one who likes creating games. I think it would be a good step forward if you try to find some likeminded people and make something cool. I see you would like to start creating 3D games, but this might require more then one team member, since it is alot more work then 2D games. Creating a few simple games in a team really shows what you've got and you will learn alot too.

If you want to try 3D anyway:
I have no experience in Python, but I can write C++, and I know C++ combines well with OpenGL. If you want to give C++ and OpenGL a try, google freeglut. This a good library that helps you with OpenGL in C++.

Aart

Edit: freeglut is actually C, which is the precursor of C++

Also! This year I will be joining the Global Game Jam for my first time. There you will create a game in 48 hours, with people you most likely have never met before. Everyone is welcome, artists, programmers, musicians. I think you would rather like it. It would also be a good oppertunity to ask questions to more experienced people. The event starts on january 25 and ends on sunday january 27.

PARTNERS