trampoline=new Array(); for (i=0, y=0; y for (x=0; x switch (field.getCell(x, y)) { case CELL_PLAYER: player=new Player(x, y); field.setCell(x, y, CELL_VOID); break; case CELL_TRAMPOLINE: trampoline[i++]=new Trampoline(x, y); break; } } } }
When electronics end up in landfills, toxics like lead, mercury, and cadmium leach into the soil and water.
The electronic waste problem is huge: More than 20 million tons of e-waste are produced every year. Americans alone generate about 3.4 million tons of e-waste per year. If you put every blue whale alive today on one side of a scale and one year of US e-waste on the other, the e-waste would be heavier.
Some e-waste is shipped overseas, where it is burned for scrap by kids in junkyards. We visited a scrapyard in Accra, Ghana and met some really good kids in a bad situation. They didn’t know how toxic their job really is.
Even so, encouraging a global market for used electronics does more good than harm: 1.Repaired electronics give people access to low-cost electronics and help them access the awesome benefits of technology 2.Used electronics create repair jobs in developing countries that often have few opportunities for skilled labor 3.Reuse in developing countries is usually more effective than domestic recycling—there’s not much of a market for old cathode ray tube monitors in the US, for example, but they are reused in other countries.
Global consumption of electronics is increasing. Every year we create more e-waste than before. At least 50% of Africa’s e-waste comes from within the continent. China discards 160 million electronic devices a year.
We create too much e-waste and reuse way too little.
Humanity has reached its peak and is now probably in its downfall, according to major new research.
People have long thought of human development as one long process of improvement, going on forever. But we are now running up against the limits of how good we can be, say scientists – and most likely we'll now just begin to fall again.
人類はピークに達して、現在文明のレベルは後退を始めている。
The major research review looked at 120 years of data and found that there appears to be limits on our characteristics, like when we die, how tall we can be and how strong we are. We are pushing up against those limits now, the research suggests.
What's more, the ways that we are changing our environment – including through global warming – is probably going to pull those limits down and force humanity into a decline, the researchers said.
For a long time, humanity has looked to be improving. Sprinting speeds that once seemed impossible are now commonplace, for instance, and the record for oldest person in the world is often being broken.
But with time, we'll probably see fewer world records being broken, the new research suggests, and little development in how old the oldest people are. More people might reach those peaks of performance, but the peaks will get no higher, the research published in the journal Frontiers in Psychology found.
"These traits no longer increase, despite further continuous nutritional, medical, and scientific progress. This suggests that modern societies have allowed our species to reach its limits. We are the first generation to become aware of this" said Jean-François Toussaint from Paris Descartes University, France.
Some of those limits now appear to be falling. And it is in large part because of changes we are making to our environment, said Professor Toussaint.
"This will be one of the biggest challenges of this century as the added pressure from anthropogenic activities will be responsible for damaging effects on human health and the environment." he said in a statement. "The current declines in human capacities we can see today are a sign that environmental changes, including climate, are already contributing to the increasing constraints we now have to consider.
"Observing decreasing tendencies may provide an early signal that something has changed but not for the better. Human height has decreased in the last decade in some African countries; this suggests some societies are no longer able to provide sufficient nutrition for each of their children and maintain the health of their younger inhabitants."
var m11RPGwj_data = new m11RPGwj_GameData(); var m11RPGwj_playerStatus = new m11RPGwj_GameStatus(); var m11RPGwj_systemStatus = new m11RPGwj_SystemStatus(); var m11RPGwj_config = new Object(); var m11RPGwj_loadDataList; var m11RPGwj_resManager = new m11RPGwj_ResourceManager();
・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・
テトリスのソースコード
var BLOCK_SIZE = 24; // 1ブロックのサイズ var BLOCK_RAWS = 22; // ステージの高さ(20ライン分をステージとして使用し、上下1ラインはあたり判定とブロックコピー用に使用) var BLOCK_COLS = 12; // ステージの幅 var SCREEN_WIDTH = BLOCK_SIZE * BLOCK_COLS; // キャンバスの幅 var SCREEN_HEIGHT = BLOCK_SIZE * BLOCK_RAWS; // キャンバスの高さ // ゲームの状態 var GAME = 1; // ゲーム中 var GAMEOVER = 0; // ゲームオーバー時 var EFFECT = 2; // ブロックを消すときのエフェクトモード // ブロックの状態 var NON_BLOCK = 0; // ブロックが存在しない var NORMAL_BLOCK = 1; // 通常のブロック(動かせる) var LOCK_BLOCK = 2; // ロックした(動かせない)ブロック var CLEAR_BLOCK = 3; // 消去するブロック(1ライン揃ったとき) var WALL = 9; // 壁 // エフェクト var EFFECT_ANIMATION = 2; // エフェクト時のちかちかする回数 // 色 var BACK_COLOR = "#ddd"; // 背景色 var GAMEOVER_COLOR = "#fff"; // ゲームオーバー時のブロックの色 var BLOCK_COLOR = "#000"; // 操作ブロックの色 var LOCK_COLOR = "#333"; // ロックしたブロックの色 var WALL_COLOR = "#666"; // 壁の色 var ERROR_COLOR = "#f00"; // エラーブロックの色 var EFFECT_COLOR1 = "#fff"; // エフェクト時の色1 var EFFECT_COLOR2 = "#000"; // エフェクト時の色2 // ゲーム要素 var NEXTLEVEL = 10; // 次のレベルまでの消去ライン数
/* * グローバル変数 */ var canvas = null; // キャンバス取得 var g = null; // コンテキスト取得 var stage = new Array(BLOCK_COLS); // ゲームのステージ枠(壁の情報のみ、変化しない) var field = new Array(BLOCK_COLS); // ゲーム中のステージ枠とブロック表示用(変化する) var bs; // ブロックサイズ var speed; // 落下速度 var frame; // ゲームフレーム番号 var block = new Array(); // 落ちてくるブロックの種類(7種類) var oBlock = new Array(); // 操作中のブロック var blockType; // ブロックの種類番号 var x, y; // ブロックの現在位置 var sx, sy; // ブロックの元位置 var mode; // ゲームの状態 GAME/GAMEOVER/EFFECT var timer1; // ゲームループ用のタイマー var FPS; // 描画書き換え速度 var clearLine; // 消去したライン数 // エフェクト時(色の反転/エフェクトスピード/エフェクト回数) var effectState = {flipFlop: 0, speed: 0, count: 0};
After his own defection to South Korea in 2010, Choi Seong-guk, 37, realized that the two Koreas were no longer the same country — many cultural and linguistic differences have arisen during more than 70 years of division.