Bob the Pleo Forums

Pleo Stuff => Pleo Archives => Archive -- Welcome => Topic started by: MGdesigner on March 24, 2013, 04:26:08 PM

Title: Hello From Taiwan
Post by: MGdesigner on March 24, 2013, 04:26:08 PM
Hi I am from Taiwan. I just got my pink Pleo from HK. I have some programming experience and music ability. I wish to write some funny program.  :)
Title: Re: Hello From Taiwan
Post by: Torterenek on March 24, 2013, 05:04:00 PM
how much experience do you have with programming? and welcome to the forums!
Title: Re: Hello From Taiwan
Post by: MGdesigner on March 24, 2013, 11:43:47 PM
I used to write programs by Java, especially actiion and shooting games.  ;) And I use Linux as my Laptop/Desktop system. I am familiar with ./configure;make;sudo make install. Now I am researching how to run PrbDK correctly without wine under Linux.
Title: Re: Hello From Taiwan
Post by: InmemoryofRomeo on March 25, 2013, 12:31:09 AM
Welcome to the forums :) I hope you can sort out your problem in Linux, more programmers = more fun!
Title: Re: Hello From Taiwan
Post by: PleoAibo29 on March 25, 2013, 07:41:32 PM
Hello,and welcome to the forums! I think you will make lots of new friends here. I like programming too.
 I program mostly in Python.
Title: Re: Hello From Taiwan
Post by: Kami on March 26, 2013, 12:29:40 AM
Belated welcome! It'll be fun to have another pink Pleo around the place; I think they're just so cute. :D

Programming for Pleo is basically like C programming with a few differences. Once you figure out how to get something running on your Pleo for the first time (the examples with the PrbDK help with that) it's great fun. I've tried a few things but there are always more things I'd like to do I can't figure out how to get working, so it's good to have other programmers around to help.

(PleoAibo, I'm also a Python programmer in my non-Pleo life. Which is why my Pleo code always has too many colons and not enough semicolons. ;) )
Title: Re: Hello From Taiwan
Post by: PleoAibo29 on March 27, 2013, 06:34:44 AM
*snickers.* C is a lower language, so it's harder. I guess I need to start working on C. By the way, doe's anyone know if MySkit works with an RB?
Title: Re: Hello From Taiwan
Post by: Crewella on March 27, 2013, 07:02:09 AM
Most straightforward skits will run in an RB, one difficulty is that there are are more sensors on the back in an RB, which MySkit was not set up for.
Title: Re: Hello From Taiwan
Post by: Kami on March 27, 2013, 08:19:03 AM
The thing that's really hard to grasp about C is doing your own memory management, and you don't need that for a basic Pleo script. The only thing that really gets you is that you don't have the same data types as in other languages. I spent ages trying to figure out why my Boolean value wasn't working until I realised there was no such thing for C, so I tried to use an integer value instead, except there's no data type for that either...! :P

</techrambling>
Title: Re: Hello From Taiwan
Post by: PleoAibo29 on March 27, 2013, 02:17:02 PM
No boolean data? Or  INTEGER DATA? AHHH! I guess I do have some work to do.  ???
Title: Re: Hello From Taiwan
Post by: MGdesigner on March 28, 2013, 02:33:04 AM
No boolean @@ ! I still didn't find this,so we need use integer "1 ,0" as boolean?
Title: Re: Hello From Taiwan
Post by: PleoAibo29 on March 28, 2013, 05:46:59 AM
Well, there is no boolean or integer data. Im kind of confused by that question.
Title: Re: Hello From Taiwan
Post by: Kami on March 28, 2013, 07:21:54 AM
You would use 1's and 0's for Boolean values, yes. There is no proper integer data type (that I remember, at least - and I may be remembering this wrong!) but you can still create variables that hold what we call integer data. And the Pleo's sensors return 1 and 0 values to tell you whether they are sensing something or not. It is very close to any coding you would do in any other language, except that now and then something you assume will be there because it is in all of the other popular languages, isn't there!
SimplePortal 2.3.5 © 2008-2012, SimplePortal