summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Paddle.cpp
AgeCommit message (Collapse)AuthorFilesLines
2022-06-05Apply clang-format to all C++ filesFinlay Davidson1-1/+1
2022-04-25Keep the paddle on screen in wholeReinhold Gschweicher1-1/+8
As suggested in https://github.com/InfiniTimeOrg/InfiniTime/issues/1062 in point 3. The paddle should be kept on screen and not travel out of the screen boundaries. Co-authored-by: Riku Isokoski <riksu9000@gmail.com>
2022-04-18Replace lv_label_set_text where possibleRiku Isokoski1-1/+1
2021-12-02Paddle: add a little randomization in the dy speedReinhold Gschweicher1-0/+9
To make the game a bit more challenging an less predictable add a little bit of randomness to the `dy` value. When hitting the right wall add a random number (one of [-1, 0, 1]) to the `dy` value. To keep the difficulty level managable limit the dy value to be in the range from -5 to 5.
2021-11-15Update includes to to be relative to src directoryReinhold Gschweicher1-3/+3
Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
2021-10-11Paddle: compare ballX coordinate with horizontal resolutionReinhold Gschweicher1-2/+2
Fix the comment as the comparison checks if the ball is at the right side of the screen. Compare the x coordinate of the ball with the horizontal resolution of the screen, instead of the vertical resolution. On the PinePhone this does make no difference as we have square 240x240 screen. Change it anyways to be completely correct.
2021-08-28Merge branch 'develop' into refresh_reworkRiku Isokoski1-4/+0
2021-07-19Set remaining default periods to LV_DISP_DEF_REFR_PERIODRiku Isokoski1-1/+1
2021-07-19Refresh reworkRiku Isokoski1-2/+4
2021-07-16Fix most issuesRiku Isokoski1-4/+0
2021-07-03Improve paddle gameRiku Isokoski1-114/+40
2021-04-24Reformatted all the files according to clang-format styleAvamander1-131/+106
2021-04-04Big UI and navigation RewriteJoaquim1-9/+4
new navigation add some color to the apps redesign menus new settings menu new quick settings code clean up size reduction by converting navigation images to font and more...
2021-01-28LVGL v7.10.0Joaquim1-2/+0
2020-12-20Update Paddle.cppZephyrLabs1-1/+0
blankline removal
2020-12-20Update Paddle.cppZephyrLabs1-16/+13
fix uppercase
2020-12-20Update Paddle.cppZephyrLabs1-1/+1
tranparent paddle bug fix.
2020-12-08Update Paddle.cppZephyrLabs1-21/+115
added changes from PR
2020-12-03Update Paddle.cppZephyrLabs1-2/+1
bugfix: add missing class
2020-12-03Update Paddle.cppZephyrLabs1-0/+1
create Paddle.cpp
2020-12-03Addition of new files in MakeListZephyrLabs1-0/+100
added Paddle.cpp and Paddle.h