
A portfolio with horsepower
Rudra Rally turns my projects into pit stops on a playable 3D island. Here’s how I built it with Three.js and used AWS Amplify, API Gateway, Lambda, and DynamoDB to host the game and verify leaderboard runs.
A portfolio with a starting grid
I tested games before I built this one. At WeTest I spent time looking at how controls respond and how small interface choices change the way a game feels. For the AWS Student Builder Challenge , I wanted that side of my experience to come through when someone visited my portfolio.
The result is Rudra Rally , a two-lap kart racer on Curiosity Island. Lap one stops at four project gates. FirstShot explains paint colour matching, FireGuard shows an embedded fire-detection prototype, Kiwi + Litchi walks through accounting automation, and Food Data explores packaged-food nutrition. The timer pauses while you read. Lap two is open racing against four CPU rivals, with ramps, shortcuts, items and coins worth 100 points each.
You can also choose Scenic Tour and let cruise control drive. The top navigation opens my projects, driver profile and skill garage directly. If you only have a minute, you can get to the portfolio without starting a run.

Figure 1. Scenic Tour gameplay

Figure 2. FirstShot checkpoint

Figure 3. Racing on mobile
What runs on AWS
The browser renders the island with Three.js and advances the simulation at 60 ticks per second. The backend runs in ap-south-1 (Mumbai). It handles work that has to be shared across players, such as validating a run, publishing a leaderboard entry and counting reviews.
Service | Role in Rally |
|---|---|
AWS Amplify Hosting | Serves the HTML, CSS, bundled JavaScript, fonts, illustrations and audio over HTTPS from the existing main branch. |
Amazon API Gateway HTTP API | Exposes six routes and forwards them to Lambda using a proxy integration. The default stage auto-deploys API changes and has a target throttle of 5 requests per second with a burst of 10. CORS permits the live site and local previews. |
AWS Lambda | A Node.js 22 function issues signed tokens, replays race inputs and validates record and review submissions. The function is configured for 256 MB and a 15-second timeout. |
Amazon DynamoDB | An on-demand table stores leaderboard entries, private reviews and a public rating aggregate using a partition key and sort key. |
IAM and Amazon CloudWatch Logs | The Lambda execution role grants the table operations the function needs and permissions for its function logs. CloudWatch Logs captures backend errors for troubleshooting. |

Figure 4. Amplify Hosting deployment history

Figure 5. Rally HTTP API routes

Figure 6. API Gateway automatic deployment

Figure 7. Lambda function and API trigger

Figure 8. DynamoDB table configuration
What happens when you save a time
- Start. The browser calls
POST /runs/start. Lambda returns a random seed and an HMAC-signed token that binds the run ID, seed, mode, start time and course version.
- Drive. The browser records changes in controls against simulation ticks. Checkpoint reading and pause time are outside the simulation clock.
- Replay. On save, the browser sends the token, input log and final tick to
POST /runs/finish. Lambda verifies the token, runs the same simulation code and checks that the replay finished. It also checks that the claimed run did not finish faster than the elapsed wall-clock time, within a small tolerance. A valid replay earns a signed finish receipt.
- Store and rank.
POST /scoresaccepts the receipt and a public alias. A conditional write prevents the same receipt from adding a duplicate score.GET /scoresqueries the supported course and mode partitions, merges the results, and returns the fastest five. You can skip saving entirely.

Figure 9. Two-lap finish and optional record
That design lets the server compute the result itself. Someone could still script valid control inputs, so replay validation is a check on the result rather than proof a person drove the run.
The stars on the homepage use a separate flow.
POST /reviews accepts one to five stars and an optional comment. A DynamoDB transaction stores the review and increments the rating total and count together. GET /reviews/summary only returns the average and count. Comments stay available to authorized AWS account users, with no public route to read them. The browser identifier helps prevent accidental duplicate votes, though clearing storage can create a new identifier.How I ship changes
- Build and test.
npm run buildbundles the frontend intodist/.npm testruns the simulation and collision checks. Track geometry changes can also regenerate the shared course data withnpm run build:course.
- Package and publish the frontend. I start
python3 deploy.pywhen I want to release. It packagesdist/, requests an Amplify deployment for the existing branch, uploads the ZIP through a temporary signed URL and polls the job until it succeeds or fails. That keeps the public link stable across releases.
- Update the backend when needed.
tools/provision.pypackages the Lambda handler with the same engine, track and collision modules that the browser uses. It uses local infrastructure state to reuse the AWS resources. API Gateway’s default stage auto-deploys route configuration changes. The GitHub repository is the source and documentation home. Frontend releases are triggered by running the script.

Figure 10. Frontend deployment script

Figure 11. Lambda packaging script
What I learned after the first laps
The ramps exposed a distinction I kept running into: a track can look right and still behave wrong. The ramp needed a solid deck and a matching driving surface so the kart could climb it and launch from the lip. Collision checks also had to account for how far a boosted kart moves between ticks. Even a recent fix, where a coin clipped into a ramp, came down to deriving the coin’s display height from the same surface the kart uses.
The leaderboard made course changes a backend concern as well. If a new track changes driving physics, the browser and Lambda must use matching course data. Run tokens carry a course version so a replay is verified against the intended rules. The current board includes both supported historical and current partitions, so a future competitive physics change would also warrant deciding which times to compare.
The ten automated checks cover two-lap finishes, replay determinism, malformed inputs, collision sweeps, ramp geometry and item and coin behavior. For this article I also ran the live Scenic Tour to check that the actual checkpoint flow matches the description.
Take it for a spin
Play Rudra Rally and try Start your engine on desktop or Scenic Tour on a phone. If you finish, save a time under an alias if you’d like to join the leaderboard. Then tap Rate the ride on the homepage to leave an honest star rating and, optionally, a private note.

Figure 12. Rate the ride
I’d love to hear what you’d improve in the Builder Center comments. Did the steering feel responsive on your device? Did the project stops make you want to read more? If you could change one thing about the track, what would it be?
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article