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?)

→ More replies (1)

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.

→ More replies (2)

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

→ More replies (1)

1

u/santozks Aug 24 '19

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

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. (〃>目<)/

→ More replies (2)
→ More replies (1)
→ More replies (14)

38

u/schartnerbomb Aug 23 '19

flag69 = 1

1

u/[deleted] Aug 24 '19

Nice

→ More replies (4)

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

→ More replies (1)

4

u/[deleted] Aug 24 '19

A non-binary program?

→ More replies (2)

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!

→ More replies (1)

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