jeudi 5 avril 2012

Acceleration, gravity

Those two words are known by everyone, however, who can think about formulas without googling ? lol. Only a few people ^^
So after a look on wiki, I got my functions ready:



Then, I thought: "How am I supposed to make shit move?"
It's simple, put a constant acceleration, and then control maximum velocity !





Sounds easy, but a lot of work ^_^



However, these functions are messed up:
- Sprite goes right, ok

- Sprite wants to go left (xa < 0, but xv still > 0)

- So new xv will have (newxa * dt) + positivexv.
This means, our sprite will decelerate (not bad indeed). But this looks more like a slide effect
So I didn't coded a good moving engine, I just figured out how "Mickael Jackson : The Experience"'s moonwalk engine has been coded

Who thinks the same ?

"Debugging a handwritten C++ non-crashing but non-working-as-you-would-like code is as hard as understanding a woman, even if you have sex with her"




mardi 3 avril 2012

Technical informations

For now, I'm only focusing on the client, so I'll talk exclusively about it for a long time ^_^


To make it short:


Language: C++0x
Graphics: SDL


Detailled structure of the program:
The program is running 2 threads, the main that handles keyboard/mouse events. The second is only for rendering.

I've thought to display everything using layers, and widgets. So I can fool around the GUI, and even for my sprites using simple functions (I somehow copied the functioning of a web display)




Web display:


Now this is how it works in the game:





This said, how does the main look ?






























That's enough for tonight. Will post more later ^_^

Welcome

Hello you curious entity !


This blog is dedicated exclusively to show my 2D SideScrolling game.
If you have any question, feel free to ask. Also, anyone interested in helping on anything (Programming, Designing, Graphics, Sound, Story), feel free to ask aswell !