From 0d375f8679a5785594b0a03534bb4fb71f042d89 Mon Sep 17 00:00:00 2001 From: CalisJI Date: Fri, 23 Aug 2024 09:53:31 +0700 Subject: [PATCH] Update README --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 7a11152..51d6159 100644 --- a/README.md +++ b/README.md @@ -27,3 +27,25 @@ ser.write(data_to_send) ser.close() ``` +# Data frame format +```python +# Game Hung Vat +x = 60 # X coordinate +y = 120 # Y coordinate (no action) +z = 1 # action (no action) +data = np.array([[60, 120,1]]).astype(np.float32) + +# Game Stick Man +x = 60 # X coordinate +y = 120 # Y coordinate (no action) +z = 1 # 1: right shield; 2 left shield; 0 none sheild +data = np.array([[60, 120,1]]).astype(np.float32) + +#Game Space Invaders + +x = 60 # X coordinate +y = 120 # Y coordinate (no action) +z = 1 # 1: fire bullet; 0 none fire +data = np.array([[60, 120,1]]).astype(np.float32) + +``` \ No newline at end of file