Recommended levellevel
Have you ever played the video game Speed Race? Not sure? Or perhaps Wheels? Okay, what about a game where you drive a race car at high speed and simultaneously dodge other cars and various obstacles that are sometimes illogical? We think you must have encountered some obstacle-laden racing games at some point in your gaming life! There are too many of these games to count. They have always been super popular, because they are exciting and the rules are so simple. The genre's first representatives appeared back in the days of arcade machines and even let you compete against your friends. And once in 1981, Bill Gates and Neil Konzen wrote a similar game. It was called Donkey.bas (the .bas extension means that Microsoft's former CEO used the BASIC programming language to write it) and was included in early versions of PC DOS, an operating system that today's kids can imagine only in their worst nightmares… In Donkey.bas, the race car driver (player) had to avoid running into donkeys that would suddenly appear on the road. A situation familiar to any fan of the genre! Let's follow in the footsteps of Microsoft's founder and create a similar game. But not in BASIC, of course. And we'll also do without the gray odd-toed ungulates. We're cooler, so we'll use our beloved Java. Let's call our game Racer. In addition to a player who can steer left and right and accelerate, it will have objects that move horizontally and vertically — other cars and stationary obstacles. The objective is to get to the finish line without hitting any of these objects. The finish line appears after a certain number of obstacles are passed. This isn't as hard as it may seem, but effort will be required. Here at CodeGym, we've already split this project into managable tasks that beginning programmers can understand. Shall we get started?
Comments (85)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Anonymous #11020174
Level 1 , Jeffersonville, United States
15 June, 23:30
hey guys
Anonymous #11020177
Level 1 , Jeffersonville, United States
15 June, 23:30
Anonymous #11008858
Level 1 , Seattle, United States
28 May, 01:14
how do i play?
John Squirrels Website Admin at CodeGym
31 May, 17:34
You need to actually make the game first, then publish it and play it. Otherwise, you can look at the list of published games from other users and play one of their creations.
Level 1 , United States
8 May, 18:17
JaNiyah Colclough
Level 1 , United States
30 April, 20:32
Level 1 , United States
25 April, 21:50
Level 1 , China
22 April, 14:13
你玩过电子游戏《速度竞赛》吗?不确定?或者是轮子?好吧,那么一个游戏呢,你开着一辆赛车高速行驶,同时闪避其他汽车和各种障碍物,这些有时是不合逻辑的。 我们认为在你的游戏生涯中,你一定遇到过一些充满障碍的赛车游戏!这种游戏多得数不过来。它们一直超级受欢迎,因为它们令人兴奋,规则又如此简单。这种类型的第一个代表出现在街机时代,甚至让你和你的朋友竞争。 1981年,比尔·盖茨和尼尔·肯曾写过一个类似的游戏。它被称为驴子。bas扩展是指微软前CEO使用基本编程语言编写的)并被包含在PC DOS的早期版本中,这是一个今天的孩子只能在他们最糟糕的噩梦中想象的操作系统……在Donkey.bas中,赛车手(玩家)必须避免撞上突然出现在路上的驴子。这种情况对任何这类电影的爱好者来说都很熟悉。 让我们跟随微软创始人的脚步,创造一个类似的游戏。但当然不是基础的。我们也不需要灰色的奇数趾有蹄类动物。我们比较酷,就用我们心爱的Java。让我们称我们的游戏为赛车。除了可以左右转向和加速的玩家之外,它还将拥有水平和垂直移动的物体——其他汽车和静止的障碍物。目标是到达终点线而不撞到任何这些物体。通过一定数量的障碍后,终点线就会出现。 这并不像看起来那么难,但是需要努力。在CodeGym,我们已经将这个项目分成了初级程序员可以理解的可管理的任务。我们可以开始了吗?
Level 1 , United States
19 April, 02:54
Level 1 , United States
19 April, 02:53
David Rodriguez Rodriguez
Level 1 , United States
16 April, 19:48
how play