Posts tagged TECH
I decided to learn by example and assigned myself the goal of building pong in box2d.
box2d is an overkill for pong , but what do you know, it’s damn easy.
[iframe src=http://www.codeinvain.com/blog/wp-content/uploads/2010/07/Box2DDemos/Pong2D.html width=840 height=440]
the gist of it is :
- world setup
- event handling
Full source code hosted in github Pong in Box2DFlex.
a SkinnablePhysicsContainer holding two border containers (named p1 and p2) which are the player bars and corelating p1Goal and p2Goal which will act as hit area for the ball graphics element (Ellipse).
Setting Up the World
when the application loads it maps all elements in the physics container to box2d bodies , in woldSetup method i specified different mapping types to components
The key thing you need to know is that you want p1, p2 and the goals controls to be kinematic bodies so
- they are not affected by collations and
- they do not collide with each other
- they affect dynamic bodies colliding into them
and an event handler onBodiesContact that triggers when two bodies collide .
onBodiesContact is triggered each time two bodies collide indie it i do a simple test to see which to bodies collided and triggers the respective indicator.
world_mouseMoveHandler is handling the translation of mouse position and movement of p2
That’s a short one , I was banging my head for the last few months with a problem @ my home network.
I have a few computers all of which are connected via a router and all see each other perfectly and can be accessed via IP or computer name.
All except one PC and Mac which refused to see each other by computer name but could be accessed by IP. But today I finally managed, after comparing the installed software on two PC’s I decided to try and uninstall Bonjour services from my PC to see if it impairs the connection , and luckily it did.
So if it happens to you remove Bonjour services from PC
it’s time to update my podcast list some shows are RIP and some new came to light. so without further ado my mid 2010 podcast list .
This time i grouped them by interest . some have fixed amount of episodes and some reoccur weekly . there are some hebrew podcasts in the list as well , I left the name and notes in hebrew.
Hanselminutes - ”is a weekly audio talk show with noted web developer and technologist Scott Hanselman. Scott discusses utilities and tools, gives practical how-to advice, and discusses ASP.NET or Windows issues and workarounds.”
.NET Rocks! -” is a weekly talk show for anyone interested in programming on the Microsoft .NET platform. The shows range from introductory information to hardcore geekiness.”
Deep Fried Bytes – “The show discusses a wide range of topics including application development, operating systems and technology in general. Anything is fair game if it plugs into the wall or takes a battery.” they are .NET centric and focus on mainstream development.
i’m not sure if Alt.NET is the correct way to call the following section maybe .net with balls is more at it ….. they push the envelope
Herding Code – “Herding Code is a weekly podcast with K. Scott Allen, Kevin Dente, Scott Koon, and Jon Galloway.” it’s the show with most hosts at once i hear but what can I say when it works it just works.
The Thirsty Developer – ”A podcast with Microsoft Developer Evangelist, Dave Bost and Clark Sell” They bring top guests and talk about interesting topics.
Flex / AS3
The Flex Show – Everything Flex and AS3 sadly that’s the only one I found …
Open source / Versatile technology
The Changelog – very new very cool show about open source , I hope it will last.
Software Engineering Radio – “Software Engineering Radio is a podcast targeted at the professional software developer. The goal is to be a lasting educational resource, not a newscast”
Hacker Medley – ” is a short podcast for curious hackers. Our goal is to talk about the cool things we’ve learned that we love explaining to our friends.”
WebDevRadio.com – web development podcast – “News, views and issues for the web developer”
Tech / inspiration
WNYC’s Radiolab – if nothing else at least you owe it to yourself to subscribe to this one.
עושים היסטוריה! עם רן לוי Making History! with Ran
Startups For the Rest of Us – about building small ventures - ”the podcast that helps developers be awesome at launching software products”
Harvard Business IdeaCast – “features breakthrough ideas and commentary from the leading thinkers in business and management”
כלכלת מוצרי מידע (ספר קולי) – ספר שמלווה קורס של האוניברסיטה הפתוחה אפשר שווה לכל מי שרוצה לבנות ולתמחר תוכנה
התנהגות ארגונית (ספר קולי) -ספר שמלווה קורס של האוניברסיטה הפתוחה אם אתה עובד באירגון גדול או רוצה להשתלב באחד