Εισαγωγή στον προγραμματισμό παιχνιδιών με Python!
Εισαγωγή στον προγραμματισμό παιχνιδιών με Python!
Θέματα γύρω από τον προγραμματισμό.

Postby Bad Sector » Fri May 07, 2010 2:18 pm

Αρκετές φορές με έχουν ρωτήσει είτε εδώ είτε με email σχετικά με Python, προγραμματισμό και παιχνίδια (κυρίως λόγω της στήλης που έγραφα μια περίοδο). Ως τώρα δεν είχα κάτι το ιδιαίτερο να πω πέρα από το να δείξω τα manual και documentation της Python και της PyGame. Ωστόσο πλέον ένα βιβλίο (που διατίθεται τόσο σε paper μορφή όσο και σε δωρεάν online μορφή - γι'αυτό το βάζω) έπεσε στην αντίληψη μου το οποίο κάνει την εκμάθηση προγραμματισμού παιχνιδιών (και όχι μόνο) σε Python... παιχνιδάκι. Το βιβλίο είναι το Invent Your Own Computer Games with Python (τίτλος ο οποίος είναι homage σε ένα παλαιότερο βιβλίο των 80s για BASIC) του Albert Sweigart.

Όποιος πρωτοασχολείται με προγραμματισμό και θέλει να μάθει με έναν ευχάριστο τρόπο, μπορεί να διαβάσει το παραπάνω βιβλίο. Το βιβλίο χρησιμοποιεί ένα πολύ ευανάγνωστο στυλ με πλούσια χρήση εικόνων για να δείξει στον αναγνώστη τι συμβαίνει από πίσω, ενώ προσφέρει προαιρετικά εργαλεία στο site για την εκμάθηση της Python.
Image
User avatar
Bad Sector
Deadly
 
Posts: 3938
Joined: Wed Jun 15, 2005 4:03 pm

Postby nitro912gr » Fri May 07, 2010 2:36 pm

Thanks κατεβαίνει!

Να σου πω badsector, αν γράψω κάτι σε python στο pc μετά για να το μεταφέρω στο mac τι θα χρειαστεί; Απλά recompile με την έκδοση python για mac? Ή πρέπει να γίνουν και διορθώσεις στον κώδικα;
User avatar
nitro912gr
Επίτιμο Μέλος
 
Posts: 15034
Joined: Tue Jan 03, 2006 12:45 am
Location: Athens, Aigio

Postby Bad Sector » Tue May 18, 2010 12:40 pm

Intepreted είναι η Python (αν και νομίζω πως μπορείς να κάνεις convert σε εκτελέσιμο, απλά δεν ξέρω πως :-P).

Κατά πάσα πιθανότητα δεν θα χρειαστεί να κάνεις τίποτα. Απλά εκτέλεσε το κεντρικό .py αρχείο και είσαι ok. Σημείωσε πως η Python που έρχεται με το Mac OS X όμως είναι η 2.6 ενώ το βιβλίο αναφέρεται στην 3.1
Image
User avatar
Bad Sector
Deadly
 
Posts: 3938
Joined: Wed Jun 15, 2005 4:03 pm

Postby vanchann » Wed May 19, 2010 4:22 am

Η python χρησιμοποιεί interpreter και αντίστοιχα με τη java μετατρέπει τα .py και .pyw (όταν προγραμματίζεται σε γραφικό περιβάλλον τα αρχεία αυτά δεν εμφανίζουν κονσόλα, τρέχουν με τον pythonw interpreter) σε .pyc και .pyo (είναι optimized bytecode) - bytecode files. Ο interpreter χρησιμοποιεί timestamps και σε επόμενες εκτελέσεις δημιουργεί νέα bytecode αρχεία, μόνο αν έχει αλλάξει κάτι σε σχέση με την προηγούμενη εκτέλεση τους. Αν το ζήτημα είναι η ταχύτητα εκτέλεσης μην ανυσηχείτε.

Αν τα bytecode files είναι που θέλετε, τότε δείτε τα παρακάτω:
Python 2.6:
1.py_compile
2.compileall
Python 3.1:
1.py_compile
2.compileall

Αν θέλετε, μπορείτε να συνδέσετε python με compiled κώδικα C/C++ (κερδίζοντας και σε ταχύτητα εκτέλεσης), αλλά δε νομίζω να είναι αυτό που σας αποσχολεί αυτή τη στιγμή.

Αν χρησιμοποιείτε Netbeans για προγραμματισμό σε python (δουλεύει και jython), το IDE δημιουργεί και διατηρεί τα bytecode files στον ίδιο φάκελο με τα source files κατά την εκτέλεση.
If it walks like a duck and quacks like a duck, it is a duck.
User avatar
vanchann
Poor
 
Posts: 59
Joined: Tue Apr 18, 2006 7:35 am

Postby CCWR » Fri Jun 18, 2010 8:19 pm

Τέλεια ευχαριστω πολύ!
User avatar
CCWR
Competent
 
Posts: 962
Joined: Mon Apr 19, 2010 3:55 pm
Location: Χανιά

Postby tfotis » Sat Dec 31, 2011 7:27 pm

Παιδιά, εγώ είμαι άσχετος με προγραμματισμό, αλλά πάνταδιψούσα να μάθω. Θα μπορούσα δλδ να ξεκινήσω από python; Θα ήθελα να μάθω, για εκπαιδευτικούς λόγους, αλλά και για χόμπι, επίσης κ για εξοικείωση με προγραμματισμό. Τί συμβουλεύεται;
tfotis
Average
 
Posts: 125
Joined: Thu Nov 19, 2009 9:46 pm

Postby Dark_Fighter » Sat Dec 31, 2011 10:22 pm

tfotis wrote:Παιδιά, εγώ είμαι άσχετος με προγραμματισμό, αλλά πάνταδιψούσα να μάθω. Θα μπορούσα δλδ να ξεκινήσω από python; Θα ήθελα να μάθω, για εκπαιδευτικούς λόγους, αλλά και για χόμπι, επίσης κ για εξοικείωση με προγραμματισμό. Τί συμβουλεύεται;


python/java is the way young padawan :lol:
User avatar
Dark_Fighter
Deadly
 
Posts: 3057
Joined: Tue Nov 20, 2007 2:31 am
Location: Πατρα

Postby tfotis » Mon Jan 09, 2012 3:03 am

Ευχαριστώ Δάσκαλε :)

Dark_Fighter wrote:
tfotis wrote:Παιδιά, εγώ είμαι άσχετος με προγραμματισμό, αλλά πάνταδιψούσα να μάθω. Θα μπορούσα δλδ να ξεκινήσω από python; Θα ήθελα να μάθω, για εκπαιδευτικούς λόγους, αλλά και για χόμπι, επίσης κ για εξοικείωση με προγραμματισμό. Τί συμβουλεύεται;


python/java is the way young padawan :lol:
tfotis
Average
 
Posts: 125
Joined: Thu Nov 19, 2009 9:46 pm

Postby jonnyblaze12500 » Mon Oct 30, 2017 9:35 am

Any individual who works first in arranging and needs to learn wonderfully, can read the above book. The book utilizes a simple to-peruse, rich-picture style to demonstrate the peruser what's happening behind, while offering discretionary apparatuses on the site to learn Python. Essay Help Online
jonnyblaze12500
Escape Capsule
 
Posts: 3
Joined: Mon Oct 30, 2017 9:24 am

Postby vaiybora » Wed Jan 10, 2018 7:06 am

หนังสยองขวัญ Interesting question of the alien movie: covenant from the beginning. That's the question. Can human beings survive? In the world of aliens What is amazing in the world? Michael Faraday's role as two Android robots, David and Walter, is the same. And it seems that the feeling in him will have two poles together. He can be both God and demon.
Image
It's another one of the movie space. It's about finding a new home for humanity. In this story, John Logan and Dante Harper are responsible for the script, which is actually a continuation of the previous. Alien (1979), prometheus (2012) aliens: covenant It is about 18 years from the prometheus story, which begins in 2104, but has some resemblance to the previous few, namely, the departure of space in search of the new world. This time the covenant brought about 2,000 people to travel together. It's a long journey. In the end, the craft landed on star origae-6.
vaiybora
Mostly Harmless
 
Posts: 47
Joined: Sun Dec 10, 2017 2:52 pm

Postby zsxd02 » Wed Jan 10, 2018 10:58 am

In a sense, I think this is very romantic



แทงบอล maxbet
zsxd02
Harmless
 
Posts: 17
Joined: Tue Dec 05, 2017 10:17 am

Postby zsxd02 » Wed Jan 10, 2018 11:00 am

In a sense, I think this is very romantic



แทงบอล maxbet
zsxd02
Harmless
 
Posts: 17
Joined: Tue Dec 05, 2017 10:17 am

Postby Mozmee007 » Mon Jan 29, 2018 8:51 am

I like this movie style.













สมัคร sbobet
Mozmee007
Harmless
 
Posts: 21
Joined: Thu Dec 07, 2017 7:31 am

Postby nuning » Thu Mar 08, 2018 7:11 am

How to write a Python program? I have read a lot of comments. สูตรบาคาร่า
nuning
Poor
 
Posts: 52
Joined: Sat Oct 28, 2017 12:03 pm

Postby Lolgalol » Tue May 29, 2018 12:46 pm

Arcane Legends’s really a three-dimensional internet browser dependent dream MMORPG through Space-time Galleries. Arcane Stories can also be on IOS as well as Google android products like the iPhone/iPad as well as Google android backed pills as well as cell phones. This enables with regard to mix system perform with no need for any individual accounts which makes it simpler with regard to gamers in order to perform on the run.

Participant discover a sizable dream globe full of creatures as well as missions. Synergy along with as much as 3 additional gamers through all over the world as well as battle the right path via large roadmaps. Participant may select among 3 distinctive courses (Warrior, Rough, as well as Sorcerer).

Gather a sizable number of domestic pets in order to battle with you as well as degree all of them upward while you degree. Total countless missions and find out more than 1, 000 various weaponry, armors, as well as products. Perform PVE single or even co-op or even struggle with other people within real-time PVP.

To improve your own experience as well as enhance your own game play, you can purchase Arcane Legends Gold through our store LOLGA store are offering cheapest rate of Arcane Legend Gold to the customers. Arcane Legends Gold delivering is known for the short time in its delivery. Nowhere fast otherwise are you able to discover this type of excellent purchase! Sign up for all of us and obtain your own Arcane Legends gold. Keep close track of the unique purchase daily.

You will find here every single piece of information necessary to get you started on this massively popular online world without major trouble.
Lolgalol
Escape Capsule
 
Posts: 4
Joined: Tue May 29, 2018 12:41 pm

Postby Lolgalol » Tue May 29, 2018 12:47 pm

Arcane Legends’s really a three-dimensional internet browser dependent dream MMORPG through Space-time Galleries. Arcane Stories can also be on IOS as well as Google android products like the iPhone/iPad as well as Google android backed pills as well as cell phones. This enables with regard to mix system perform with no need for any individual accounts which makes it simpler with regard to gamers in order to perform on the run.

Participant discover a sizable dream globe full of creatures as well as missions. Synergy along with as much as 3 additional gamers through all over the world as well as battle the right path via large roadmaps. Participant may select among 3 distinctive courses (Warrior, Rough, as well as Sorcerer).

Gather a sizable number of domestic pets in order to battle with you as well as degree all of them upward while you degree. Total countless missions and find out more than 1, 000 various weaponry, armors, as well as products. Perform PVE single or even co-op or even struggle with other people within real-time PVP.

To improve your own experience as well as enhance your own game play, you can purchase Arcane Legends Gold through our store LOLGA store are offering cheapest rate of Arcane Legend Gold to the customers. Arcane Legends Gold delivering is known for the short time in its delivery. Nowhere fast otherwise are you able to discover this type of excellent purchase! Sign up for all of us and obtain your own Arcane Legends gold. Keep close track of the unique purchase daily.

You will find here every single piece of information necessary to get you started on this massively popular online world without major trouble.
Lolgalol
Escape Capsule
 
Posts: 4
Joined: Tue May 29, 2018 12:41 pm

Postby sftwrbattl » Tue Jul 10, 2018 10:54 am

The numbers and letters showed by the program speak to the Windows 7 item key. The item key ought to be organized like this Write this key code down precisely as the program shows it to you for utilize while reinstalling Windows 7 ms office 2010 product key
sftwrbattl
Escape Capsule
 
Posts: 3
Joined: Tue Jul 10, 2018 9:55 am

Postby sftwrbattl » Tue Jul 10, 2018 10:55 am

The numbers and letters showed by the program speak to the Windows 7 item key. The item key ought to be organized like this Write this key code down precisely as the program shows it to you for utilize while reinstalling Windows 7 ms office 2010 product key
sftwrbattl
Escape Capsule
 
Posts: 3
Joined: Tue Jul 10, 2018 9:55 am

Postby chimrig » Tue Aug 21, 2018 8:27 am

microsoft office 2010 product key
office 2010 product key

[100% Working] Microsoft Office 2010 Product Key for Free

Office 2010 item keys: office 2010 toolkit is the successor of Microsoft office 2007 and it is an adaptation of Microsoft office efficiency suite. When you get Microsoft Office 2010 you get it with Microsoft office 2010 item key. Microsoft office 2010 was more "part based" than past variants; there are numerous highlights which helped workers in parts, for example, innovative work experts, sales representatives, and HR.

New highlights in Microsoft office 2010 additionally incorporate an inherent screen catch device, a foundation expulsion instrument, new SmartArt layouts and creator consents. You can utilize these whole highlights with the assistance of item key for Microsoft office 2010. Past rendition's Office Button was supplanted with a menu catch that prompts a full-window document menu, known as Backstage View, giving simple access to undertaking focused capacities, for example, printing and sharing. So this is a standout amongst other office suit to use with the assistance of Microsoft office 2010 key.

Check: MS Office 2016 Product Key List

Microsoft office 2010 item key is a 25-character code used to enact office. It would appear that this:

Microsoft office 2010 serial key: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
chimrig
Escape Capsule
 
Posts: 3
Joined: Sun Jul 30, 2017 6:14 pm

Postby chimrig » Tue Aug 21, 2018 9:42 am

chimrig
Escape Capsule
 
Posts: 3
Joined: Sun Jul 30, 2017 6:14 pm

Next

Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

Η συντακτική ομάδα | Όροι Χρήσης | Διαφήμιση & επικοινωνία