diff --git a/src/index.py b/src/index.py index d5a4b78..6d0a1b3 100644 --- a/src/index.py +++ b/src/index.py @@ -501,6 +501,22 @@ def games(): """games""" info = {'css': 'games', 'title': 'blessfrey games', 'year': find_year()} return template('games.tpl', info) +@route('/no-legs-the-cat') +def nltc(): + """game""" + info = {'css': 'games', 'title': 'no-legs the cat - blessfrey games', 'year': find_year()} + return template('games-nltc.tpl', info) +@route('/small-thing-that-makes-things') +def sttmt(): + """game""" + info = {'css': 'games', 'title': 'small thing that makes things - blessfrey games', 'year': find_year()} + return template('games-sttmt.tpl', info) +@route('/stoplight') +def sl(): + """game""" + info = {'css': 'games', 'title': 'stoplight - blessfrey games', 'year': find_year()} + return template('games-sl.tpl', info) + # Japanese Learning Page @route('/japanese') diff --git a/src/static/css/all.css b/src/static/css/all.css index 8f9ea94..172b2d9 100755 --- a/src/static/css/all.css +++ b/src/static/css/all.css @@ -114,7 +114,6 @@ p { color: white; } pre,code { - background-color: #d5c7d5; font-size: 0.9em; font-family: monospace; margin-top: 1.5em; diff --git a/src/static/css/entry.css b/src/static/css/entry.css index a52d5c6..7061852 100644 --- a/src/static/css/entry.css +++ b/src/static/css/entry.css @@ -151,3 +151,7 @@ img { grid-area: 1/2/2/3; margin-top: 1em; } + +pre,code { + background-color: #d5c7d5; +} diff --git a/src/static/css/games.css b/src/static/css/games.css index cb7bd6c..20eb877 100755 --- a/src/static/css/games.css +++ b/src/static/css/games.css @@ -2,6 +2,11 @@ color: white; } +img { + max-width: 800px; + height: auto; +} + iframe { border: 2px solid #df85a5; padding: 10px; diff --git a/src/static/img/game/NLtC.kra b/src/static/img/game/NLtC.kra new file mode 100644 index 0000000..b20b60a Binary files /dev/null and b/src/static/img/game/NLtC.kra differ diff --git a/src/static/img/game/NLtC.png b/src/static/img/game/NLtC.png new file mode 100644 index 0000000..221aad0 Binary files /dev/null and b/src/static/img/game/NLtC.png differ diff --git a/src/static/img/game/SL.png b/src/static/img/game/SL.png new file mode 100644 index 0000000..23eac17 Binary files /dev/null and b/src/static/img/game/SL.png differ diff --git a/src/static/img/game/SL_GodotEngine.png b/src/static/img/game/SL_GodotEngine.png new file mode 100644 index 0000000..80b095b Binary files /dev/null and b/src/static/img/game/SL_GodotEngine.png differ diff --git a/src/static/img/game/STTMT.png b/src/static/img/game/STTMT.png new file mode 100644 index 0000000..92795f1 Binary files /dev/null and b/src/static/img/game/STTMT.png differ diff --git a/src/views/games-nltc.tpl b/src/views/games-nltc.tpl new file mode 100644 index 0000000..eae44e0 --- /dev/null +++ b/src/views/games-nltc.tpl @@ -0,0 +1,18 @@ +% rebase('frame.tpl') +
Poltics Cat lost his legs!! Push him around using WASD to find them. Eat any breakfasts you can find along the way!
+In case it isn't obvious, this is a crude maze constructed from the infamous 'godot heads'. Click the game to make it active then control kitty using W A S D or arrow keys to find all three breakfasts and his missing legs. His breakfast counter is in the top-right corner. After you win, you can continue to wander the maze aimlessly. Refresh the page to start over.
+His real life counterpart has food anxiety or something, so he likes to have both his meals as early as possible in the day, hence "two breakfasts." A few times, he bamboozled us into thinking he hasn't been fed yet for a bonus THIRD breakfasts! (Bad cat.)
+This game was released July 15, 2022.
+Co-routines give you the power to change the light! Watch how player input disrupts the stoplight's schedule. Push the walk button to skip a phase. Or wait until the phase times out.
+This is just a small project to get more comfortable with yields in Godot Engine. +
This game was released June 5, 2019.
+ +
+extends Node
+
+onready var stoplight = $Stoplight
+
+func _ready():
+ stoplight.play()
+
+ var result = wait(5, 'green')
+ $WalkButton/TextureButton.connect('pressed', result, 'resume', ['interrupted on green'], CONNECT_ONESHOT)
+ yield(result, 'completed')
+
+ result = wait(5, 'yellow')
+ $WalkButton/TextureButton.connect('pressed', result, 'resume', ['interrupted on yellow'], CONNECT_ONESHOT)
+ yield(result, 'completed')
+
+ result = wait(5, 'red')
+ $WalkButton/TextureButton.connect('pressed', result, 'resume', ['interrupted on red'], CONNECT_ONESHOT)
+ yield(result, 'completed')
+
+func wait(time, color):
+ print('waiting for: ' + color)
+ var result = yield(get_tree().create_timer(time), 'timeout')
+ if result:
+ print(result)
+ stoplight.animation = color
+ print('done: ' + color)
+
+func _on_completed():
+ print('completed')
+
+func _on_WalkButton_gui_input(event):
+ if event is InputEventMouseButton and event.pressed:
+ print ("Walk Button not functioning.")
+
+
+
+
+extends Label
+var time_start = 0
+var time_now = 0
+
+func _ready():
+ time_start = OS.get_unix_time()
+ set_process(true)
+
+func _process(delta):
+ time_now = OS.get_unix_time()
+ var elapsed = time_now - time_start
+ var minutes = elapsed / 60
+ var seconds = elapsed % 60
+ var str_elapsed = "%02d" % [seconds]
+ text = str(str_elapsed)
+
+ Play as the accountant of an overcrowded shelter on the edge of bankruptcy. Government grants and private donors have failed you. Now, you must get your feet on the ground and uncover the truth of the recent explosion of the local stray population.
+Made for Weekly Game Jam 85 hosted by Retro Indie Josh and streamed on his twitch. It's a shallow adventure platformer without much challenge, but it does have two endings. When you fall in the cave, you can jump on some of the stones in the background. It is VERY low contrast on every screen but the one I made it on. I promise you can escape, no matter how impossible it seems. Jump by faith and you will make it.
+This game was released March 1, 2019.
+ +I've been making games since high school, and sometimes I actually release them. Most are in Godot Engine, but since I make games as a way of learning to program, I have games floating around out there in git and Dropbox in lots of languages.
Also check out my game design document and feature requirement pages to learn about my games-in-progress.
-Poltics Cat lost his legs!! Push him around using WASD to find them. Eat any breakfasts you can find along the way!
-In case it isn't obvious, this is a crude maze constructed from the infamous 'godot heads'. Click the game to make it active then control kitty using W A S D or arrow keys to find all three breakfasts and his missing legs. His breakfast counter is in the top-right corner. After you win, you can continue to wander the maze aimlessly. Refresh the page to start over.
-His real life counterpart has food anxiety or something, so he likes to have both his meals as early as possible in the day, hence "two breakfasts." A few times, he bamboozled us into thinking he hasn't been fed yet for a bonus THIRD breakfasts! (Bad cat.)
-This game was released July 15, 2022.
- -Play as the accountant of an overcrowded shelter on the edge of bankruptcy. Government grants and private donors have failed you. Now, you must get your feet on the ground and uncover the truth of the recent explosion of the local stray population.
-Made for Weekly Game Jam 85 hosted by Retro Indie Josh and streamed on his twitch. It's a shallow adventure platformer without much challenge, but it does have two endings. When you fall in the cave, you can jump on some of the stones in the background. It is VERY low contrast on every screen but the one I made it on. I promise you can escape, no matter how impossible it seems. Jump by faith and you will make it.
-This game was released March 1, 2019.
- -