You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UI/PongWars/README.md
+16-7Lines changed: 16 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
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.
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.
8
8
@@ -12,17 +12,26 @@ The game's theme is customized using Uno Platform colors through [Material Color
12
12
13
13
## Codebase
14
14
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.
19
19
20
20
## Screenshots
21
21
22
-

22
+
### Light Theme
23
23
24
-

24
+

25
+
26
+
### Dark Theme
27
+
28
+

29
+
30
+
### Different scaling and platforms
31
+
32
+

25
33
26
34
## What is the Uno Platform
27
35
28
36
[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.
0 commit comments