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:
@@ -1,11 +1,6 @@
|
||||
{% extends "base.jinja2" %}
|
||||
{% extends "gamebase.jinja2" %}
|
||||
|
||||
{% block title %}Pumpkin Memory{% endblock title %}
|
||||
|
||||
{% block nav %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/">Home</a>
|
||||
</li>
|
||||
{% block gamenav %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/pumpkin_roll">Pumpkin Roll</a>
|
||||
</li>
|
||||
@@ -13,30 +8,10 @@
|
||||
<a class="nav-link active" aria-current="page" href="/pumpkin_memory">Pumpkin Memory</a>
|
||||
</li>
|
||||
<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>
|
||||
<a class="nav-link" href="/whack_a_pumpkin">Whack a Pumpkin</a>
|
||||
</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{% block title %}Pumpkin Memory{% endblock title %}
|
||||
|
||||
<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>
|
||||
<script src="/static/js/pumpkin_memory.js"></script>
|
||||
<script>
|
||||
window.addEventListener("DOMContentLoaded", () => {
|
||||
start_game();
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% block game_js %}<script src="/static/js/pumpkin_memory.js"></script>{% endblock %}
|
||||
Reference in New Issue
Block a user