Skip to content

Commit 6de417d

Browse files
agneszitteMartinZikmund
authored andcommitted
docs: Adjust README.md with latest details and updated screenshots
1 parent 6011d2f commit 6de417d

File tree

8 files changed

+16
-7
lines changed

8 files changed

+16
-7
lines changed

UI/PongWars/PongWars-dark.png

-23.3 KB
Binary file not shown.

UI/PongWars/PongWars-light.png

-17.1 KB
Binary file not shown.

UI/PongWars/PongWars-video.mp4

-6.01 MB
Binary file not shown.

UI/PongWars/README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Uno PongWars is a simple minigame that draws inspiration from the [PongWars HTML/JavaScript sample](https://github.com/vnglst/pong-wars). Set in the backdrop of the eternal conflict between day and night, good and bad.
44

5-
![PongWars Video](https://github.com/unoplatform/Uno.Samples/blob/df409bcf31e015edaad621e7cdcd573ab8f3adcd/UI/PongWars/PongWars-video.mp4)
5+
![PongWars in action](doc/assets/PongWars.gif)
66

77
The app harnesses the power of [Uno Platform](https://platform.uno) to run natively on the Web (via WebAssembly), Windows, Linux, Mac Catalyst, iOS, and Android.
88

@@ -12,17 +12,26 @@ The game's theme is customized using Uno Platform colors through [Material Color
1212

1313
## Codebase
1414

15-
* [**GamePage.cs**](PongWars/UnoPongWars/Presentation/GamePage.cs): Defines the visual representation of the game using [C# Markup](https://aka.platform.uno/csharp-markup) syntax. It creates a ItemsRepeater layout containing the game board with cells and other UI elements such as TextBlock and Slider. The GamePage class binds UI elements to properties in the GameModel to reflect the game state visually. Additionally, it sets up color schemes and event handlers to interact with the game.
16-
* [**GameModel.cs**](PongWars/UnoPongWars/Presentation/GameModel.cs): Manages the game's state and behavior. It initializes the game's title, speed, cells, and score. The GameModel class also establishes the relationship between the game logic and the presentation layer. It utilizes [MVUX](https://aka.platform.uno/mvux) for state management, ensuring a clean separation of concerns between the UI and the underlying game logic.
17-
* [**Game.cs**](PongWars/UnoPongWars/Presentation/Game.cs): Contains the core logic of the game. It manages the game state, including the position and direction of the balls and the cells on the game board. The Game class implements game logic for ball movement, collisions with walls, and updating the game state. It utilizes records to manage state immutably, ensuring the integrity of the game state throughout the gameplay.
18-
* [**Cell.cs**](PongWars/UnoPongWars/Presentation/Cell.cs): Represents a single cell on the game board. Each cell has properties such as its position, player (green or blue), and whether it contains a ball. The Cell class is utilized in the game logic for collision detection and updating the game state.
15+
* [**GamePage.cs**](src/UnoPongWars/Presentation/GamePage.cs): Defines the visual representation of the game using [C# Markup](https://aka.platform.uno/csharp-markup) syntax. It creates a ItemsRepeater layout containing the game board with cells and other UI elements such as TextBlock and Slider. The GamePage class binds UI elements to properties in the GameModel to reflect the game state visually. Additionally, it sets up color schemes and event handlers to interact with the game.
16+
* [**GameModel.cs**](src/UnoPongWars/Presentation/GameModel.cs): Manages the game's state and behavior. It initializes the game's title, speed, cells, and score. The GameModel class also establishes the relationship between the game logic and the presentation layer. It utilizes [MVUX](https://aka.platform.uno/mvux) for state management, ensuring a clean separation of concerns between the UI and the underlying game logic.
17+
* [**Game.cs**](src/UnoPongWars/Presentation/Game.cs): Contains the core logic of the game. It manages the game state, including the position and direction of the balls and the cells on the game board. The Game class implements game logic for ball movement, collisions with walls, and updating the game state. It utilizes records to manage state immutably, ensuring the integrity of the game state throughout the gameplay.
18+
* [**Cell.cs**](src/UnoPongWars/Presentation/Cell.cs): Represents a single cell on the game board. Each cell has properties such as its position, player (green or blue), and whether it contains a ball. The Cell class is utilized in the game logic for collision detection and updating the game state.
1919

2020
## Screenshots
2121

22-
![PongWars Screenshot in Light Theme](PongWars-light.png)
22+
### Light Theme
2323

24-
![PongWars Screenshot in Dark Theme](PongWars-dark.png)
24+
![PongWars Screenshot in Light Theme](doc/assets/PongWars-LightMode.png)
25+
26+
### Dark Theme
27+
28+
![PongWars Screenshot in Dark Theme](doc/assets/PongWars-DarkMode.png)
29+
30+
### Different scaling and platforms
31+
32+
![PongWars Screenshot with different scales and on different platforms](doc/assets/PongWars-MultiplePlatforms.png)
2533

2634
## What is the Uno Platform
2735

2836
[Uno Platform](https://platform.uno) is an open-source .NET platform for building single codebase native mobile, web, desktop, and embedded apps quickly.
37+
For additional information about Uno Platform or if you have any feedback to share, please refer to the [README.md](../../README.md) file in this Samples repository.
15.9 KB
Loading
17.5 KB
Loading
151 KB
Loading

UI/PongWars/doc/assets/PongWars.gif

402 KB
Loading

0 commit comments

Comments
 (0)