Skip to content
This repository was archived by the owner on Feb 22, 2020. It is now read-only.

Litigious Liberators #3

Merged
merged 117 commits into from
Jan 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
7582e79
Update README.md
duarteocarmo Jan 17, 2020
868bcae
added trello link
duarteocarmo Jan 17, 2020
aa5557b
added black and pre commit
duarteocarmo Jan 18, 2020
f1d3ba6
test
duarteocarmo Jan 18, 2020
b4e8c4e
test
duarteocarmo Jan 18, 2020
03dac2b
test
duarteocarmo Jan 18, 2020
576adfc
test file now clean
duarteocarmo Jan 18, 2020
68a526f
cleaning trash
duarteocarmo Jan 18, 2020
daf2a31
added setup instructions
duarteocarmo Jan 18, 2020
20c8ef3
TOC
duarteocarmo Jan 18, 2020
8d47d7d
kivy as a requirement
duarteocarmo Jan 18, 2020
7b4e938
Add pyproject.toml to configure black
cubetastic33 Jan 18, 2020
69638da
Merge remote-tracking branch 'origin/master'
cubetastic33 Jan 18, 2020
abec9d1
Add 2 profiles
cubetastic33 Jan 18, 2020
d7a049f
First commit of rudimentary swipe interface for matching.
OMotornyi Jan 19, 2020
8356351
First commit of rudimentary swiping for pictures.
OMotornyi Jan 19, 2020
fb0447e
Fix path to pictures directory
cubetastic33 Jan 19, 2020
40678d3
Modified swiping to resemble tinder
8wgf3b Jan 19, 2020
415c6d6
Added mousescroll and remove backswiping
8wgf3b Jan 19, 2020
adb7399
Add 2 more profiles
cubetastic33 Jan 19, 2020
9f2b4d3
Rename the Triceratops
cubetastic33 Jan 19, 2020
e4ab4c3
Update the Velociraptor's bio
cubetastic33 Jan 19, 2020
4686cc4
Fit swiping into a screen obj and limited the selections
8wgf3b Jan 19, 2020
be599cf
add new profiles
harsh8398 Jan 19, 2020
a23087a
fix profile
harsh8398 Jan 19, 2020
f3004b0
Fix minor typo
cubetastic33 Jan 19, 2020
cc9dae5
Fixed animation bug and added swiping logic
8wgf3b Jan 19, 2020
aacca77
Merge branch 'content' into swipe-card
cubetastic33 Jan 19, 2020
5cadccf
Make all profile pictures square
cubetastic33 Jan 19, 2020
cb73b46
Merge branch 'content' into swipe-card
cubetastic33 Jan 19, 2020
eda650f
main py
duarteocarmo Jan 19, 2020
20971be
Add names of picture files to YAML files
cubetastic33 Jan 19, 2020
1cf65c9
Merge branch 'content' into swipe-card
cubetastic33 Jan 19, 2020
ed6779d
Make profile key naming scheme consistent
cubetastic33 Jan 19, 2020
b518ed0
Merge branch 'content' into swipe-card
cubetastic33 Jan 19, 2020
5dc68ac
Make cards show actual profiles
cubetastic33 Jan 19, 2020
83896fa
adds v0.1 of onboarding with working mechanics
duarteocarmo Jan 19, 2020
f036731
description of card added
duarteocarmo Jan 19, 2020
01ff673
First attempt at creating modular App: main.py will create a
OMotornyi Jan 19, 2020
49d5040
Uncommented back App and run part of swipe_cards module: can be used for
OMotornyi Jan 19, 2020
2ae10b9
1. Modified profile creation module to have a single Screen object with
OMotornyi Jan 19, 2020
cebc36f
Remove dummy line in carousel.kv
cubetastic33 Jan 20, 2020
afdeb53
Merge branch 'onboarding' into modular_arch
cubetastic33 Jan 20, 2020
00a7a1b
Attempt to include onboarding along with the other screens
cubetastic33 Jan 20, 2020
5e8e372
Fixed swiping to not include selected
8wgf3b Jan 20, 2020
b0e8b4e
Added the transition from the onboarding Screen to Profile Creation
OMotornyi Jan 20, 2020
da0c48f
Merge branch 'modular_arch' into content
cubetastic33 Jan 20, 2020
6138f28
Add three more profiles
cubetastic33 Jan 20, 2020
7b7f4dc
Merge branch 'content' into modular_arch
cubetastic33 Jan 20, 2020
a8b7052
Use screenmanager instead of carousel
8wgf3b Jan 20, 2020
55d14c4
Clean up code and rename profile card-related stuff
cubetastic33 Jan 20, 2020
a27aac3
Merge branch 'swipe-card' into modular_arch
cubetastic33 Jan 20, 2020
95034fd
Make new profile card code work with rest of the code
cubetastic33 Jan 20, 2020
c674d29
Merge branch 'modular_arch' into swipe-card
cubetastic33 Jan 20, 2020
80f9ae9
Remove custom background color that was set for the window
cubetastic33 Jan 20, 2020
47afee3
Merge branch 'modular_arch' into swipe-card
cubetastic33 Jan 20, 2020
4d8f04a
Make improvements to the cards' appearance
cubetastic33 Jan 21, 2020
1c82fee
Use keyboard swiping and add attributes feature
8wgf3b Jan 21, 2020
a4dbb38
Handle other keypresses
8wgf3b Jan 24, 2020
fa51178
Change Restpect attr to Welfare
8wgf3b Jan 24, 2020
5b37ece
Small commit to fix relative font path issue. Also replaced post
OMotornyi Jan 25, 2020
efb6ddf
add profile creation workflow
harsh8398 Jan 19, 2020
f84203e
Profile creation slighttly modified to fit the new concept.
OMotornyi Jan 25, 2020
699425b
Now during the card swipe the top part of the screen is fixed and shows
OMotornyi Jan 25, 2020
042a867
added inital attribute calculation for profile creation
harsh8398 Jan 25, 2020
a469e5b
Now during the card swipe the top part of the screen is fixed and shows
OMotornyi Jan 25, 2020
22b5a40
Initial commit for attributes link between profile creation and card
OMotornyi Jan 25, 2020
153570a
Merge branch 'swipe-card' of github.com:duarteocarmo/code-jam-6 into …
OMotornyi Jan 25, 2020
b6b84a2
Fixed an issue where default 5/5/5 stats were shown for a fraction of
OMotornyi Jan 25, 2020
77ffea4
Fixed the issue with early keyboard activation
OMotornyi Jan 25, 2020
1ededd6
Fix font path to work from other directories
cubetastic33 Jan 25, 2020
452ed68
Show attributes as progress bars
cubetastic33 Jan 25, 2020
309eba9
Merge branch 'swipe-card' of github.com:duarteocarmo/code-jam-6 into …
OMotornyi Jan 25, 2020
d297458
add card content by rr
harsh8398 Jan 26, 2020
baddd06
remove duplicate image
harsh8398 Jan 26, 2020
38f0431
Edit card content
cubetastic33 Jan 26, 2020
28c9f15
some clean up and added new profile cards
harsh8398 Jan 26, 2020
4d7a57a
fixed some naming issues
harsh8398 Jan 26, 2020
6a30b61
Added requrement for audio/video player
OMotornyi Jan 26, 2020
e93b840
Merge branch 'swipe-card'
OMotornyi Jan 26, 2020
721d030
Merge of two main feature branches in master. Initial stats caclulation
OMotornyi Jan 26, 2020
4dd6204
Fix images
cubetastic33 Jan 26, 2020
ca509c1
fix some profile creation bugs
harsh8398 Jan 26, 2020
82447a8
fix bug: profile card sound starts playing when on onboarding
harsh8398 Jan 26, 2020
0218b35
Stat creation questions
8wgf3b Jan 26, 2020
864cd94
Merge branch 'master' of github.com:duarteocarmo/code-jam-6
harsh8398 Jan 26, 2020
b8f3cd6
Update creation stat answer values
8wgf3b Jan 26, 2020
b07f5b6
fixing init attr values
8wgf3b Jan 26, 2020
9c8707c
Modified intro
OMotornyi Jan 26, 2020
806ffb0
Fixed issue with quoutes in string
OMotornyi Jan 26, 2020
3ce424b
Fix typos and change formatting
cubetastic33 Jan 26, 2020
d7896aa
Modify profile creation questions a bit
cubetastic33 Jan 26, 2020
5c55e27
Improve UI of profile creation
cubetastic33 Jan 26, 2020
556e705
Fix creation stats and toast alignment
8wgf3b Jan 26, 2020
e269010
Merge branch 'master' of https://github.com/duarteocarmo/code-jam-6
8wgf3b Jan 26, 2020
6cdfe62
Reworked intro screen
OMotornyi Jan 26, 2020
6016c48
background omage for intro
OMotornyi Jan 26, 2020
6a36526
Update jeff_rench.yml
8wgf3b Jan 26, 2020
4577930
fonts
OMotornyi Jan 26, 2020
b5abde7
Merge branch 'onboarding'
OMotornyi Jan 26, 2020
1ca7129
Add 2 new cards
8wgf3b Jan 26, 2020
bc3071d
Merge branch 'master' of https://github.com/duarteocarmo/code-jam-6
8wgf3b Jan 26, 2020
162c221
Shorten Baka Trump right choice text
8wgf3b Jan 26, 2020
2bad91b
Added stats names above the progress bar
OMotornyi Jan 26, 2020
1e1fc4a
Merge branch 'master' of github.com:duarteocarmo/code-jam-6
OMotornyi Jan 26, 2020
24b3d3e
Rename
OMotornyi Jan 26, 2020
4a7d7da
added win loss screen
harsh8398 Jan 26, 2020
a03725e
Added popup with help on cards screen
OMotornyi Jan 26, 2020
1911428
Merge branch 'master' of github.com:duarteocarmo/code-jam-6
OMotornyi Jan 26, 2020
f36c126
added pyyaml yo requirements
OMotornyi Jan 26, 2020
78a344a
Readme updated
OMotornyi Jan 26, 2020
c9e72c8
More readme
OMotornyi Jan 26, 2020
0d70c4d
Remove line breaks in intro text
8wgf3b Jan 26, 2020
6759b45
Merge branch 'master' of https://github.com/duarteocarmo/code-jam-6
8wgf3b Jan 26, 2020
f903a7a
Update README.md
8wgf3b Jan 26, 2020
e4b7bde
Update README.md
OMotornyi Jan 26, 2020
466971f
Update onboarding.py
8wgf3b Jan 26, 2020
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
10 changes: 10 additions & 0 deletions litigious-liberators/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
repos:
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: flake8
54 changes: 52 additions & 2 deletions litigious-liberators/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,56 @@
# Litigious Liberators
# Resurgence
### by Litigious Liberators

Please use this README to document your team's project. Make sure to include a general description, information on how to set-up and run your project, and anything else you think may be interesting for a README. The README is usually the first document people read when they visit a project on GitHub, so it's a good idea to make it appealing.

## Contents

- [Setting up your repo](#setting-up-your-repo)
- [Running the App](#running-the-app)
- [Using the App](#using-the-app)
- [Useful links](#useful-links)
- [License](#license)


### Setting up your repo

Clone this repo:

```bash
$ git clone [email protected]:duarteocarmo/code-jam-6.git
```

Create a virtualenv:

```bash
$ python -m venv <name_of_virtualenv>
```

Activate it:

```bash
$ . <name_of_virtualenv>/env/activate
```

Install dependencies

```bash
(env) $ cd litigious-liberators # navigate to our folder
(env) $ pip install -r requirements.txt # install normal requirements
(env) $ pip install -r requirements-dev.txt # install dev as well
```
## Running the App:
```bash
python main.py
```
## Using the App
* Once you open the app and __single-click__ on the screen, the game's backstory will be presented. You can __double-click__ to skip the entire story.
* After that, you need to create your profile. Enter your name and answer few simple questions to determine your initial stats to move on to the next screen.
* Here you will be playing the actual game. You will be presented a scenario/individual where you have to press __right/left (keyboard)__ based on the choices displayed on the screen. To know more about the card, you can __click on the picture__.
* Your goal is to maximise all the three stats without any of them going empty. These stats might increase or decrease based on your choices

## Useful links


- **Code Jam Rules:** [https://pythondiscord.com/pages/code-jams/code-jam-6/rules/](https://pythondiscord.com/pages/code-jams/code-jam-6/rules/)

- **General Code Jam info:** [https://pythondiscord.com/pages/code-jams/code-jam-6/](https://pythondiscord.com/pages/code-jams/code-jam-6/)
Expand All @@ -13,3 +60,6 @@ Please use this README to document your team's project. Make sure to include a g
## License

All projects will merged into our Code Jam repository, which uses the [MIT license](../LICENSE). Please make sure that if you add assets, the licenses of those assets are compatible with the MIT license.


There we go :)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
94 changes: 94 additions & 0 deletions litigious-liberators/fonts/Oldenburg/OFL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
Copyright (c) 2011 by Sorkin Type Co (www.sorkintype.com),
with Reserved Font Name "Oldenburg".

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
Binary file added litigious-liberators/hp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions litigious-liberators/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from kivy.app import App
from kivy.uix.screenmanager import ScreenManager
from onboarding.onboarding import OnboardingScreen
from profile_cards.profile_cards import SelectionScreen, WinScreen, LossScreen
from profile_creation.createprofile import CreateProfile
from kivy.lang import Builder


class ResurgenceApp(App):
def build(self):
Builder.load_file("onboarding/onboarding.kv")
Builder.load_file("profile_creation/createprofile.kv")
Builder.load_file("profile_cards/profiles.kv")
sm = ScreenManager()
sm.add_widget(OnboardingScreen(name="onboarding"))
sm.add_widget(CreateProfile(name="create_profile"))
sm.add_widget(SelectionScreen(name="profile_selection"))
sm.add_widget(WinScreen())
sm.add_widget(LossScreen())
# sm.add_widget(PostSelectionScreen(name="post_selection_screen"))
return sm


if __name__ == "__main__":
# calling run method of the application will build the widget tree,
# and start the event loop.
ResurgenceApp().run()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions litigious-liberators/onboarding/onboarding.kv
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#:kivy 1.11.1
<OnboardingScreen>:
canvas:
Color:
rgba: utils.get_color_from_hex('#321911')
Rectangle:
size: self.size
MyOnboardWidget:
id: my_onboard_widget
Image:
id: bg_img
source: "onboarding/intro_img_crop.jpg"

Label:
id: app_name
pos_hint: {"center_x": 0.50, "center_y": 0.8}
text: "R E S U R G E N C E"
font_size: "30sp"
font_name: "delinquent-black-font/DelinquentCapsSkewdBlack-q2wq.ttf"
color: utils.get_color_from_hex("#ff0000")#1, 0, 0, 1
Label:
text: "Double tap to skip intro"
pos_hint: {"center_x": 0.50, "center_y": 0.1}
color: 1,1,1,0.5
# Label:
# id: story_0
# pos_hint: {"center_x": 0.50, "center_y": 0.5}
# text: "It's the year 12020 CE.... It's the year 12020 CE... It's the year 12020 CE..."
# font_size: "35sp"
# text_size: (self.width,None)
# font_name: "delinquent-black-font/DelinquentExtract-V4we.ttf"
# color: 1, 1, 1, 1
# opacity: 0
# halign: "center"
#
# Label:
# id: story_1
# pos_hint: {"center_x": 0.50, "center_y": 0.5}
# text: "Civilization"
# font_size: "35sp"
# font_name: "delinquent-black-font/DelinquentExtract-V4we.ttf"
# color: utils.get_color_from_hex("#ff0000")#1, 0, 0, 1
# opacity: 0

136 changes: 136 additions & 0 deletions litigious-liberators/onboarding/onboarding.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.animation import Animation
from kivy.clock import Clock
from functools import partial

lorem = ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is never used as far as I can see.

sentences = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strings in this list are unclear and it is hard to understand at first glance, maybe should have been put into a text document or something.

"It's the year 12020 CE...",
"""Civilization has fallen, after the humans caused their own demise as they tried to"""
""" interfere with the natural order of things thousands of years ago """,
"""Experiments with the prehistoric animal DNA, race to the ultimate doomsday"""
""" weapon and the total neglect of Global Warming...""",
"Today, flora and fauna from all ages flourish, treading the ruins of an ancient civilization.",
"""Some humans survived against all odds, striving to rebuild what was lost,"""
""" but without lost knowledge and wisdom it seems hopeless.""",
"""You are one of these humans. Will you be the one, cunning and smart enough to tip"""
""" the scales or will your ignorant careless attitude ruin everything?""",
"Only time will tell.",
]
# images = [
# "https://placekitten.com/g/1080/1920",
# "https://placekitten.com/g/200/300",
# "https://placekitten.com/g/300/400",
# ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kitten URLs? This commented out code should be removed.


images = ["onboarding/intro_img_crop.jpg"]


class MyOnboardWidget(FloatLayout):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Class needs a docstring.

steps = 0

def __init__(self, **kwargs):
super().__init__(**kwargs)
self.steps = 0
# for index, image_url in enumerate(images):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented out code should not be left in.

# image_object = AsyncImage(source=image_url, size_hint=(1, 1))
# image_object.opacity = 1 if index == 0 else 0
# setattr(self, f"image_{index}", image_object)
# self.add_widget(image_object)

for index, sentence in enumerate(sentences):
label_object = Label(
text=sentence,
text_size=(self.width * 4, None),
pos_hint={"center_x": 0.50, "center_y": 0.5},
color=[1, 1, 1, 1],
valign="center",
# align="middle",
font_size="35sp",
font_name="delinquent-black-font/DelinquentExtract-V4we.ttf",
# text_size=(400, 600),
)
# label_object.opacity = 1 if index == 0 else 0
label_object.opacity = 0
setattr(self, f"description_{index}", label_object)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A dictionary should be used here to store your labels, or a list, not class attributes.

self.add_widget(label_object)

def animate(self, obj_out, obj_in, opacity, *args):
appear = Animation(opacity=1, duration=1)
disappear = Animation(opacity=opacity, duration=1)
appear.start(obj_in)
disappear.start(obj_out)

def on_touch_down(self, touch):
if self.steps == 0:
Clock.schedule_once(
partial(
self.animate, self.parent.ids["bg_img"], getattr(self, f"description_0"), 0.2
),
0.5 + 0 * 5,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sum confuses me, 0 * 5?

)
speed = 15
delay = len(sentences[0]) / speed + 1
for index, sentence in enumerate(sentences[1:], start=1):
# print(index, sentence)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug print statements should be removed, commenting out is not removal.

# print(getattr(self, f"description_{index - 1}"))
# print(getattr(self, f"description_{index}"))

Clock.schedule_once(
partial(
self.animate,
getattr(self, f"description_{index-1}"),
getattr(self, f"description_{index}"),
0,
),
1 + delay,
)
delay += len(sentence) / speed
if touch.is_double_tap:
self.parent.manager.current = "create_profile"

self.steps += 1

return True


class OnboardingScreen(Screen):
pass


class CreateProfileTest(Screen):
pass


class OnboardingApp(App):
def build(self):
sm = ScreenManager()
sm.add_widget(OnboardingScreen(name="onboarding"))
sm.add_widget(CreateProfileTest(name="create_profile"))
return sm


if __name__ == "__main__":
OnboardingApp().run()


# def ola():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed.

# print("HELLLOOO")
#
#
# class CarouselApp(App):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example testing code should not be committed or left in.

# def build(self):
# # carousel = Carousel(direction="right", loop=True)
# # src = "https://placekitten.com/g/1080/1920"
# # src_1 = "https://placekitten.com/g/1080/1920"
# # image = AsyncImage(source=src)
# # image1 = AsyncImage(source=src_1)
# # carousel.add_widget(image)
# # carousel.add_widget(image1)
# # return carousel
#
#
# CarouselApp().run()
Binary file added litigious-liberators/profile_cards/hp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading