air hockey 2005 HELP!!!!!
Author |
Message |
sensfan_39
|
Posted: Sun Jun 05, 2005 9:40 pm Post subject: air hockey 2005 HELP!!!!! |
|
|
hey i am making an airhockey game in turing for my final project in computer info and science. i was wondering if anyone new how i could make the ice. i tried to use a picture from the internet but could only find ones with a rounded corner and i have only 13 days to make this so i need a rink theat will completelty cover the screen. i am not a very good programmer and have tried making it on my own but have run into difficulties so if anyone can help me that would be great. |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
jamonathin

|
Posted: Mon Jun 06, 2005 8:11 am Post subject: (No subject) |
|
|
Well unfortunatly ice rinks are made with curves so that the puck doesn't get stuck. You could of easily made one in paint or even Turing, its not that hard, I spent about 4 minutes on this one, as yes it has square corners.
Turing: |
setscreen ("graphics:max;max")
%Border
drawfillbox (0, 0, maxx, maxx, black)
drawfillbox (20, 20, maxx - 20, maxy - 20, white)
%Center Line
drawfillbox (maxx div 2 - 5, 20, maxx div 2 + 5, maxy - 20, 12)
%Circle
drawfilloval (maxx div 2, maxy div 2, 80, 80, 12)
drawfilloval (maxx div 2, maxy div 2, 70, 70, white)
drawfilloval (maxx div 2, maxy div 2, 10, 10, 12)
%Blue Lines
drawfillbox (maxx div 2 - 200, 20, maxx div 2 - 190, maxy - 20, 9)
drawfillbox (maxx div 2 + 200, 20, maxx div 2 + 190, maxy - 20, 9)
%Left Goal Line
drawfillbox (70, 20, 80, maxy - 20, 12)
drawfillbox (70, maxy div 2 - 50, 100, maxy div 2 + 50, black)
%Right Goal Line
drawfillbox (maxx - 70, 20, maxx - 80, maxy - 20, 12)
drawfillbox (maxx - 70, maxy div 2 - 50, maxx - 100, maxy div 2 + 50, black)
|
|
|
|
|
|
 |
StarGateSG-1

|
Posted: Mon Jun 06, 2005 11:02 am Post subject: (No subject) |
|
|
To make the rink look cool and without having to carry over pictures with the program, use the Draw.Arc and Draw.Line commands to create it. It would be a little harder but it would really add character if it was part of the code. You can also draw the nets, lines, circles in a similar way and stick it in a procedure. |
|
|
|
|
 |
|
|