GPWiki.org
GPWiki.org
It is currently Sun May 19, 2013 11:26 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Tue Apr 17, 2012 3:33 pm 
Shake'n'Baker

Joined: Thu Dec 29, 2011 2:33 pm
Posts: 62
Hey there,
after reading more and more about pointer and playing
around with them, I got my mapeditor as ready as much
as I need it now.

But the Code was much bigger than I thought at first.
Also I didn't managed it, to struct the code nice,
since there were a lot of things I didn't think of in
the beginning.

Now I want to make my little Mario jump and run.
It's very basic, only running left, running right,
jump, falls, jump right, jump left.

To prevent doing badly structured code again, I made
a plan what I need and outline the functions.

It would be nice, if you could give me some hints about
what essential things I forgot.

The code in the file is just pseudo-code, that way the
programming language used shouldn't matter(in my case: c++).

This is the file(PDF. If you need another formal to be able to read it
let me know).
http://home.arcor.de/sjnrw/mario.pdf
Don't be too harsh, it's the first time I outlined it that way.

best regards,

Aestond


Top
 Profile  
 
PostPosted: Wed Apr 18, 2012 12:19 am 
Funky Monkey

Joined: Thu Sep 09, 2004 1:17 pm
Posts: 1538
Location: burrowed
Very basic, but in concept correct.
Now the actual fun can begin, eh ;)

_________________
Long pork is people!

wzl's burrow


Top
 Profile  
 
PostPosted: Wed Apr 18, 2012 12:24 am 
Shake'n'Baker

Joined: Thu Dec 29, 2011 2:33 pm
Posts: 62
Okay, thanks.
Already started, collision detection sucks xD

Tomorrow I want to implement jumping and gravity.
Will post some code, as soon as I think it's not too embarrassing *g*


Top
 Profile  
 
PostPosted: Wed Apr 18, 2012 1:23 am 
Funky Monkey

Joined: Thu Sep 09, 2004 1:17 pm
Posts: 1538
Location: burrowed
aestond wrote:
Already started, collision detection sucks xD


Welcome to game programming ;)

_________________
Long pork is people!

wzl's burrow


Top
 Profile  
 
PostPosted: Wed Apr 18, 2012 2:31 pm 
Shake'n'Baker

Joined: Thu Dec 29, 2011 2:33 pm
Posts: 62
Hehe, thanks ("one of us, one of us, one of us")

Made good progress I think.
Only issue I didn't find a solution for yet is the jumping and running at the same time,
without the jump interrupting the running.

Here are the files, take a look if you want :)
Download game


Top
 Profile  
 
PostPosted: Wed Apr 18, 2012 6:15 pm 
Shake'n'Baker
User avatar

Joined: Mon Jun 14, 2010 3:51 pm
Posts: 62
nah, they work out fine. You can clearly see this when you are on the top tiles and jump while moving.

And pack the SDL.dll too (I just happened to have it in my archives)


Top
 Profile  
 
PostPosted: Thu Apr 19, 2012 6:08 pm 
Funky Monkey

Joined: Thu Sep 09, 2004 1:17 pm
Posts: 1538
Location: burrowed
Yeah, getting the actual character behavior right is not easy, though very essential.
Acceleration, deceleration, jumping velocity, air controls, slidyness. There's lots of nobs you can turn.

_________________
Long pork is people!

wzl's burrow


Top
 Profile  
 
PostPosted: Sun Apr 22, 2012 9:43 am 
Shake'n'Baker

Joined: Thu Dec 29, 2011 2:33 pm
Posts: 62
Just want to show you my latest updates:

Mario-clone download (sdl.dll included)

There is not much to do yet, most of the time I spent in reorganizing my code(
for example: The collision is now a function not belonging to a class, instead
it the coordinates of both objects I want to collision detect as arguments.
This way, I can detect everything with everything).

Short-term steps are:
- Improving the mapeditor
- programming a goal
- building 1-2 more maps
- building a menu

Long-term steps are:
- animate the movements of figures
- building clickable blocks(for coints)

Very long-term step:
- making the game sidescrolling

I think the next steps are well thought.
If you have advises about what to do different,
just let me know :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group