mirror of
https://github.com/csd4ni3l/loginween.git
synced 2026-01-01 12:33:49 +01:00
Add whack a pumpkin and best score, move games to game_info and setup_game, make a modular basegame template and build upon that, fix game settings not using the current game specific settings
This commit is contained in:
34
templates/gamebase.jinja2
Normal file
34
templates/gamebase.jinja2
Normal file
@@ -0,0 +1,34 @@
|
||||
{% extends "base.jinja2" %}
|
||||
|
||||
{% block nav %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/">Home</a>
|
||||
</li>
|
||||
{% block gamenav %}{% endblock %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/countdown">Countdown</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/profile">Profile</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/logout">Logout</a>
|
||||
</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="position-absolute top-50 start-50 translate-middle text-center">
|
||||
<h1>WIP!!! Not part of this week!!</h1>
|
||||
<div id="game-container">
|
||||
<canvas width="1280", height="720" id="canvas"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/static/js/gameui.js"></script>
|
||||
<script src="/static/js/game.js"></script>
|
||||
{% block game_js %}{% endblock %}
|
||||
<script>
|
||||
window.addEventListener("DOMContentLoaded", () => {
|
||||
start_game();
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user