Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/vice-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: VICE VI Mobile APK

on:
push:
branches: [ "main", "arena/2261e308-nextvr-android" ]
branches: [ "main", "arena/bb935b38-nextvr-android" ]
pull_request:
paths:
- 'vice-game/**'
Expand Down Expand Up @@ -73,20 +73,20 @@ jobs:
ls -lh vice6-mobile.zip

- name: Publish release with direct APK & ZIP download links
if: github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'arena/2261e308-nextvr-android')
if: github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'arena/bb935b38-nextvr-android')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -e
APK=$(find "$GITHUB_WORKSPACE/vice-game/android/app/build/outputs/apk" -name '*.apk' -print -quit)
cp "$APK" "$GITHUB_WORKSPACE/vice6-mobile.apk"
TAG="vice6-mobile-v0.2.0"
NOTES="VICE VI Mobile (GTA 6 Mobile) v0.2.0 com os 8 modelos 3D .glb integrados (Corvette Stingray, Fiesta, Pontiac GTO, Cruze Police, Moto 004, Motorhome Triple E Commander, Standing Man + Citizen NPC Pack). Commit ${GITHUB_SHA}."
TAG="vice6-mobile-v0.7.0"
NOTES="VICE VI Mobile (GTA 6 Mobile) v0.7.0 — OCEANO REALISTA: ondas vértice a vértice com arrebentação 3D em 4 faixas e espuma volumétrica, ARQUIPÉLAGO DE ILHAS no horizonte (Starfish Cay, Pelican Reef Resort, Ilha Esmeralda e Serra Costeira com faróis giratórios, resorts e veleiros), fim do 'água até o infinito'! BANCO NACIONAL MONUMENTAL: pedra neoclássica texturizada, 4 colunas coríntias, frontão triangular com sol dourado, escadaria + tapete vermelho, torre corporativa de vidro espelhado com antena dourada e lustres de cristal no saguão com o COFRE (6 estrelas)! MALHA VIÁRIA COMPLETA: Avenidas AMPLAS com canteiro central (28m), Normais (18m) e RUAS ESTREITAS/Becos (9m) em toda a cidade! GRANDES PONTES ESTAIADAS MONUMENTAIS com torres H-frame de 40-46m e estais em leque ligando Vice Leonida ↔ Palm Bay City ↔ Vice Keys + Viaduto do Aeroporto! MAPA GPS EXPANDIDO NÍTIDA EM HiDPI/devicePixelRatio com estética GTA V moderna (oceano gradiente, contornos batimétricos, hierarquia viária âmbar, metrorail tracejado, pista do aeroporto, rosa dos ventos, escala 500m e moldura neon)! TÚNEIS rodoviários iluminados com portal e morro por cima! TREM EXPRESSO METRORAIL em movimento com buzina, 2 ESTAÇÕES caminháveis (plataformas, cobertas, bancos e letreiro) e embarque grátis! AEROPORTO INTERNACIONAL VIA: pista zebrada listrada, luzes de borda, jatos comerciais e executivo 3D, torre com radar giratório, terminal ENTRÁVEL com check-in, assentos e painel de partidas + avião no circuito de tráfego! LOJAS ENTRÁVEIS A PÉ literalmente (24/7 Vice Mart, Ammu-Nation e Neon Threads) com interior completo, atendentes, prateleiras e COMPRA DIRETA NO INTERIOR! Commit ${GITHUB_SHA}."
if ! gh release view "$TAG" > /dev/null 2>&1; then
gh release create "$TAG" --title "VICE VI Mobile (GTA 6 Mobile) v0.2.0 — Modelos 3D .GLB" \
gh release create "$TAG" --title "VICE VI Mobile (GTA 6 Mobile) v0.7.0 — Oceano Real, Ilhas, Banco Monumental, Pontes Gigantes, Metrorail, Aeroporto & Lojas Entráveis" \
--notes "$NOTES" --target "$GITHUB_SHA" --prerelease
else
gh release edit "$TAG" --title "VICE VI Mobile (GTA 6 Mobile) v0.2.0 — Modelos 3D .GLB" \
gh release edit "$TAG" --title "VICE VI Mobile (GTA 6 Mobile) v0.7.0 — Oceano Real, Ilhas, Banco Monumental, Pontes Gigantes, Metrorail, Aeroporto & Lojas Entráveis" \
--notes "$NOTES" --target "$GITHUB_SHA" --prerelease
gh api --method PATCH "repos/$GITHUB_REPOSITORY/git/refs/tags/$TAG" \
-f sha="$GITHUB_SHA" -F force=true > /dev/null
Expand Down
405 changes: 395 additions & 10 deletions tests/vice-game.test.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions vice-game/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
applicationId "com.nextvr.vice6"
minSdkVersion 26
targetSdkVersion 35
versionCode 2
versionName "0.2.0"
versionCode 7
versionName "0.7.0"
}

compileOptions {
Expand Down
219 changes: 219 additions & 0 deletions vice-game/dev.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
<!doctype html>
<html lang="pt-BR">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<meta name="theme-color" content="#0b0e1d" />
<title>VICE VI Mobile — Playtest Local</title>
<meta name="description" content="Central local de testes do VICE VI Mobile: jogue, envie modelos .glb e acompanhe o que está carregado. Funciona 100% offline." />
<link rel="icon" href="assets/brand/vice6-icon.svg" type="image/svg+xml" />
<style>
:root {
--pink: #ff2a85;
--cyan: #00f5d4;
--gold: #ffd166;
--green: #52f7b8;
--bg: #090c1a;
--panel: rgba(15, 20, 43, 0.88);
--stroke: rgba(255, 255, 255, 0.14);
}
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
color: #fff;
background:
radial-gradient(circle at 82% 12%, rgba(255, 42, 133, 0.35), transparent 55%),
radial-gradient(circle at 12% 88%, rgba(0, 245, 212, 0.22), transparent 55%),
linear-gradient(180deg, #0d1130 0%, #090c1a 60%);
padding: 18px 16px 48px;
}
.wrap { max-width: 1060px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 46px; height: 46px; filter: drop-shadow(0 0 12px rgba(255, 42, 133, 0.6)); }
h1 { margin: 0; font-size: 22px; letter-spacing: 0.06em; }
h1 span { color: var(--cyan); }
.badge {
font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em;
color: #0b0e1d; background: var(--gold); padding: 4px 10px; border-radius: 999px;
display: inline-block; margin-top: 2px;
}
.status-pill {
font-size: 11px; color: var(--green); border: 1px solid rgba(82, 247, 184, 0.45);
padding: 6px 12px; border-radius: 999px; background: rgba(82, 247, 184, 0.06); white-space: nowrap;
}
.grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.panel {
background: var(--panel); border: 1px solid var(--stroke); border-radius: 18px;
padding: 18px; backdrop-filter: blur(8px);
}
.play-card {
display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
min-height: 280px; position: relative; overflow: hidden;
}
.play-card::after {
content: 'VICE BEACH'; position: absolute; right: -14px; bottom: -22px;
font-size: 92px; font-weight: 900; line-height: 1; opacity: 0.07;
font-style: italic; letter-spacing: -0.04em; pointer-events: none;
}
.play-card h2 { margin: 0; font-size: 30px; line-height: 1.12; }
.play-card h2 em { color: var(--pink); font-style: normal; text-shadow: 0 0 22px rgba(255, 42, 133, 0.5); }
.play-card p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 13.5px; max-width: 42ch; }
.btn {
display: inline-flex; align-items: center; gap: 10px; border: none; cursor: pointer;
text-decoration: none; font-weight: 900; letter-spacing: 0.08em; border-radius: 14px;
padding: 16px 26px; font-size: 17px; color: #fff;
background: linear-gradient(90deg, var(--pink), #7209b7);
box-shadow: 0 10px 30px rgba(255, 42, 133, 0.4); transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(0.97); }
.btn--ghost {
background: transparent; border: 1px solid var(--cyan); color: var(--cyan);
box-shadow: none; font-size: 12.5px; padding: 10px 16px; letter-spacing: 0.05em;
}
.btn--ghost:hover { background: rgba(0, 245, 212, 0.08); }
.panel h3 {
margin: 0 0 10px; font-size: 12px; letter-spacing: 0.18em; color: var(--gold);
text-transform: uppercase; border-bottom: 1px solid var(--stroke); padding-bottom: 8px;
}
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 12.5px; color: rgba(255,255,255,0.85); }
.controls div { display: flex; align-items: center; gap: 8px; }
kbd {
background: #1d2342; border: 1px solid rgba(255,255,255,0.25); border-bottom-width: 3px;
border-radius: 6px; padding: 2px 7px; font-family: ui-monospace, monospace; font-size: 11px; min-width: 26px;
text-align: center; color: var(--cyan);
}
ul.models { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
ul.models li {
display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11.5px;
background: rgba(255,255,255,0.04); border: 1px solid var(--stroke); border-radius: 10px; padding: 7px 10px;
}
ul.models code { color: var(--gold); font-size: 11px; word-break: break-all; }
ul.models small { color: rgba(255,255,255,0.5); white-space: nowrap; }
.empty { color: rgba(255,255,255,0.6); font-size: 12px; border: 1px dashed var(--stroke); border-radius: 10px; padding: 12px; text-align: center; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.muted { color: rgba(255,255,255,0.55); font-size: 11px; margin: 8px 0 0; line-height: 1.5; }
.git-note {
border: 1px solid rgba(255, 209, 102, 0.4); background: rgba(255, 209, 102, 0.07); color: var(--gold);
border-radius: 12px; padding: 10px 14px; font-size: 12px; line-height: 1.5;
}
footer { text-align: center; color: rgba(255,255,255,0.35); font-size: 10.5px; margin-top: 6px; }
</style>
</head>
<body>
<div class="wrap">

<header>
<div class="logo">
<img src="assets/brand/vice6-icon.svg" alt="VICE VI" onerror="this.style.display='none'" />
<div>
<h1>VICE <span>VI</span> MOBILE</h1>
<span class="badge">PLAYTEST LOCAL · BUILD 7E4677A · v0.8.0-dev</span>
</div>
</div>
<div class="status-pill" id="net-pill">● SERVIDOR LOCAL ONLINE · :8090</div>
</header>

<div class="git-note">
🧯 <strong>Git fora do ar? Sem stress.</strong> Este playtest roda 100% local (bundle + assets nesta máquina) —
não depende de GitHub, git ou internet. O progresso do jogo nunca passa pela rede.
</div>

<div class="grid">
<!-- HERO: jogar -->
<section class="panel play-card">
<h2>Entre em <em>Vice Leonida</em><br />e suma no horizonte.</h2>
<p>Mar novo até onde a vista alcança, mira Complex do GTA VI, HUD minimalista, casas da Flórida
e placas das ruas de Miami. Rafael te espera no Calçadão.</p>
<a class="btn" href="./" >▶ &nbsp;JOGAR AGORA</a>
<div class="row" style="margin:0">
<a class="btn btn--ghost" href="./upload-glb.html">📤 ENVIAR MODELOS .GLB</a>
<a class="btn btn--ghost" href="./index.html">↻ RECARREGAR O JOGO</a>
</div>
</section>

<!-- Controles -->
<section class="panel">
<h3>Controles (PC)</h3>
<div class="controls">
<div><kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd> mover / dirigir</div>
<div><kbd>Shift</kbd> correr</div>
<div><kbd>F</kbd> / <kbd>E</kbd> entrar · sair · agir</div>
<div><kbd>Espaço</kbd> pular / freio de mão</div>
<div><kbd>Q</kbd> trocar arma</div>
<div><kbd>R</kbd> trocar rádio</div>
<div><kbd>J</kbd> atirar</div>
<div><kbd>X</kbd> render à polícia</div>
<div><kbd>M</kbd> mapa GPS</div>
<div><kbd>G</kbd> garagem 3D</div>
<div><kbd>Esc</kbd> / <kbd>P</kbd> menu</div>
<div>🖱 arrastar = girar câmera</div>
</div>
<p class="muted">No celular: analógico esquerdo + botões contextuais na tela; toque no radar abre o mapa.
Tudo que era pílula fixa virou ☰ (menu) + toasts — igual GTA VI.</p>
</section>
</div>

<div class="grid">
<!-- Modelos GLB carregados -->
<section class="panel">
<div class="row">
<h3 style="border:none;margin:0;padding:0">Modelos .GLB no projeto</h3>
<a class="btn btn--ghost" href="./upload-glb.html">+ ENVIAR</a>
</div>
<ul class="models" id="model-list"><li class="empty">carregando /api/models…</li></ul>
<p class="muted">Arraste <code>.glb</code> na página de envio e eles caem em <code>assets/models/</code>.
Detecção automática por nome: <code>palm|tree|building|car-extra.glb</code> viram cenário/carros extras;
slots <code>rafael|lucia|jason|supercar|cabrio|muscle|bike|police.glb</code> substituem os modelos padrão.
Clipes Mixamo (<code>run|idle|jump|fall|bike|aim...</code>) entram nas animações.</p>
</section>

<!-- O que testar -->
<section class="panel">
<h3>Roteiro de teste rápido</h3>
<ol style="margin:0;padding-left:18px;font-size:12.5px;line-height:1.9;color:rgba(255,255,255,0.85)">
<li>Nasça no calçadão da <strong>OCEAN DR</strong> e olhe para o mar: a água vai até o horizonte, sem listras.</li>
<li>Ande pela <strong>COLLINS AVE</strong> / <strong>WASHINGTON AVE</strong>: confira as placas verdes nos cruzamentos.</li>
<li>Procure uma casa pastel com <strong>telhado de barril terracota</strong> (Mediterrâneo) e uma de laje plana com <strong>neon de canto</strong> (Streamline).</li>
<li>Atire uma vez e veja a <strong>mira Complex</strong> (3 linhas + ponto) do GTA VI.</li>
<li>Abra o <strong>☰</strong> (ou Esc): mapa, missões, carros 3D, Ammu-Nation e sistema — HUD limpo.</li>
<li>Toque no <strong>radar circular</strong> para abrir o mapa; o bairro agora aparece só como toast na chegada.</li>
<li>Roube o carro, corra pela praia e veja o velocímetro; a polícia dispara 6 estrelas no cofre do Banco.</li>
</ol>
</section>
</div>

<footer>VICE VI Mobile · Playtest local em 127.0.0.1:8090 · build 7e4677a · nenhum dado sai da sua máquina</footer>
</div>

<script>
(async function () {
const list = document.getElementById('model-list');
const pill = document.getElementById('net-pill');
const fmt = bytes => bytes >= 1048576 ? (bytes / 1048576).toFixed(1) + ' MB' : Math.max(1, Math.round(bytes / 1024)) + ' KB';
try {
const res = await fetch('./api/models', { cache: 'no-store' });
const data = await res.json();
pill.textContent = '● SERVIDOR LOCAL ONLINE · :8090';
pill.style.color = 'var(--green)';
const models = (data && data.models) || [];
if (!models.length) {
list.innerHTML = '<li class="empty">Nenhum .glb ainda — use ENVIAR MODELOS .GLB.</li>';
return;
}
list.innerHTML = models.map(m =>
`<li><code>${m.name}</code><small>${fmt(m.size)}</small></li>`
).join('');
} catch (err) {
pill.textContent = '● /api/models indisponível (abrindo via arquivo?)';
pill.style.color = 'var(--gold)';
list.innerHTML = '<li class="empty">Não consegui listar os modelos — sirva a pasta vice-game/ com <code>node serve.mjs</code>.</li>';
}
})();
</script>
</body>
</html>
Loading