1. good and bad news (object)
- Posted by =?iso-8859-1?B?SAY=?= <mwfch at MWEB.CO.ZA> Jun 25, 2000
- 461 views
------=_NextPart_000_006E_01BFDE85.26A49480 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =20 =20 =20 =20 Note : This email contains strong language. PG 13 is advised. =20 =20 =20 =20 =20 =20 =20 =20 =20 The good news : =20 The good news is that I stil have a bit of nerve to thank Irv and R.W.D = for helping me with my problem. The bad news : It still does not work properly = !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I am = @#$%^ up about Euphoria , and I am #$%@^ up about programing. My dream = is to become=20 a game programer , but how the %$#@ can I become one if I can`t move a = $%#^&* thing around the screen ! Its so #$%^&@ simple in QBasic . Can`t anyone = help me ? Are you so $%#&*@ selfish ? I tried so hard , I tried so = $%#&*@ hard !!!!!! But no , but no , but no . ALL I WANT TO KNOW IS HOW TO = PRESS A KEY AND THEN THE OBJECT ON THE SCREEN MOVES . Ferdinand Greyling from Terminal Software ( as $%#^@ if ) ------=_NextPart_000_006E_01BFDE85.26A49480 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><FONT size=3D5>Note : This email = contains strong=20 language.</FONT></FONT></DIV> <DIV><FONT face=3DArial=20 PG 13 is advised.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>The good news :</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>The good news is that I stil have a bit = of nerve to=20 thank Irv and R.W.D for helping</FONT></DIV> <DIV><FONT face=3DArial size=3D2>me with my problem.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>The bad news :</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>It still does not work properly=20 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I = am =20 @#$%^ up about Euphoria , and I am #$%@^ up about = programing. My=20 dream is to become </FONT></DIV> <DIV><FONT face=3DArial size=3D2>a game programer , but how the %$#@ can = I become=20 one if I can`t move a $%#^&*</FONT></DIV> <DIV><FONT face=3DArial size=3D2>thing around the screen ! Its so = #$%^&@ =20 simple in QBasic . Can`t anyone help me ? Are you so $%#&*@ = selfish ? I=20 tried so hard , I tried so $%#&*@ hard !!!!!!</FONT></DIV> <DIV><FONT face=3DArial size=3D2>But no , but no , but no . = ALL =20 I WANT TO KNOW =20 IS HOW TO PRESS = A =20 KEY AND THEN THE OBJECT = ON =20 THE SCREEN MOVES .</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Ferdinand Greyling</FONT></DIV> <DIV><FONT face=3DArial size=3D2>from</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Terminal Software ( as = $%#^&#@ if=20 )</FONT></DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> ------=_NextPart_000_006E_01BFDE85.26A49480--
2. Re: good and bad news (object)
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Jun 26, 2000
- 438 views
Ferdinand Greyling wrote: > All I want to know is how to press a key and then > the object on the screen moves. OK, here's an example. It's just about the same as you would write in in QBasic. The get_key() routine is the same as ASC(INKEY$()). The code should be pretty self-explanatory -- David Cuny -- the cursor() statement include graphics.e integer key, x, y, newX, newY, updated -- force the screen to update updated = 1 -- position of the 'ship' x = 10 y = 10 -- these duplicate x and y newX = x newY = y constant -- key codes None = -1, Esc = 27, Up = 328, Down = 336, Left = 331, Right = 333, -- screen limits MinX = 1, MaxX = 25, MinY = 1, MaxY = 64, -- true and false True = 1, False = 0 -- erase the screen clear_screen() -- hide cursor cursor( NO_CURSOR ) -- infinite loop; press Esc to exit while 1 do -- get a key key = get_key() -- translate the key if key = None then -- no key press, ignore elsif key = Esc then -- break key, leave loop exit elsif key = Up then -- up key, move up if there's room if x > MinX then newX = x - 1 updated = True end if elsif key = Down then -- down key, move down if there's room if x < MaxX then newX = x + 1 updated = True end if elsif key = Left then -- left key, move left if there's room if y > MinY then newY = y - 1 updated = True end if elsif key = Right then -- right key, move right if there's room if y < MaxY then newY = y + 1 updated = True end if else -- key isn't handled -- display it for debugging position( 1, 1 ) ? key end if -- need to redraw the screen? if updated = True then -- erase old image position( x, y ) puts( 1, " " ) -- get the new position x = newX y = newY -- draw new image position( x, y ) puts( 1, "<-*->" ) -- clear the update screen flag updated = False end if end while
3. Re: good and bad news (object)
- Posted by No Solution <solutionnone at HOTMAIL.COM> Jun 26, 2000
- 448 views
Mr.Greyling.. I can understand your pain and frustration but patience is a virtue.. programming in general can be farely frustrating and game programming is way worse believe me. one thing you should consider is that game programming, as well as any other type of programming, after you've learned the language is more about theory and process than about the actual code, maybe this is your source of frustrations? I suggest that before you go to program something you should write down a diagram on a piece of paper (flow charts?) or write down simple statements and translate those statments into code like such : Moves an object around the screen based on user input get a key from the keyboard if the key is the key for up move the object up by 1 " " down by 1 etc.. etc.. I hope that this helps you in your future programming adventures.. Ian Smith/NoSolution ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
4. Re: good and bad news (object)
- Posted by cklester <cklester at HOTPOP.COM> Jun 26, 2000
- 470 views
------=_NextPart_000_0014_01BFDF64.31809FE0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dude, you want somebody to write the program for you? I didn't think = so... so you'll have to use the resources available to STUDY and LEARN = and EDUCATE yourself in this regard. Moving something around on the screen is what I would call a novice = task. It's easy to do. Basically you draw the thing, erase it, draw it = in the next location. There are enough libraries available for this so = you don't even have to reinvent the wheel. But a program won't write = itself for you... that means YOU have to do some learning and working. If you need to, start at the BEGINNING. You don't become a "game = programmer" overnight. ----- Original Message -----=20 From: H=06=20 To: EUPHORIA at LISTSERV.MUOHIO.EDU=20 Sent: Sunday, June 25, 2000 2:10 AM Subject: good and bad news (object) The bad news : It still does not work properly = !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I am = @#$%^ up about Euphoria , and I am #$%@^ up about programing. My dream = is to become=20 a game programer , but how the %$#@ can I become one if I can`t move a = $%#^&* thing around the screen ! Its so #$%^&@ simple in QBasic . Can`t = anyone help me ? Are you so $%#&*@ selfish ? I tried so hard , I tried = so $%#&*@ hard !!!!!! But no , but no , but no . ALL I WANT TO KNOW IS HOW TO = PRESS A KEY AND THEN THE OBJECT ON THE SCREEN MOVES . Ferdinand Greyling from Terminal Software ( as $%#^@ if ) ------=_NextPart_000_0014_01BFDF64.31809FE0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2722.2800" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT size=3D2>Dude, you want somebody to write the program for = you? I didn't=20 think so... so you'll have to use the resources available to STUDY and = LEARN and=20 EDUCATE yourself in this regard.</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>Moving something around on the screen is what I = would call a=20 novice task. It's easy to do. Basically you draw the thing, erase it, = draw it in=20 the next location. There are enough libraries available for this so you = don't=20 even have to reinvent the wheel. But a program won't write itself for = you...=20 that means YOU have to do some learning and working.</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>If you need to, start at the BEGINNING. You don't = become a=20 "game programmer" overnight.</FONT></DIV> <DIV> </DIV> <BLOCKQUOTE=20 style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: = 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>From:</B>=20 <A href=3D"mailto:mwfch at MWEB.CO.ZA" title=3Dmwfch at MWEB.CO.ZA>H=06</A> = </DIV> <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20 href=3D"mailto:EUPHORIA at LISTSERV.MUOHIO.EDU"=20 title=3DEUPHORIA at LISTSERV.MUOHIO.EDU>EUPHORIA at LISTSERV.MUOHIO.EDU</A> = </DIV> <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Sunday, June 25, 2000 = 2:10 AM</DIV> <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> good and bad news = (object)</DIV> <DIV><BR></DIV> <DIV><FONT face=3DArial size=3D2>The bad news :</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>It still does not work properly=20 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I = am =20 @#$%^ up about Euphoria , and I am #$%@^ up about = programing. My=20 dream is to become </FONT></DIV> <DIV><FONT face=3DArial size=3D2>a game programer , but how the %$#@ = can I become=20 one if I can`t move a $%#^&*</FONT></DIV> <DIV><FONT face=3DArial size=3D2>thing around the screen ! Its so = #$%^&@ =20 simple in QBasic . Can`t anyone help me ? Are you so $%#&*@ = selfish ?=20 I tried so hard , I tried so $%#&*@ hard !!!!!!</FONT></DIV> <DIV><FONT face=3DArial size=3D2>But no , but no , but no . = ALL =20 I WANT TO KNOW =20 IS HOW TO PRESS = A =20 KEY AND THEN THE = OBJECT =20 ON THE SCREEN MOVES .</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Ferdinand Greyling</FONT></DIV> <DIV><FONT face=3DArial size=3D2>from</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Terminal Software ( as = $%#^&#@ if=20 )</FONT></DIV> ------=_NextPart_000_0014_01BFDF64.31809FE0--