r/Python • • Aug 23 '19

My little project

1.1k Upvotes

97 comments sorted by

445

u/antiyoupunk Aug 23 '19

I will never stop being amazed at people who can write software, but can't figure out how to record videos.

Like, they're sitting in front of a computer that they just bent to their will, and thinking "If only I had something that could record this", and then they reach for their phone.

99

u/quatrotires Aug 23 '19

Needs to create a program to record his screen haha

27

u/RetardedChimpanzee Aug 23 '19

Import PIL

9

u/ic_engineer Aug 23 '19

Is something wrong the the current PIL package? I got some strange errors trying to install with the latest PIP on 3.7.4

22

u/RenegadeAI Aug 23 '19

use Pillow

6

u/--_-__-__l-___-_- Aug 24 '19

I believe PIL is only for 32bit versions. Pillow is an adaptation that does the same thing. (Someone wanna double check that?)

3

u/ic_engineer Aug 24 '19

That could easily be it. I was setting up a new environment on an x64 system.

3

u/[deleted] Aug 24 '19

I don't think that's the problem, people are just lazy.

4

u/[deleted] Aug 24 '19

Thanks for understanding

2

u/JezusTheCarpenter Aug 25 '19

People want to show off their work but they are lazy to properly record it?

Also it is about a mind set. For me it would never even occur to me to do such a bizarre thing as record my desktop using my phone. Just so weird.

I guess I would expect my mom to do it but not somone that programs.

8

u/GarryLumpkins Aug 24 '19

Just cause nobody has mentioned it, OBS is great for screen recording and a whole lot more. We've come a long way from the unregistered hypercam2 days.

1

u/notanewbiedude Aug 24 '19

Yeah I'm shocked nobody mentioned OBS

1

u/Eccentricc Aug 24 '19

Ah yes. Having that logo on every runescape video that was ever made

2

u/[deleted] Aug 24 '19

Download ShareX.. works on Windows, Linux and Mac. Screen shots and screen recording are super simple.

2

u/EddyBot Linux | Python3 Aug 24 '19

ShareX is windows only
OBS is crossplatform

1

u/[deleted] Aug 24 '19

Oops my mistake

1

u/santozks Aug 24 '19

Maybe the thing is installing the screen recording software, too lazy 🤭

1

u/shanesaravia Aug 24 '19

I will never stop being amazed at people who cry because something isnt filmed by a professional in 4k. He wanted to show you his software, and he did just that. Stop crying and offer your services to record his videos for him if it's such a big deal to you.

0

u/homoludens Aug 24 '19

I do that too, I know how to do screen capture, and it's one google search away from them too, but filming it with another device feels more real.

I'm not recording picture on the screen but the whole device I was working on. Especialy this video is much better with phone. We get a feel ox excitement from shaky hands, switching focus as they want to show us code and game and to hear mechanical keyboard clicks... we are getting so much more than simple screen capture.

0

u/d4rkst4rw4r Aug 24 '19

Probably too excited to post it and reddit app was easier to get it up

-1

u/khz_re Aug 24 '19

True.! ;) Same for me every single time I think about screen recording... takes hours to even remember the program name that worked well the last time... Tried some was satisfied with one. Did not manage to have a nice resolution for CLI and GUi on the same vid etc...

This is THE one big unsolved problem in IT!!! Forget about concurrency and caching ;)

-1

u/GoofAckYoorsElf Aug 24 '19

It's not that we don't know how to do it. We just know that it's easier to just grab the phone

-2

u/[deleted] Aug 24 '19

i know how to record my screen and do some simple edit but im just too layzy i guess

0

u/[deleted] Aug 23 '19

[deleted]

10

u/netinept Aug 23 '19

On macOS, QuickTime is great for this, allowing you to choose the audio input source as well.

4

u/w3_ar3_l3g10n Aug 23 '19

Annoyed that it only records single windows and doesn’t have the option to capture the whole screen... but it’s free from Microsoft so I can’t be too upset. (〃>目<)/

0

u/[deleted] Aug 24 '19

[deleted]

1

u/Ultraflame4 Aug 24 '19

its software

1

u/[deleted] Aug 24 '19

On Windows 10,you cant record the terminal...

0

u/[deleted] Aug 24 '19

[deleted]

1

u/[deleted] Aug 24 '19

I'm glad I'm not the only one totally confused by this.

0

u/[deleted] Aug 24 '19

[deleted]

1

u/[deleted] Aug 24 '19

Windows 10 won't let you record the terminal with it's integrated recorder.

0

u/[deleted] Aug 24 '19

[deleted]

2

u/[deleted] Aug 24 '19

I disagree. SHIFT-CMD-5. I'm done. You're still reaching for your phone.

0

u/[deleted] Aug 24 '19

[deleted]

1

u/[deleted] Aug 24 '19

No? I don’t disagree? I believe I do.

38

u/schartnerbomb Aug 23 '19

flag69 = 1

1

u/[deleted] Aug 24 '19

Nice

0

u/[deleted] Aug 23 '19

[deleted]

23

u/[deleted] Aug 23 '19

Also, are you sharing the code?

28

u/[deleted] Aug 23 '19 edited Aug 24 '19

Im thinking to upload the code on github but i need to fix it a little bit mostly organize it

14

u/bored_and_scrolling Aug 23 '19

Him?

18

u/arthurazs Aug 23 '19

It*

I dunno where op is from, but it's a common mistake for Brazilians

2

u/[deleted] Aug 24 '19

im greek btw

41

u/[deleted] Aug 23 '19

[removed] — view removed comment

10

u/guilledelmo Aug 23 '19

Yeah it's gotta be that

11

u/Panda_Tobi_OwO Aug 23 '19 edited Jan 25 '20

Definitely. What else would what it be? :p

But in all fairness OP might be foreign so we probably shouldn't make fun of him/her for it, even if it is a joke. Either that, or a typo lol

8

u/BeingUnoffended Aug 24 '19

I'm giving them all genders and backstories from now on.

"Oh yeah, this is Grishnákh of Mordor, Captain of Barad-dûr. He's a sweet little script this one. He finds the best local doughnut shops based upon various review sites and e-mails the address my phone."

4

u/[deleted] Aug 24 '19

A non-binary program?

2

u/Kambz22 Aug 25 '19

We've just created quantum computing

1

u/[deleted] Aug 25 '19

i'm quantum gendered sounds cool

10

u/jinchuika Aug 24 '19

In Spanish / Portuguese / French / Italian, the 'it' always had a gender. You would say "El código" (the code) in the same way you say "El hombre" (the man). Funny enough "la computadora" (the computer) would be a She.

Edit: I'm a native Spanish speaker and always make this kind of mistakes, even after years of speaking English in a daily basis

1

u/[deleted] Aug 24 '19

well better fix that too

1

u/graingert Aug 24 '19

You know you can make changes to it after you release it right?

1

u/[deleted] Aug 25 '19

of course i know but i need to make my code at least little bit more readable first

1

u/pandorin Aug 24 '19

We wait it!:) Not for review,just test and play the code.

3

u/Andreaiaia Aug 23 '19

I’m interested too!

1

u/mfitzp mfitzp.com Aug 24 '19

He's going to upload a video of it.

1

u/[deleted] Aug 24 '19

With his phone.

1

u/seamust Aug 24 '19

I would also love to get hold of this code!

2

u/[deleted] Aug 25 '19

Ok here's the source code : https://github.com/mihkostas/SpaceGame

6

u/[deleted] Aug 23 '19

Why aren’t the bullets hitting the boss ?

18

u/[deleted] Aug 23 '19 edited Aug 23 '19

they hitting it, you can see the score go up but the still go on, they dont get destroyed they are like that on purpose

3

u/[deleted] Aug 23 '19

Ahh ok.. awesome work!

2

u/[deleted] Aug 23 '19

Thank you!

0

u/[deleted] Aug 23 '19

[deleted]

8

u/[deleted] Aug 23 '19

Piercing Bullets mate!!

2

u/v9zz Aug 27 '19

that reminds me sentdex's avoid car game, I made something similar earlier but yours a little more advanced I see, https://youtu.be/6Q7PC7r400M (starting at 0:05 )

ps:mine one fully based on sentdex version

1

u/[deleted] Aug 28 '19

nice job tho

6

u/JDHPH Aug 24 '19

In Python crash course there is entire chapter dedicated to building this exact type of game.

1

u/Shevvv Aug 24 '19

*three chapters

8

u/miles_dallas Aug 23 '19

Nice job! Add some sound effects. Pew pew!

1

u/serkef- Aug 24 '19

Any specific reason you did it in 2.7?

1

u/[deleted] Aug 24 '19

my os dont support python 3 im gonna upgrade it tho

2

u/ChocoFruit Aug 24 '19

Is this Pyhton 2.7? Why so old?

2

u/snakybasket9 Aug 29 '19

Thank you!

3

u/Tyrus_Yagovsky Aug 23 '19

How did you make this? It’s so cool!

0

u/JezusTheCarpenter Aug 25 '19

Have seen what subreddit are you on?

3

u/Bossownes Aug 23 '19

How did you get the graphics for your game code?

3

u/[deleted] Aug 24 '19

Keyboards annoying af

1

u/Exa2552 Aug 24 '19

His neighbors must hate him

2

u/[deleted] Aug 24 '19

I love this little project =D! I'm a newbie, but a curious one. Please upload it to your git soon =D!

Good job =)

1

u/Glarity Aug 24 '19

What libraries?

2

u/JDHPH Aug 24 '19

mostly pygame

1

u/BigDusty09 Aug 24 '19

Amazing!! If you want to record a video/gif of the game I would use peek next time! it's super light weight and easy to use!!

1

u/appinv Python&OpenSource Aug 24 '19

Camera is the new screen record yay! Nice project btw!

1

u/LurkingHunger Aug 24 '19

Plot twist: you control the top guys?

1

u/[deleted] Aug 24 '19

I love the fact that Programming Language has united people from all parts of the world irrespective of the language they speak.

1

u/IliuhaBro Aug 26 '19

Python crash course?)

1

u/Mkentca Aug 24 '19

Pygame or what

1

u/JezusTheCarpenter Aug 25 '19

Ehh, I've had enough of this subreddit. Not the content I expected from /r/Python . Unsubscribed.

-1

u/snakybasket9 Aug 24 '19

Can I get that source code?

-1

u/dAnjou Backend Developer | danjou.dev Aug 24 '19

I know this is the Python subreddit and suggesting JS probably sounds ridiculous but hear me out.

I recently wrote a little game as a birthday gift and I wanted it to be as easily accessible as possible, smartphone first. I know I could made an app but who knows whether it'd run on my friends phone. So I chose the browser as a platform and there the only choice was JS.

I used the framework PixiJS which is quite alright to work with, documentation could be a little better, but overall you can really get stuff done with it.

And honestly the most difficult thing for me (a professional developer) was to wrap my head around the totally different paradigms of game programming.

So, what I'm trying to say is: OP, you've clearly managed to learn how to program a game. What you could do now is to migrate this game to JS and share it easy with a lot more people. Bonus, you get to learn another language.

Or, if you wanna stick with Python but still wanna share your games more easily, have a look at Kivy.

1

u/[deleted] Aug 24 '19

Thank you for your tips and dont worry i code on java and sometimes in JS too

like a pepaper scissors rock game that i made in JS and HTML and little CSS

or clones of pong

over all i code about 1 and a half year and i really get your point here