From 4da60d994327205e98f9e46bfc26de6a8237b205 Mon Sep 17 00:00:00 2001 From: Logen Kain Date: Tue, 11 Apr 2017 19:57:15 -0700 Subject: [PATCH] idea: platformer love design doc --- ideas/platform_love_design.txt | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 ideas/platform_love_design.txt diff --git a/ideas/platform_love_design.txt b/ideas/platform_love_design.txt new file mode 100644 index 0000000..e3ba7b5 --- /dev/null +++ b/ideas/platform_love_design.txt @@ -0,0 +1,45 @@ +Create a platformer that contains just a character that jumps onto floating (non moving) platforms. + +Graphics + Load graphics into memory + load in background + Use example background (ubuntu 7.10?) + load in platforms + load in character graphics + load in floor + Have a break in the floor for char to fall and die + place platforms in various places to jump on (within jumping ability as determined) + place char in bottom left corner of screen + +Sounds + Load in jump sound + Load in death sound + Load in music + +Controls + Move char left and right + bind 'a' 's' 'left' and 'right' + Have char jump + bind 'space' to jump + have set height and speed in which char goes up when jumping + have set height and speed in which char goes down (falls) + Have quit binding + press 'esc' to quit + +Collision + Have char collide with floor + have char collide with platforms + don't let char wander off screen + In cases where char can (such as hole in floor) + play death sound + reload starting graphics after a few seconds or press a key + +Main loop + blit graphics to screen if there are changes + Move char if input received + check for colisions with char and perform actions as expected + check_col(floor) + check_col(enemy) # Yea, I know there are no enemies this is just example + check_col(platform) # may be same as floor + #Or perhaps, check_col(above char) && check_col(left of char) etc... +