Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Sunday, 24 September 2017

Python App 3: "Plong" For Windows



Another common problem I find with learning a programming language is how far you really need to get into learning a language before you get any useful returns in creating anything that even resembles an everyday Windows/Android game.

So, I was desperate to move on to something as an "Interlude" to my second Python app to investigate how difficult it actually would be to port some form of Python code into a ".exe" or ".apk" we are used to.

In my investigation, I discovered Kivy... Which acts as a library to create and compile apps to Windows, iPhone, Linux, Android and pretty much anything else you could name. So I dived into their Pong Game Tutorial

It was refreshingly simple to set up, as I had already used pip to set up PyCharm (pip feeling very similar to how something like apt-get works). Installing everything I needed was a breeze... Even typing, running and making changes to their code was quite easy considering I'd already had some deeper experience of Python now under my belt... I was probably at about the right part of my education to start "experimenting"!

The only fiddly part was subsequently completing their tutorial to Create A Package For Windows, only really fiddly because you had to manually park command prompt in the empty folder you wanted to compile to, manually add a name in the command you type in then manually edit the created ".spec" file to include the files of your project. I mean really it was easy stuff too, although used to the ease of projects up to now I only question why no-one has simplified this experience as of yet. Equally, it finally made me feel like doing "real" coding.

It spat out a "Plong.exe" file, I launched it... And it ran exactly as it did in PyCharm! Finally, I had created my first ever application! There are some things that niggle me, like the command prompt that opens before the actual game which I wish I could silence (saying that even Steam Games such as Metal Gear Solid V do the same thing). There is also the small fact it isn't completely mine, it is largely the unedited code from their website at the moment as I wanted to quickly progress to actually compiling the thing. But, actually, if you're an intermediate at computing like me (and barely an intermediate at programming) you'll actually find the whole compilation process pretty simple.

Plong.exe is available at https://github.com/GlitchWalker/Python-and-Kivy-Pong-Game/releases, and as always my source code is available at my GitHub

Thursday, 21 September 2017

My First Python App: The Vulgar Calculator

So I finally pulled myself out of a bit of a slump, and spent a (relatively) substantial amount of time learning the Python programming language (for those interested, it is the "Complete Python Course: Beginner to Advanced!" available at http://stackskills.com).

I name it "The Vulgar Calculator"; which is my programming equivalent of learning all the rude words when you first learn a foreign human language.



It is available on a GitHub repository I created to put my learning projects on, aptly named Python_Learnings).I will be (hopefully) uploading more of my projects there as I continue the course- the next project is to create a text RPG, which is actually pretty exciting and right down my alley!

Hopefully I will progress through it.

Monday, 25 February 2013

Pirate News Top Three - 25/02/2013

In a new daily feature, a daily summary of the top news in the 4 areas I cover in this blog: Pirates, Green, Gaming and Politics. In this first post? Pirates!

Just as a quick summary; the Pirate Posts will feature issues on technology, media, copyright, and the politics of these issues. Under no circumstances does this blog link to or condone pirate activities; it is my personal belief that, although copyright law needs reforming, one should always obey whatever the current laws are. For free music, film and software, choose only those freebies for which the copyright holder has given permission to download freely. A good start would be Frostclick, Frostwire's sister site, which includes only legal free downloads. If you are caught knowingly breaking the law, you deserve any penalty you get!


 1. Live Chat With Your Pirate In Parliament!





If you are a member of the European Union (or even if you are just interested) and willing to listen in Nordic at times, join your Pirate Party MEP for a live chat every Thursday at 17:30 in the UK (18:30 CET). The first of these was held in the Thursday just gone, with such fascinating insights as how lobbyists tried to trick MEPs into softening Data Protection laws for consumers. I wonder if any of our mainstream parties would be so open and direct with it's constituents!

Main Article by The Pirate Times: What Would You Ask A Pirate MEP?

2. Nintendo Wants Websites Blocked


Each year companies get to submit a list of proposals to the US government on how they could improve copywrong enforcement across the world, known as the Special 301 Report. Included in Nintendo's letter are such reccomendations as adding China, Spain, and Brazil (among others) to the USA's watchlist; publicizing raids and other sanctions to increase awareness; and giving stronger penalties to copyright infringers as well as taking to court more high-profile infringers. Nintendo's operating income has been around 37.3 Billion Yen (around £270 million) each year.

Main Article by TorrentFreak: Nintendo Wants To Hunt Game Pirates And Block Websites

3. Firefox Launch OS At Mobile World Congress


Mozilla has "Unleashed The Fox"; those attending the Mobile World Congress will be able to experience Firefox OS and The Fox firsthand. This is an interesting development, as it marks the first mainstream Mobile OS entirely created by a not-for-profit organisation. It will be interesting to see how it fares against Google's Android, which has already cornered most of the mobile market. Although Android is mostly Open Source, it is developed by it's for-profit parents Google.

Main Article by The Mozilla Blog: Moblizing Mozilla: Blazing Your Own Path