aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/Paddle.cpp
Commit message (Collapse)AuthorAgeFilesLines
* screens: Remove unused DisplayApp parametersRiku Isokoski2023-02-251-1/+1
|
* screens: Remove explicit Screen constructorsRiku Isokoski2023-02-251-1/+1
| | | | | This constructor didn't do anything since DisplayApp reference was removed from the Screen base class.
* src: Enable unused parameter warningRiku Isokoski2023-01-241-2/+2
| | | | | | Fix warnings. Some clang-formatting was necessary. DebugPins is unused and was removed.
* Apply clang-format to all C++ filesFinlay Davidson2022-06-051-1/+1
|
* Keep the paddle on screen in wholeReinhold Gschweicher2022-04-251-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>
* Replace lv_label_set_text where possibleRiku Isokoski2022-04-181-1/+1
|
* Paddle: add a little randomization in the dy speedReinhold Gschweicher2021-12-021-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.
* Update includes to to be relative to src directoryReinhold Gschweicher2021-11-151-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.
* Paddle: compare ballX coordinate with horizontal resolutionReinhold Gschweicher2021-10-111-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.
* Merge branch 'develop' into refresh_reworkRiku Isokoski2021-08-281-4/+0
|\
| * Fix most issuesRiku Isokoski2021-07-161-4/+0
| |
* | Set remaining default periods to LV_DISP_DEF_REFR_PERIODRiku Isokoski2021-07-191-1/+1
| |
* | Refresh reworkRiku Isokoski2021-07-191-2/+4
|/
* Improve paddle gameRiku Isokoski2021-07-031-114/+40
|
* Reformatted all the files according to clang-format styleAvamander2021-04-241-129/+104
|
* Big UI and navigation RewriteJoaquim2021-04-041-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...
* LVGL v7.10.0Joaquim2021-01-281-2/+0
|
* Update Paddle.cppZephyrLabs2020-12-201-1/+0
| | | | blankline removal
* Update Paddle.cppZephyrLabs2020-12-201-16/+13
| | | | fix uppercase
* Update Paddle.cppZephyrLabs2020-12-201-1/+1
| | | | tranparent paddle bug fix.
* Update Paddle.cppZephyrLabs2020-12-081-21/+115
| | | | added changes from PR
* Update Paddle.cppZephyrLabs2020-12-031-2/+1
| | | | bugfix: add missing class
* Update Paddle.cppZephyrLabs2020-12-031-0/+1
| | | | create Paddle.cpp
* Addition of new files in MakeListZephyrLabs2020-12-031-0/+100
added Paddle.cpp and Paddle.h