Skip to content

u/Matalya1

In this archive from Feb 2019 to Oct 2023

27
posts
183
comments
19
media
1.3k
score
2 saved before deletion

Newbie here πŸ‘€ I have an issue. I tried to code in my own movement mechanics (Kinda experienced in Python πŸ˜…) and I discovered a bug where, if the movement vector ends up in (42,0), the system can't get it to stop. How do I solve this?

Here's the relevant code const S = 252 const A = S / 6 const FRICTION = S / 3 var v = Vector2(0,0) func walk(): if input("move_right"): if v.x < S: v.x += A elif v.x > 0: v.x -= FRICTION if input("move_left"): if v.x > -S: v.x -= A elif v.x < 0: v.x += FRICTION Edit: forgot to say: FRICTION is not,...

0 points20 comments
Open on Reddit

Guidelines on presentation of emojis?

I will, in a future, tackle a project of designing my own set of emojis. However the task's pretty grueling, as the are over 3400 emojis in the Unicode 13. So I, instead, decided to make just the most "important" ones. Now... How on earth am I going to define such a thing? I want to end up with a ma...

2 points2 comments
Open on Reddit

The dark side of the world.

Not always things are like bright adventures and beautiful landscapes! Sometimes, things can get really, really dark. I can recall some time ago, in a worldbuilding project of mine, I did an entire human-like society, with some differences in the way of thinking and anatomy, but on the base, it was...

29 points28 comments
Open on Reddit

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←orβ†’
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.