From marcs at ziggo.nl Sun Jun 1 11:36:16 2014 From: marcs at ziggo.nl (Marc Stevens) Date: Sun, 1 Jun 2014 11:36:16 +0200 (CEST) Subject: [python-nl] lagen Message-ID: <625268792.689898.1401615376742.open-xchange@oxbe2.tb.mail.iss.local> Is het in python met pygame ook mogelijk om in verschillende lagen te werken? Ik zou dan een spel kunnen maken met foto in bmp formaat (of zelfs in jpg indien mogelijk) die ik zelf heb gemaakt in Photoshop als decor in bijvoorbeeld laag 0 (of laag 1). Vervolgens zou ik nog over die laag een tweede laag kunnen aan brengen met bijvoorbeeld een venster waar text in staat, bijvoorbeeld de score of mededelingen. Tenslotte zou je misschien een laag kunnen aanbrengen voor sprites over te laten bewegen, die kan ik maken in sqratch. From motoom at xs4all.nl Sun Jun 1 13:28:49 2014 From: motoom at xs4all.nl (Michiel Overtoom) Date: Sun, 1 Jun 2014 13:28:49 +0200 Subject: [python-nl] lagen In-Reply-To: <625268792.689898.1401615376742.open-xchange@oxbe2.tb.mail.iss.local> References: <625268792.689898.1401615376742.open-xchange@oxbe2.tb.mail.iss.local> Message-ID: <45794892-90F0-4073-8A9B-306CFA7B964D@xs4all.nl> On Jun 1, 2014, at 11:36, Marc Stevens wrote: > Is het in python met pygame ook mogelijk om in verschillende lagen te werken? > Ik zou dan een spel kunnen maken met foto in bmp formaat (of zelfs in jpg indien > mogelijk) die ik zelf heb gemaakt in Photoshop als decor in bijvoorbeeld laag 0 > (of laag 1). > Vervolgens zou ik nog over die laag een tweede laag kunnen aan brengen met > bijvoorbeeld een venster waar text in staat, bijvoorbeeld de score of > mededelingen. > Tenslotte zou je misschien een laag kunnen aanbrengen voor sprites over te laten > bewegen In veel pygame programmaatjes zie je dat het volgende gebeurt in elke iteratie van de eventloop: 1. wis het scherm (of plaats een achtergrond) 2. teken de spritegroups 3. drawtext de score 4. display.flip() In stap 1 t/m 3 teken je eigenlijk op een onzichtbare backbuffer. Die wordt in stap 4 pas zichtbaar voor de gebruiker. Tussen stap 1 en 2 zou je nog andere achtergronden over de bestaande achtergrond heen kunnen blitten (bitmap met transparantie). Zo kun je parallax-effecten maken. Groes, -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From marcs at ziggo.nl Wed Jun 4 09:14:19 2014 From: marcs at ziggo.nl (Marc Stevens) Date: Wed, 4 Jun 2014 09:14:19 +0200 Subject: [python-nl] Sprite Message-ID: Geachte python vrienden, Zou je me kunnen vertellen wat de eenvoudigste manier is om een klein plaatje(pictogram of sprite) te laten bewegen over de background, dmv (x,y) coordinaten. Ik heb voorbeelden bekeken van andere spellen. Maar die werken met heel complex met classes en def . Dat is me nog te ingewikkeld. Misschien toekomst muziek ! Alvast bedankt, Marc Stevens ------------- volgend deel ------------ Een HTML-bijlage is gescrubt... URL: From johnnydebris at gmail.com Wed Jun 4 10:00:28 2014 From: johnnydebris at gmail.com (Guido Wesdorp) Date: Wed, 4 Jun 2014 10:00:28 +0200 Subject: [python-nl] Sprite In-Reply-To: References: Message-ID: Beste Marc, Ik zou je sterk aan willen raden toch echt eerst de Python basics zoals classes, functies, core data typen en hun functionaliteit en de core modules (os, sys, etc.) goed door te nemen (http://docs.python.org) voor je aan zoiets als sprites bewegen in PyGame begint, of in ieder geval voor je hier over zo'n onderwerp vragen stelt. Als je die dingen niet kent is het bijna onmogelijk antwoord te geven op je vragen zo dat je het begrijpt, dan zouden we hooguit 'jouw werk voor je kunnen doen', dus volledig uitschrijven wat je wilt zonder dat jij er iets van leert, en daar is deze lijst niet voor bedoeld denk ik (dan moet je gewoon iemand inhuren of zo, imo). Mocht je bij het lezen van de documentatie over de core concepten en modules vragen hebben oid (of wanneer vragen hebt over PyGame als je die concepten eenmaal begrijpt) kun je die natuurlijk wel gewoon hier stellen. Alvast bedankt voor je begrip, Guido Wesdorp (list moderator) 2014-06-04 9:14 GMT+02:00 Marc Stevens : > Geachte python vrienden, > > Zou je me kunnen vertellen wat de eenvoudigste manier is om een klein > plaatje(pictogram of sprite) te laten bewegen over de background, dmv (x,y) > coordinaten. > Ik heb voorbeelden bekeken van andere spellen. Maar die werken met heel > complex met classes en def . Dat is me nog te ingewikkeld. Misschien > toekomst muziek ! > Alvast bedankt, > > Marc Stevens > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From motoom at xs4all.nl Wed Jun 4 09:57:42 2014 From: motoom at xs4all.nl (Michiel Overtoom) Date: Wed, 4 Jun 2014 09:57:42 +0200 Subject: [python-nl] Sprite In-Reply-To: References: Message-ID: <20BC0980-3B56-4181-87AA-7D459973A64A@xs4all.nl> On Jun 4, 2014, at 09:14, Marc Stevens wrote: > Maar die werken met heel complex met classes en def . Dat is me nog te ingewikkeld. Dan is het misschien beter om eerst wat python tutorials door te werken om erachter te komen wat classes en functies zijn. Want die worden in bijna alle niet-triviale python programma's gebruikt. Zonder functies zou een programma al snel een onoverzichtelijk zootje worden. En moeilijk is het niet ;-) def groet(naam): print "Hallo", naam print "Hoe gaat 't ermee?" groet("Jan") groet("Marie") groet(42) Groets, -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From jmh31415 at gmail.com Wed Jun 4 10:27:06 2014 From: jmh31415 at gmail.com (JMH) Date: Wed, 4 Jun 2014 10:27:06 +0200 Subject: [python-nl] Sprite In-Reply-To: <20BC0980-3B56-4181-87AA-7D459973A64A@xs4all.nl> References: <20BC0980-3B56-4181-87AA-7D459973A64A@xs4all.nl> Message-ID: Heb hem de reader van m'n Python college toegestuurd waarin ook Pygame wordt uitgelegd. Met vriendelijke groeten, Jacco Hoekstra > On 4 jun. 2014, at 09:57, Michiel Overtoom wrote: > > >> On Jun 4, 2014, at 09:14, Marc Stevens wrote: >> >> Maar die werken met heel complex met classes en def . Dat is me nog te ingewikkeld. > > Dan is het misschien beter om eerst wat python tutorials door te werken om erachter te komen wat classes en functies zijn. Want die worden in bijna alle niet-triviale python programma's gebruikt. Zonder functies zou een programma al snel een onoverzichtelijk zootje worden. > > En moeilijk is het niet ;-) > > > def groet(naam): > print "Hallo", naam > print "Hoe gaat 't ermee?" > > groet("Jan") > groet("Marie") > groet(42) > > Groets, > > -- > A: Because it fouls the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl From reinout at vanrees.org Wed Jun 18 12:11:11 2014 From: reinout at vanrees.org (Reinout van Rees) Date: Wed, 18 Jun 2014 12:11:11 +0200 Subject: [python-nl] Python meeting in Utrecht this friday Message-ID: Meetup link: http://www.meetup.com/dutch-django-assocation/events/179100132/ This friday 20 june I'll organize the third Python meeting in Utrecht at Nelen&Schuurmans. Welcome! The program starts at **19:30**, everyone is welcome from around 19:00. The actual talks will finish around 22:00, afterwards there are drinks and chips. As always: attendance is free. For the cola/chips/beer planning, it is handy however if you tell us if you'll come or not. There are already 45 who said they'd come, so it'll be pretty crowded :-) Location: Zakkendragershof 34. Use the red fenced gate in the Zakkendragersteeg (between the Vredenburg square and the King Arthur pub, if you know Utrecht). Try to be on time, as after 20:00 the gate is closed automatically and you'll have to phone the number I'll put on the fence to get in. **Program** 30 minutes: Tikitu de Jager about async, coroutines, event loops, etc. 3x 5 minute lightning talks 30 minutes: Arjan Verkerk and Reinout van Rees: GDAL raster magic + 3Di flood simulation. 3x 5 minute lightning talks. So... lightning talks wanted! Reply here if you want a slot. Reinout -- Reinout van Rees http://reinout.vanrees.org/ reinout at vanrees.org http://www.nelen-schuurmans.nl/ "Learning history by destroying artifacts is a time-honored atrocity" From arjan.verkerk at nelen-schuurmans.nl Fri Jun 20 10:38:41 2014 From: arjan.verkerk at nelen-schuurmans.nl (Arjan Verkerk) Date: Fri, 20 Jun 2014 10:38:41 +0200 Subject: [python-nl] Python meeting in Utrecht this friday In-Reply-To: References: Message-ID: Well, there is a small test-related subject that would be a bit off-topic in my other talk; I would like to elaborate a bit on it during the first block of lightning talks, if a slot is still available here. Let's call it: "Lightning tests". Arjan Verkerk. On Wed, Jun 18, 2014 at 12:11 PM, Reinout van Rees wrote: > Meetup link: > http://www.meetup.com/dutch-django-assocation/events/179100132/ > > This friday 20 june I'll organize the third Python meeting in Utrecht at > Nelen&Schuurmans. Welcome! > > The program starts at **19:30**, everyone is welcome from around 19:00. > The actual talks will finish around 22:00, afterwards there are drinks and > chips. > > As always: attendance is free. For the cola/chips/beer planning, it is > handy however if you tell us if you'll come or not. There are already 45 > who said they'd come, so it'll be pretty crowded :-) > > Location: Zakkendragershof 34. Use the red fenced gate in the > Zakkendragersteeg (between the Vredenburg square and the King Arthur pub, > if you know Utrecht). Try to be on time, as after 20:00 the gate is closed > automatically and you'll have to phone the number I'll put on the fence to > get in. > > > **Program** > > 30 minutes: Tikitu de Jager about async, coroutines, event loops, etc. > > 3x 5 minute lightning talks > > 30 minutes: Arjan Verkerk and Reinout van Rees: GDAL raster magic + 3Di > flood simulation. > > 3x 5 minute lightning talks. > > > So... lightning talks wanted! Reply here if you want a slot. > > > > > Reinout > > -- > Reinout van Rees http://reinout.vanrees.org/ > reinout at vanrees.org http://www.nelen-schuurmans.nl/ > "Learning history by destroying artifacts is a time-honored atrocity" > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl > -- met vriendelijke groet, Arjan Verkerk *Nelen & Schuurmans* Postbus 1219 3500 BE Utrecht Zakkendragershof 34-44 Utrecht tel. 030 2330 232 mob. 06 41 52 08 04 www.nelen-schuurmans.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From maurits at vanrees.org Sat Jun 21 12:56:01 2014 From: maurits at vanrees.org (Maurits van Rees) Date: Sat, 21 Jun 2014 12:56:01 +0200 Subject: [python-nl] Summaries PUN 20 June 2014, Utrecht Message-ID: <53A564C1.9070609@vanrees.org> Hi, Here are my summaries: http://maurits.vanrees.org/weblog/archive/2014/06/pun Cheers, -- Maurits van Rees: http://maurits.vanrees.org/ From reinout at vanrees.org Sun Jun 22 19:31:39 2014 From: reinout at vanrees.org (Reinout van Rees) Date: Sun, 22 Jun 2014 19:31:39 +0200 Subject: [python-nl] Summaries PUN 20 June 2014, Utrecht In-Reply-To: <53A564C1.9070609@vanrees.org> References: <53A564C1.9070609@vanrees.org> Message-ID: On 21-06-14 12:56, Maurits van Rees wrote: > Here are my summaries: > http://maurits.vanrees.org/weblog/archive/2014/06/pun Thanks for the summaries! And... thanks for everyone that showed up. I found it a nice evening myself if I say so :-) Rumor has it that someone at booking.com will organize it at their office in Amsterdam somewhere in september or october. I'm awaiting confirmation :-) Reinout -- Reinout van Rees http://reinout.vanrees.org/ reinout at vanrees.org http://www.nelen-schuurmans.nl/ "Learning history by destroying artifacts is a time-honored atrocity"