Skip to content

Commit 0938246

Browse files
committed
feat: Implement the core game logic, UI, and VEXT integration for the new Aether Strike game.
1 parent 676df0d commit 0938246

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

apps/backend/src/features/auth/auth.routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const authRoutes = new Elysia({ prefix: '/api/auth' })
4242
const defaultAvatars = ['avatar_blue.svg', 'avatar_green.svg', 'avatar_red.svg'];
4343
const randomAvatar = defaultAvatars[Math.floor(Math.random() * defaultAvatars.length)];
4444
// Hardcoding backend URL for now or use env
45-
const backendUrl = process.env.BACKEND_URL;
45+
const backendUrl = process.env.BACKEND_URL || 'https://vext-backend-yj77.onrender.com';
4646
const profile_pic = `${backendUrl}/public/avatars/${randomAvatar}`;
4747

4848
const hashedPassword = await Bun.password.hash(password, { algorithm: 'bcrypt', cost: 10 });

games/aether_strike/src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,10 @@ async fn main() {
864864
is_area = skill.skill_type.to_lowercase().contains("aoe");
865865
}
866866
client.use_attack(name, Some(target_id), damage, mana, is_area);
867+
868+
// Auto-End Turn after attack in Multiplayer
869+
let next = turn_system.peek_next_id();
870+
client.end_turn(next);
867871
}
868872
HUDAction::Flee => { client.flee(); }
869873
HUDAction::EndTurn => {

render.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ services:
3030
sync: false
3131
- key: REDIS_URL
3232
sync: false
33+
- key: BACKEND_URL
34+
value: https://vext-backend-yj77.onrender.com
3335

3436
# --------------------------------------------------------------------------------
3537
# WEBSOCKET SERVER (Launcher/Legacy) - apps/server

0 commit comments

Comments
 (0)