Author Topic: Grappler!  (Read 30207 times)

0 Members and 1 Guest are viewing this topic.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Grappler!
« on: November 25, 2011, 12:24:26 pm »
Grappler: Hook Champ for Calculator

This game's kinda like Hook Champ where a guy grapples to a block above him and swings around through the level until a giant demon thingy catches up and eats him.


Old screenies



Early version of tilemap and enemy:



If you've never heard of Hook Champ, this is what it looks like.
« Last Edit: December 16, 2011, 04:36:03 pm by epic7 »

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Untitled Grappling Hook Game (for now)
« Reply #1 on: November 25, 2011, 12:34:41 pm »
I would probably figure out acceleration first, but Zedd takes care of that for you. I've played Hook Champ, and when I saw the title before opening the thread I was like "Hook Champ port?" :D If you want to draw the rope from the character, change where you draw your character or where the rope is linked to.
In-progress: Graviter (...)

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Untitled Grappling Hook Game (for now)
« Reply #2 on: November 25, 2011, 01:00:02 pm »
Epic7, now I hate you. I was gonna port this ! :@

(Just kidding ;))
I'm not a nerd but I pretend:

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #3 on: November 25, 2011, 01:35:07 pm »
Try drawing the line twice as far away when you are doing multiple jumps, it looks like the character is catching up to where you draw it too fast

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #4 on: November 25, 2011, 02:56:31 pm »
Names:
Grappling Guy- sounds close to gravity guy
Hook man- ... Not really
Hook champ Ti- meh
Grappler!- idk
These mediocre ideas are all I can think of at the time :P

For line drawing, on the key press, the ropes top coordinates go up at a 45° angle until they hit something. It should work, but I'll try having it go out more on the consecutive jumps

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Untitled Grappling Hook Game (for now)
« Reply #5 on: November 25, 2011, 03:04:53 pm »
Taser?
I'm not a nerd but I pretend:

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #6 on: November 25, 2011, 03:21:51 pm »
I think Zedd would be an excellent choice for this game :) As it would give you access to the rope physics library, which I think would make this awesome :D

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #7 on: November 25, 2011, 03:50:31 pm »
Right now, I'm going to make that simple program where objects move to the center of the screen. But I keep getting undefined errors.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #8 on: November 25, 2011, 04:06:14 pm »
Did you read all of the documentation?  There are a number of constants you have to define yourself, or else it will throw an error. 

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #9 on: November 25, 2011, 04:12:09 pm »
I've solved a bunch of errors already. Do you have to do addZ to add every object that will be affected?

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #10 on: November 25, 2011, 04:13:29 pm »
yes you do, that is the only way to add objects into the Zedd world (besides adding them through manual byte manip :P)

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Untitled Grappling Hook Game (for now)
« Reply #11 on: November 25, 2011, 04:16:00 pm »
did you already solved the line problem (that it stick after the man instead of before it)? otherwise i have a solution here

alpha is 45° (we can choose it, 45 would be good), and beta is 45° too because the third angle is 90°.
tan(alpha) = (x2-x1)/y with tan(45°)=1 ==> y=x2-x1 ==> x2 = y+x1

so the grabpoint (x,y) has to be the height of the guy (measured form the top) + the x point of the guy right now

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #12 on: November 25, 2011, 04:22:06 pm »
The ceiling might be varied and have blanks in it. That's why I used pxltest. Would what you have work for that?

And for zedd, I'll go read more of the manual before asking more questions

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #13 on: November 25, 2011, 04:23:43 pm »
You might want to cast a ray in order to determine where to atatch the hook, that way you will guarantee you will be able to attach to a roof that is varied

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Untitled Grappling Hook Game (for now)
« Reply #14 on: November 25, 2011, 04:26:37 pm »
hmm, then it will get harder, even impossible with that formula, as you have 2 unknown variables.. then you could use a for loop and increase x and decrease y so you describe a straight line going 45 degrees to the upper corner), untill the pxltest gives true, those x and y you can store in 2 new variables and use them