Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Save our chicks!!! Duke Nukem and Hulk Side-by-Side  (Read 6655 times)

0 Members and 1 Guest are viewing this topic.

lulle

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Save our chicks!!! Duke Nukem and Hulk Side-by-Side
« on: July 25, 2013, 06:09:46 pm »
The aliens are back!!! Stronger than ever before Dukes weapons are useless and so HULK has to help Duke to save his chicks!
Gameplay:
You are HULK. Duke is following you and warns you if one of the brains steals a chick.
Destroy the enemies on the ground they hurt you and destroy the brains, but:
Brains are only destroyable if they are stealing a chick!

short gameplayvid:


two-zero-seven:


Still a lot of work to do, call it early beta XD
« Last Edit: July 26, 2013, 04:09:56 pm by lulle »

The Terminator

  • Full Member
  • ***
  • Posts: 224
  • Windows and Mac C++ Developer
    • View Profile
Re: Save our chicks!!!
« Reply #1 on: July 25, 2013, 07:22:19 pm »
LOL. The sound effects are funny. :D Very nice game, but how can hulk jump that high? O_O
Current Projects:
Technoport

Gobbles

  • Full Member
  • ***
  • Posts: 132
    • View Profile
    • Email
Re: Save our chicks!!!
« Reply #2 on: July 25, 2013, 07:58:07 pm »
... but how can hulk jump that high? O_O

The hulk has, numerous times, jumped entire oceans and even into space. There is no end to his strength!

lulle

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Save our chicks!!!
« Reply #3 on: July 25, 2013, 09:01:57 pm »
yeah Jump is one of the things left to do.
In the first vid I did jumping by an initial impulse and then adding gravity->multiplicating frametime aso.
That was ugly, as frametime changes HULK jumps on the moon XD
In the 2. vid theres a max humpheight - also ugly :)

Gobbles

  • Full Member
  • ***
  • Posts: 132
    • View Profile
    • Email
Re: Save our chicks!!!
« Reply #4 on: July 26, 2013, 06:43:34 am »
yeah Jump is one of the things left to do.
In the first vid I did jumping by an initial impulse and then adding gravity->multiplicating frametime aso.
That was ugly, as frametime changes HULK jumps on the moon XD
In the 2. vid theres a max humpheight - also ugly :)

I always find real world physics work best, no matter how simple you want to keep things.

What I like to do for jumping in my platformers (if your interested):
    -Set a 'Trajectory' value for jumping - I use a 2D vector for this.
    -Set an 'Air State' and 'Ground State' for the character. This controls whether the character is in the air or not.
    -When a jump action occurs, apply a large value to the characters Trajectory.y (the higher the number the highter the character will jump), then Set the characters State to Air State.
    -In the characters update check if the character is in the Air state, if they are, compute the characters new Trajectory. my normal formula is 9.82m/s^2, which ends up as Trajectory.y += time_passed * gravity; time_passed is the time since my last frame.
    -Then update the characters position based on the trajectory. Location.y += Trajectory.y * time_passed;
    - Once the character collides with the ground, simply set the state back to ground and reset the Trajectory.y back to 0.

This is basically all I ever do and it always turns out great for me. Hope it can help you.

Quick Edit: I should mention that the initial Trajectory.Y would be a negative value (like -200) in this case.
« Last Edit: July 26, 2013, 06:47:22 am by Gobbles »

lulle

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Save our chicks!!!
« Reply #5 on: July 26, 2013, 04:09:16 pm »
Ooh yes->thats absolutely "real" real world physics. (tnx 4 the minitut)
The point is:
I dont know if jumping will stay in the game.
-It might be handy for crashing enemies in Mario-Style, but that would be a 3. attack
1. is thunderclap for pushing away the mine
2. is a punch to kill the other enemies.

-jump might also be handy to kill a kidnapping brain in the air (combined with in-air clap)




lulle

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Save our chicks!!! Duke Nukem and Hulk Side-by-Side
« Reply #6 on: July 26, 2013, 07:55:58 pm »
BLOOOD!

lulle

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Save our chicks!!! Duke Nukem and Hulk Side-by-Side
« Reply #7 on: July 30, 2014, 01:36:50 am »
Damn..forgot to share ...but its never 2 late xD




Windows: http://lubits.de/SoC/Projekt_2013_windows.zip
LinuX: http://lubits.de/SoC/CPP_Projekt_2013

Datafiles(Gfx, Sound): http://lubits.de/SoC/data.zip

If someone wants the source...drop a line here and I'll cleanup/upload it.

Have Phun,
lu


 

anything