Skip to content

Commit

Permalink
Added kcline game
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyAmos committed Mar 30, 2024
1 parent c053345 commit 516ede2
Show file tree
Hide file tree
Showing 20 changed files with 930 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ and rotating either clockwise or counter-clockwise.

[Voltcalc](voltcalc_app/)
Simple Ohms Law calculator.

[KCLine] (kcline/)
Simple one line game where a ghost chases you, and you eat dots.
8 changes: 8 additions & 0 deletions connect_wires_2/build
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
#!/bin/bash
#------------------------
SERIAL_ID=ttyACM0
APPID=connect_wires_2
FIRMWARE_DIR=~/Programming/Flipper/firmware/f0ReleaseFirmware
SOURCE_DIR=~/Programming/Flipper/firmware/applications_user/$APPID/
#------------------------
# Reboot the device in case another application is running.
clear
echo "Rebooting Flipper..."
# Send command directly to the Flipper over serial connection
echo -en 'power reboot\r\n' >> /dev/$SERIAL_ID
set -x
cp -r $SOURCE_DIR $FIRMWARE_DIR/applications_user/
cd $FIRMWARE_DIR
./fbt -c fap_$APPID
./fbt fap_$APPID
./fbt launch_app APPSRC=$APPID
set +x
echo "~/Programming/Flipper/firmware/flipper-application-catalog/applications/Tools/$APPID/manifest.yml"
echo "1. Don't forget to update the commit_sha in the manifest for release, as well as the version info in application.fam"
echo "2. Don't forget to create a new branch for the release."
1 change: 1 addition & 0 deletions connect_wires_2/connect_wires_2.c
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ int32_t connect_wires_2_main(void* p) {
}

furi_mutex_release(appState->mutex);
view_port_update(view_port);
}

free(appState);
Expand Down
22 changes: 22 additions & 0 deletions kcline/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2024 Andrew Diamond

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

1 change: 1 addition & 0 deletions kcline/README-catalog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
One lined (row) version of a bit munching character being chased by a ghost.
18 changes: 18 additions & 0 deletions kcline/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# KC Line

A one line/row version of the game where a character eats little bits and
gets chased around the screen by a ghost. It's pretty obvious where the
inspiration for this game came from, but if you have questions, hit me up
on my Github page.

Directions are pretty simple, use OK button to pause, left and right to
navigate the player, back to exit.

[Easy at beginning](screenshots/screenshot_1.png)
[Died](screenshots/screenshot_2.png)
[Harder as score higher](screenshots/screenshot_3.png)

2024 Andrew Diamond
Distributed under the MIT license.
#### License
[MIT](LICENSE)
28 changes: 28 additions & 0 deletions kcline/application.fam
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
App(
# Foldername of the application
appid="kcline",
# name will be show on the Flip.x0 browser
name="KC Line",
apptype=FlipperAppType.EXTERNAL,
# Main function (entry point) of the application
entry_point="kcline_main",
stack_size=4 * 1024,
# Where the application will be stored into the Flip.x0
fap_category="Games",
requires=["gui"],
# Directory of applications image assets
# If you want to insert images in your application, you have to specify the
# directory of your image in the fap_icon_assets of your application.fam.
# Then, include it as a header file like that: {app_id}_icon.h. For example,
# if you want to include an image in your application example, you have to
# put this in your code:
#
# include "example_icons.h"
fap_icon="icons/kcline.png",
fap_icon_assets="icons",
# Optional values
fap_version=(1, 0),
fap_description="One line dot munching game!",
fap_author="Andrew Diamond",
fap_weburl="https://github.com/HappyAmos/",
)
22 changes: 22 additions & 0 deletions kcline/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
#------------------------
SERIAL_ID=ttyACM0
APPID=kcline
FIRMWARE_DIR=~/Programming/Flipper/firmware/f0ReleaseFirmware
SOURCE_DIR=~/Programming/Flipper/firmware/applications_user/$APPID/
#------------------------
# Reboot the device in case another application is running.
clear
echo "Rebooting Flipper..."
# Send command directly to the Flipper over serial connection
echo -en 'power reboot\r\n' >> /dev/$SERIAL_ID
set -x
cp -r $SOURCE_DIR $FIRMWARE_DIR/applications_user/
cd $FIRMWARE_DIR
./fbt -c fap_$APPID
./fbt fap_$APPID
./fbt launch_app APPSRC=$APPID
set +x
echo "~/Programming/Flipper/firmware/flipper-application-catalog/applications/Tools/$APPID/manifest.yml"
echo "1. Don't forget to update the commit_sha in the manifest for release, as well as the version info in application.fam"
echo "2. Don't forget to create a new branch for the release."
1 change: 1 addition & 0 deletions kcline/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1.0 - Initial release
Binary file added kcline/icons/ghost1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added kcline/icons/ghost2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added kcline/icons/kc1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added kcline/icons/kc2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added kcline/icons/kcline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 516ede2

Please sign in to comment.