<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=How_to_Make_a_Two-Player_Racing_Game</id>
	<title>How to Make a Two-Player Racing Game - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=How_to_Make_a_Two-Player_Racing_Game"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=How_to_Make_a_Two-Player_Racing_Game&amp;action=history"/>
	<updated>2026-05-20T01:13:09Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=How_to_Make_a_Two-Player_Racing_Game&amp;diff=1682&amp;oldid=prev</id>
		<title>Patarakin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=How_to_Make_a_Two-Player_Racing_Game&amp;diff=1682&amp;oldid=prev"/>
		<updated>2022-07-21T08:33:14Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 11:33, 21 июля 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=How_to_Make_a_Two-Player_Racing_Game&amp;diff=1681&amp;oldid=prev</id>
		<title>scratch&gt;SunsetAlicorn: Grammatical Mistakes</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=How_to_Make_a_Two-Player_Racing_Game&amp;diff=1681&amp;oldid=prev"/>
		<updated>2022-07-20T18:48:58Z</updated>

		<summary type="html">&lt;p&gt;Grammatical Mistakes&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:Racing track.png|right|thumb|200px|An example backdrop]]&lt;br /&gt;
[[File:Racing track finished.png|right|thumb|200px|Add in cars and edit the track as shown here when it is finished.]]&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;two player racing game&amp;#039;&amp;#039;&amp;#039; is a [[project]] that lets one compete in racing against another person.&lt;br /&gt;
&lt;br /&gt;
{{note|This tutorial does not connect to other users so they can compete together. Instead, two players on the same computer will be playing together.}}&lt;br /&gt;
==Preparation==&lt;br /&gt;
Create three sprites:&lt;br /&gt;
* Player 1&lt;br /&gt;
* Player 2&lt;br /&gt;
* Finish Line&lt;br /&gt;
== Player 1 ==&lt;br /&gt;
First, create a new [[sprite]], then change the costume to a car in the [[Sprites Library]] where there are sprites, add a if &amp;lt;&amp;gt; then [[block]], then a [[Point in Direction () (block)|Point in Direction block]], and then add a {{b|Move () Steps}} block. It should look like this: &lt;br /&gt;
&amp;lt;scratchblocks&amp;gt; &lt;br /&gt;
if &amp;lt;key (right arrow v) pressed&amp;gt; then&lt;br /&gt;
point in direction (0)&lt;br /&gt;
move (10) steps&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
Continue to do this with the left arrow, down arrow, and so on.  Then, place the scripts in a forever block, and under a when green flag clicked block.  It should look like this once finished:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when gf clicked&lt;br /&gt;
go to x: (. . .::grey) y: (. . .::grey)&lt;br /&gt;
forever&lt;br /&gt;
if &amp;lt;key (right arrow v) pressed&amp;gt; then&lt;br /&gt;
point in direction (0)&lt;br /&gt;
move (10) steps&lt;br /&gt;
end&lt;br /&gt;
if &amp;lt;key (left arrow v) pressed&amp;gt; then&lt;br /&gt;
point in direction (-90)&lt;br /&gt;
move (10) steps&lt;br /&gt;
end&lt;br /&gt;
 if &amp;lt;key (down arrow v) pressed&amp;gt; then&lt;br /&gt;
point in direction (180)&lt;br /&gt;
move (10) steps&lt;br /&gt;
end&lt;br /&gt;
if &amp;lt;key (up arrow v) pressed&amp;gt; then&lt;br /&gt;
point in direction (0)&lt;br /&gt;
move (10) steps&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Player 2 ==&lt;br /&gt;
For the second player, get another car from the sprites library.  Do the same thing as done with player one, only using the W (up), A (left), S (down), and D (right) keys.  Once finished, it will look like this:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when gf clicked&lt;br /&gt;
go to x: (. . .::grey) y: (. . .::grey)&lt;br /&gt;
forever&lt;br /&gt;
if &amp;lt;key (w v) pressed&amp;gt; then&lt;br /&gt;
point in direction (0)&lt;br /&gt;
move (10) steps&lt;br /&gt;
end&lt;br /&gt;
if &amp;lt;key (s v) pressed&amp;gt; then&lt;br /&gt;
point in direction (180)&lt;br /&gt;
move (10) steps&lt;br /&gt;
end&lt;br /&gt;
if &amp;lt;key (a v) pressed&amp;gt; then&lt;br /&gt;
point in direction (-90)&lt;br /&gt;
move (10) steps&lt;br /&gt;
end&lt;br /&gt;
if &amp;lt;key (d v) pressed &amp;gt;then&lt;br /&gt;
point in direction (90)&lt;br /&gt;
move (10) steps&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Backdrop ==&lt;br /&gt;
Go into [[Paint Editor]] and paint a backdrop.&lt;br /&gt;
&lt;br /&gt;
== Players ==&lt;br /&gt;
Once the backdrop is finished, add the following code to both players:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when gf clicked&lt;br /&gt;
forever&lt;br /&gt;
if &amp;lt;touching (Finish Line v)?&amp;gt; then&lt;br /&gt;
say [I win!] for (.5) seconds&lt;br /&gt;
stop [all v]&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
Player 1 will move with the up, down, left and right keys, and Player 2 will move with the W, A, S and D keys.&lt;br /&gt;
&lt;br /&gt;
[[Category:Game Design Tutorials|Two-Player Racing Game]]&lt;br /&gt;
[[Category:Scripting Tutorials|Two-Player Racing Game]]&lt;br /&gt;
[[Category:Multiplayer Games]]&lt;/div&gt;</summary>
		<author><name>scratch&gt;SunsetAlicorn</name></author>
	</entry>
</feed>