Ha ha. Yeah if you look at some of the source I've posted around here (which granted I have no idea where those things are now... I need to take some time one day and do a search for all of the projects I share and link them in my signature I think)... they should all basically follow the same patterns. States are used to control everything at the high level... basically it sets the goal like walking, ducking, attacking, dodging, etc. Depending on complexity states may be broken down into one or more Tasks. But anyway.... then at the lower level yes every object has xp and yp specifying its current position and xv and yv specifying its current velocity.
Actually, I am not sure if I have ever shared a project on here for a platformer. I might make a very very basic one to post at some point.
TI/994a (BASIC) -> C64 (BASIC/PASCAL/ASM/Others) -> Amiga (AMOS/BLITZ/ASM/C/Gamesmith) -> DOS (C/C++/Allegro) -> Windows (C++/C#/Monkey X/GL Basic/Unity/Others)