Skip to content

Commit

Permalink
adding footer with copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickGibson committed Jul 28, 2021
1 parent 7351888 commit ef0aaa2
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 13 deletions.
10 changes: 5 additions & 5 deletions car.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class BotCar(BaseCar):

MAX_BUMPER_SCALE = 6
NORMAL_SPEED = 0.8
BOOST_SPEED = 1.8
BOOST_SPEED = 2.8
TURN_SPEED = 0.1
MAX_BODY_SCALE = 4

Expand Down Expand Up @@ -266,12 +266,10 @@ def rotate_by(self, angl):
def boost_on(self):
self.heartbeat_info['boost'] = True
self.accSpeed = BotCar.BOOST_SPEED
print("boost_on")

def boost_off(self):
self.heartbeat_info['boost'] = False
self.accSpeed = BotCar.NORMAL_SPEED
print("boost_off")

def does_eat(self, food): # Is food center isnide body/bumper?

Expand Down Expand Up @@ -311,11 +309,13 @@ def think(self):
closest_car_id__distance = [bot_or_car_id, currDistance]
pass
if len(self.close_cars_and_bots) > 0:
self.heartbeat_info['turn'] = 0.1
self.heartbeat_info['turn'] = 1
self.boost_on();
#self.heartbeat_info['boost'] = True
else:
self.heartbeat_info['turn'] = 0
#aself.heartbeat_info['boost'] = False
self.boost_off();
#self.heartbeat_info['boost'] = False

self.move(delta=0.95) # maybe 1 would be too quick idk

Expand Down
7 changes: 4 additions & 3 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ def spawn_bot():
)

# Spawned number of bots depends on the range argument
for i in range(0):
bots[str(i)] = SimpleBotCar(x=0, y=0, angle=math.radians(0), color="0x000000", name="Bot Jerry", score=6009)
for i in range(1):
spawn_bot()
#bots[str(i)] = SimpleBotCar(x=0, y=0, angle=math.radians(0), color="0x000000", name="Bot Jerry", score=600)

def heart_beat():
while True:
Expand Down Expand Up @@ -202,7 +203,7 @@ def heart_beat():
view_x = VIEW_DISTANCE_X * map_mult
view_y = VIEW_DISTANCE_Y * map_mult

for collide_bot_id, collide_bot in bots.items():
for collide_bot_id, collide_bot in list(bots.items()):
if bot_id == collide_bot_id:
continue

Expand Down
27 changes: 27 additions & 0 deletions static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,30 @@ input:checked + .slider:before {
.cookiesDiv{
display: none;
}

.hideMe{
width: 0 !important;
height: 0 !important;
font-size: 0;
}

footer{
background-color: #afafafb0;
width:100%;
text-align: center;
padding: 5px 0;
margin:0;

position: absolute;
bottom: 0;
}
footer p{
margin:0;
}

.yannickSpan{
color: rgb(114, 236, 89);
}
.yearSpan{
color: blue
}
14 changes: 9 additions & 5 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@
<span class="slider round"></span>
</label>
</div>
<footer>
<p>Copyright &copy 2021 <span class="yannickSpan">Yannick Daniel Gibson</span></p>
<p class="hideMe">If you're looking for a good PC game to play, you've come to the right place. There are a lot of video games in this round up that'll entertain you, and they're neatly organized by genre. Steam users (and if you're a PC gamer, how aren't you one?) should visit PCMag's Steam Curator page and Steam Discussion Group, too. Our reviews live there, as well as several themed lists featuring highly regarded titles.</p>
<p class="hideMe">
This category combines action games, role-playing games, and real-time strategy games. In this subgenre of strategy games, players usually don't build resources such as bases or combat units. Instead, players control a single character in one of two teams, working together to try and destroy the other team’s base (they are often aided in the task by the help of computer-controlled units that attack on a set path).
Imagine a game soup flavored with chunky bits of old school 2D Castlevania, Portal, and BioShock, and you still wouldn't get close to describing The Swapper. The game's not quite a platformer; it's a puzzle game, packaged with a brooding sci-fi story set in space. Finnish company Facepalm Games delivers a fascinating, memorable exploration title that can sustain at least two plays through because of multiple endings.
</p>
</footer>
</div>

<p hidden>If you're looking for a good PC game to play, you've come to the right place. There are a lot of video games in this round up that'll entertain you, and they're neatly organized by genre. Steam users (and if you're a PC gamer, how aren't you one?) should visit PCMag's Steam Curator page and Steam Discussion Group, too. Our reviews live there, as well as several themed lists featuring highly regarded titles.</p>
<footer hidden>
This category combines action games, role-playing games, and real-time strategy games. In this subgenre of strategy games, players usually don't build resources such as bases or combat units. Instead, players control a single character in one of two teams, working together to try and destroy the other team’s base (they are often aided in the task by the help of computer-controlled units that attack on a set path).
Imagine a game soup flavored with chunky bits of old school 2D Castlevania, Portal, and BioShock, and you still wouldn't get close to describing The Swapper. The game's not quite a platformer; it's a puzzle game, packaged with a brooding sci-fi story set in space. Finnish company Facepalm Games delivers a fascinating, memorable exploration title that can sustain at least two plays through because of multiple endings.
</footer>


<!--JQuery-->
<script type="text/javascript" src="{{ url_for('static', filename='js/libraries/jquery.js') }}"></script>
Expand Down

1 comment on commit ef0aaa2

@vercel
Copy link

@vercel vercel bot commented on ef0aaa2 Jul 28, 2021

Choose a reason for hiding this comment

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

Deployment failed with the following error:

`version` should be >= 2

Please sign in to comment.