Allegro.cc - Online Community

Allegro.cc Forums » The Depot » Enough smacktalk ....

This thread is locked; no one can reply to it. rss feed Print
 1   2   3   4 
Enough smacktalk ....
Graham Goring
Member #2,367
May 2002

Wow! That's mostly really good. Nice big blocks moving about and pushing the player and everything. The only thing that seems off is the jumping arc. When you let go of SPACE before reaching the top it drops at an unnatural rate. Are you using a table of offset for the jump or something? Only that's what it feels like at the moment. I could suggest something which gave a far more smooth feel while maintaining the ability to alter the height of the jump the longer SPACE was held down if you're interested.

23yrold3yrold
Member #1,134
March 2001
avatar

Quote:

Congratulations on actually doing some programming!

I was honestly wondering when you would show up ....

Quote:

I could suggest something which gave a far more smooth feel while maintaining the ability to alter the height of the jump the longer SPACE was held down if you're interested.

I'm open to suggestions. ATM, I honestly can't recall how I'm handling it ;D But the controls are definitely going to be tweaked as I go. I'm not using a table though; I'm calculating y-velocity over time. I didn't think it was that bad ....

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Graham Goring
Member #2,367
May 2002

Well, I just have a vertical velocity which is added to the y-position each frame. Then when you jump it's changed to -5 or something and then increased by .5 each frame, making you follow a nice arc. If you hold down SPACE, however, you make it so you only increase the y velocity by .3 or something each frame. Thus the longer you hold SPACE down, the less the effect of gravity and the longer the jump lasts.

Thomas Fjellstrom
Member #476
June 2000
avatar

Ooohhh, one other suggestion! You NEEEEEED a double jump in that game! just like the new UT has ;);D

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

23yrold3yrold
Member #1,134
March 2001
avatar

GG: That's what I'm doing ;)

TF: No. I hate double jumps (except the one in Yoshi's Island). That is the stupidest move ever. Wall jumps, maybe (but probably not, since it doesn't fit the character). What the hell are they jumping off of; air?

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Paul Pridham
Member #250
April 2000
avatar

Yea, double jumps are totally unrealistic, when they should be locally modifying gravity to make themselves jump higher! :P

Thomas Fjellstrom
Member #476
June 2000
avatar

ok.. ;) how about a super jump? like in Icy Tower? ;D

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Ultio
Member #1,336
April 2001

What's wrong with a double jump?

In megaman it was his boot upgrade.

In metroid it was a spinney move, so you're not really double jumping - but spinning without getting dizzy.

Don't get too crazy. It's just a game. Double jumping can be cool, unless you can do it all the time.

Anything that you limit: the player will want it more. Think about it. (take megaman for example) How badly did you want to use Zero for a WHOLE game during the SNES X series. VERY badly since you could only use him that much more per game. Then came along the PSX version, and you COULD do it. Everyone says woohoo. Then the next one comes out and you can be Zero: Nobody cares. :)

A double jump would be cool if you implemented it well: Ie - it's some kind of item that makes you double jump, or; being able to double jump off of an enemie's head. you know, jump up, and press jump before you land on top of an enemy and you can jump again. That would work, no?

Anyways. It's up to you. It's your game. Sorry I got divergent and talked about limitations :)

(it would be fun to jump off enemies, though)

---
"It's nice knowing that someday, the software I write will just be pirated by millions of people." :-/
http://loomsoft.net | Zep's Dreamland | Allegro Newbie Tutorials

jcact
Member #2,203
April 2002
avatar

hey i downloaded your demo at work and played briefly. It looks very promising. But now that I'm at home on a P.O.S machine your game won't run! The bmpfont test worked fine. I don't have the code for the demo but I'd guess you don't have code to cycle through the color depths like you did in the bmpfont? If this is the case could you add the lines and repost :)

nonnus29
Member #2,606
August 2002
avatar

So when can we expect the "Embedding LUA for game programming" Tutorial!? You know its a tutorial that NEEDS to be written..... If not you who? If not now When!?

..

Paul Pridham
Member #250
April 2000
avatar

BTW, if Lua is too much hassle for you, you might want to look at ICI:

http://www.zeta.org.au/~atrn/ici/

It's a very C-like byte-code interpreted language, public domain (ie. totally free). Rather nifty it is. It's great with string stuff too.

Of course, embedded FORTH is cool too, and O'Caml, and... ;)

Flecko
Member #566
August 2000
avatar

I got 99 to 100fps on my computer. 1ghz duron, 256megs of ram, Geforce2mx(32meg) running WinXP. And FYI, w/ or w/o vsync didn't matter because I have it disabled altogether.

Seems to be a pretty kickass and robust engine you've got there Chris. I hope you make a pretty kickass game out of it.

-Flecko

ben's drivel
A shark on whiskey is mighty risky, but a shark on beer is a beer engineer. This message brought to you by Old Kentucky Shark of Kentucky Nightmare Whiskey Co.

kazzmir
Member #1,786
December 2001
avatar

99-100 fps
1ghz
128 mg ram
basic intel isomething graphics card

nice engine.
good luck.

kyle clark
Member #2,466
June 2002

that was really good. keep up the good work and don't be so hard on yourself about the graphics; they're actually pretty good.

15fps
500 mhz processor
384 mb ram
4 mb video card
win2k

next time put all of the files inside one main folder.

Thomas Fjellstrom
Member #476
June 2000
avatar

I agree with Kyle, the graphics look fine. (not awesome.. but what do you expect from a 1337 c0d3r such as your self?)

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

23yrold3yrold
Member #1,134
March 2001
avatar

Whoa, feedback flood ....

Quote:

So when can we expect the "Embedding LUA for game programming" Tutorial!?

I'm already thinking about how I might outline it, but I want more experience with it. Give it time.

Quote:

not awesome.. but what do you expect from a 1337 c0d3r such as your self?

I'm an artist first and a coder second :) Anyway, I wasn't trying to draw anything good; it's just placeholders until I get a scanner or something.

jcact: bmpfont? What are you talking about?

And I still don't like double jumps ;D

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Graham Goring
Member #2,367
May 2002

Really? The jump cycle at the moment looks kinda' artificial when it's exited prematurely. How odd.

Still, it's still a nice engine overall. I look forward to seeing a game arise from it.

JaTeR
Member #2,088
March 2002
avatar

I got a steady fps of 45. nice and smooth.. good job!

JaTeR

--
Still spreading that sunshine!
for those that like informative profiles...

Thomas Fjellstrom
Member #476
June 2000
avatar

hmmmm... Ok, Im going to need a good artist when my game engine gets to a playable point... (its an action-adventure/RPG game with a [hopefully] original story)

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

jcact
Member #2,203
April 2002
avatar

Opps, I'm dumb! I unstuffed your program in the same folder as a program called bmpfont :) Anyways what I was saying is the computer I have at home doesn't support the color depth you are using, could you add code to cycle through the depth until it finds a working one and repost. ;)

23yrold3yrold
Member #1,134
March 2001
avatar

Funny; it only runs at 640x480x16. That's not so bad, is it? Anyway, I would love to release an 8-bit version, but I'm not sure the best way to alter the bitmaps. Can I just use 8-bit color and convert the currently-24-bit bitmaps to use some pallete at runtime or something? Someone help me out here; I've never used 8-bit color ....

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Johan Peitz
Member #9
April 2000
avatar

Well, having used only 8-bit color, here's my 2 cents. :) (Which means I never have converted from 16 to 8 before but here's a shot at it.) Since you're sofar using pretty basic colors and few of them you should be able to make a nice little palette. Load all your gfx into on image in photoshop and save as 8bit pcx, then load the pcx into your engine and use the palette. (Tip, since you don't need the whole image just crop out a liitle bit before saving.) Anyway, you need to use set_color_conversion(COLOR_CONVERSION_TOTAL) or similar (chack the docs). Then load the palette and then load your data file. I think that will do the trick but I'm not sure. Someoneelses opinion on this would prolly be good. You could check out Steve Terry's GUI-demo, I know that he down-converts some gfx there.

Also, the demo/engine is looking really cool. Good work. I'd love to see a game with it. I have to agree on the jumping physics though. When the player let's go of the jump button early I usually do something like:
jump_force = jump_force >> 1 to get a quick but nice curve. You should at least try it out. ;)

--
johan peitz :: things I made

23yrold3yrold
Member #1,134
March 2001
avatar

Okay, I checked my jumping code (I haven't gone near CPlayer.cpp in two demos :) ) and I was just cutting the velocity to 0 when the jump was released. Now I'm using a similar way to JP's (I don't seem able to use >> with floats) and it delays a bit at the peak of the jump now. It looks odd to me, but that's probably because I'm used to the old way. Like I said, it all needs tweaking. You'll see it next demo.

I don't have Photoshop, but I'll see if there's some way to get the pallete if I have some time. My collision detection, particles and CObjManager's come first!

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Ultio
Member #1,336
April 2001

About the jumping, if you're thinking about doing it realistically:

The longer you would hold down the jump-button before letting go should determine the amount of jump you get. Think about it. When you jump in real life you can't just say "I'm done jumping, let's fall now". It all depends on how hard you kicked off. It would be interesting to see a game that implements this beause you'd have to figure out the timing for yourself if you were in a tight spot, you know.

It could also get really annoying. Eh. Think about it.

---
"It's nice knowing that someday, the software I write will just be pirated by millions of people." :-/
http://loomsoft.net | Zep's Dreamland | Allegro Newbie Tutorials

Redboshi
Member #2,331
May 2002
avatar

I don't think he takes too long to turn around but he turns around too vertically after running at full speed. Try running that fast then doing a little vertical spin and crossing your feet to change your direction. :o He might look better if he got lower to the ground. However, I realize that that might mess up your bounding box system.

Considering that you can even decide to change directions in the air, I don't think this jumping is very realistic. For the better, too. The system is good as it is for quick action.

Looking great so far.

 1   2   3   4 


Go to: