creator1creeper1
6f592a32cc
FlappyBug: Propagate errors in Cloud class
...
Move-construct Cloud into the Game class to improve
error handling.
2021-12-23 17:42:05 -08:00
creator1creeper1
ff359c27e3
FlappyBug: Propagate errors in Bug class
...
Move-construct Bug into the Game class to improve
error handling.
2021-12-23 17:42:05 -08:00
Astraeus-
29d5fee07e
FlappyBug: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Brian Gianforcaro
cf4fa936be
Everywhere: Use default execpromises argument for Core::System::pledge
2021-11-28 08:04:57 +01:00
Pedro Pereira
2f5f53d1cf
FlappyBug: TRY() all the things in serenity_main() :^)
2021-11-27 17:18:44 +01:00
Pedro Pereira
da50667bb5
FlappyBug: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
9d2e169169
FlappyBug+Spider: Update GUI:Application::construct usage
...
Update code to use Main:Arguments directly.
2021-11-23 14:15:00 +01:00
Andreas Kling
21a5fb0fa2
LibCore+LibSystem: Move syscall wrappers from LibSystem to LibCore
...
With this change, System::foo() becomes Core::System::foo().
Since LibCore builds on other systems than SerenityOS, we now have to
make sure that wrappers work with just a standard C library underneath.
2021-11-23 11:33:36 +01:00
Pedro Pereira
85ae298b85
FlappyBug: Port to LibMain
...
Simplified two pledge() and two unveil() by using TRY().
2021-11-22 21:02:14 -08:00
Luke Wilde
fd51a3cf15
FlappyBug: Remove wpath and cpath pledges
...
With the move to LibConfig, these are no longer needed.
2021-08-28 12:22:16 +04:30
Ralf Donau
5a0be07cf0
FlappyBug: Use LibConfig instead of Core::ConfigFile
2021-08-26 19:54:50 +02:00
Ralf Donau
9bef96748d
Games: Make cpath appear once in the pledge promises
2021-08-22 23:39:41 +02:00
networkException
acde7d12b0
Everywhere: Rename get in ConfigFile::get_for_{lib,app,system} to open
...
This patch brings the ConfigFile helpers for opening lib, app and system
configs more inline with the regular ConfigFile::open functions.
2021-08-22 01:32:25 +02:00
networkException
938051feb8
Everywhere: Use Core::ConfigFile::AllowWriting::Yes to allow writing
2021-08-22 01:32:25 +02:00
Andreas Kling
687a12d7fb
Userland: Add GUI::Window::add_menu() and use it everywhere
...
Applications previously had to create a GUI::Menubar object, add menus
to it, and then call GUI::Window::set_menubar().
This patch introduces GUI::Window::add_menu() which creates the menubar
automatically and adds items to it. Application code becomes slightly
simpler as a result. :^)
2021-07-21 21:24:26 +02:00
Timothy Flynn
1a2053781f
FlappyBug: Persist high score to disk
...
Previously, the high score was only in-memory, so only persisted for as
long as the FlappyBug window was open.
2021-06-22 23:05:10 +02:00
Mim Hufford
811d9722f9
FlappyBug: Introduce a new Flappy Bug game
...
This introduces a Flappy Bug game. It's pretty simple currently, but is
playable.
2021-06-20 10:54:27 +01:00