Car racing game in Sketchware
1. In main.xml , add two TextViews text_score and text_hs . Also add a Button button1 . 2. Add a SharedPreferences component sp:sp , and an Intent component intent . 3. Add onStart event and put blocks as shown below. 4. Create a new page game.xml . 5. In the event button1 onClick , use Intent to move to GameActivity. 6. Add two images in drawable folder with names car_yellow and car_blue . In Resource manager, in drawable folder, create a new file car_yellow.xml and put following codes in it. <?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="200dp" android:height="400dp" android:viewportWidth="80" android:viewportHeight="160"> <path android:fillColor="#FFEB3B" android:strokeColor="#222222" android:strokeWidth="1" android:strokeLineJoin="ro...