<div>Also, keep in mind that on mobile devices you can have a very severe lag when the user is not on wi-fi so simply sending the location of the on-screen ball will cause sync issues, specially if it's a multiplayer game. </div>
<div>Like you said, they'll be a fair amount of physics involved.</div><div><br></div><div>Even though it is best practice to use some of the gen_* modules, when I was starting (still a bit of a noob) I decided to make my own tcp and state machines using the erlang basics. Although I haven't done this yet, from a bit of research it really shouldn't be a big issue upgrading that basic erlang code to say something like gen_tcp. At the same time, you get a better understanding of the basics.</div>
<div><br></div><div>At this level, you can prototype your architecture a little more freely, like adding authentication at the socket/tcp level. Sleeping before disconnecting users, switching to ssl, send udp packets at certain events, etc.</div>
<br><div class="gmail_quote">On Tue, Apr 12, 2011 at 7:22 PM, Mode7James <span dir="ltr"><<a href="mailto:James@nt-sky.com">James@nt-sky.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm just learning Erlang, so please bear with me. I've read Erlang & OTP in<br>
Action, and am currently reading through Joe Armstrong's book right now.<br>
That said, I am currently a Sr. Flash developer, so my background is still a<br>
little fresh concerning programming concepts that I'm sure most of you are<br>
already well-versed in.<br>
<br>
I want to build a server for mobile & flash multiplayer games that utilizes<br>
a secure TCP connection to authenticate people, but then opens a UDP port to<br>
send/receive information.<br>
<br>
I decided to post here because all I need is a little kick in the right<br>
direction. I figured my first goal would be to set up a simple server that<br>
is able to send/receive from a very simple client, written in Objective-C.<br>
This would allow the user to drag a ball around the screen, essentially<br>
sending the coordinates of the user's input to the server, it checks with<br>
the basic mechanics, and sends back so many frames per second the location<br>
of an on-screen ball.<br>
<br></blockquote><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
My goal is to incorporate simple physics, but I really want to start small<br>
and get off on the right foot. Would someone please walk me through doing<br>
this the proper way, using OTP standards? I want to make sure that I don't<br>
create any bad habits, and so far I have understood the books I've read.<br>
Reading and creating a fully working example is two completely different<br>
things though.<br>
<br>
Thanks so much in advance!<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://erlang.2086793.n4.nabble.com/Erlang-beginner-questions-tp3446106p3446106.html" target="_blank">http://erlang.2086793.n4.nabble.com/Erlang-beginner-questions-tp3446106p3446106.html</a><br>
Sent from the Erlang Questions mailing list archive at Nabble.com.<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>~ Jeremiah:9:23-24<br>Android 2D MMORPG: <a href="http://solrpg.com/" target="_blank">http://solrpg.com/</a>, <a href="http://www.youtube.com/user/revoltingx" target="_blank">http://www.youtube.com/user/revoltingx</a><br>