Programming Exercise #6: The Ice Script
In lieu of: http://forums.graalonline.com/forums...ad.php?t=82343
As I find this topic very interesting: Graal ice scripts historically have absolutely arbitrary physics. I think that perhaps we need to really evaluate how we make ice skating scripts. This is what I propose: Anyone who wants to participate in this exercise will make an ice skating script based on basic movement (disable it in your script if you choose). I will later today talk with one of the classic server managers to set up a place to upload all these ice scripts, so that each room has a separate ice script for each entry you guys give here. We shall update this ice script house as entries come in. You all will be able to go skate in these rooms and look at the scripts. I think we need to look at this with two concepts (two sets of physics): Program what you think would happen with ice skates on, and program what you think would happen with normal shoes on. And the scantily clad babe drops the flag to start... |
Here's my entry...
Basically, there are a few coefficients that you can tweak at the top to change how it acts and probably get a bit closer to "real" than what I did, but the physics are pretty exact. I did take a whole lot of things out of what real ice skating physics would be because we only have a certain level of control (i.e., we can't change what angles the skates are pointing at or exactly how much power we want per stroke), but I made a few estimations as to how to replicate what a normal person would do. And the code: PHP Code:
For a player with ice skates off I would probably use the following constants: PHP Code:
|
Are we limited to local NPC scripts, can we use weapons, a combination of the two?
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Quote:
|
Frankly, I don't think it matters how it's implemented. I think what the programming exercise is focused on is the physics and realism.
For example, my script could be tweaked in under a minute to communicate with a class rather than from predefined constants, but it would really have nothing to do with what this programming exercise was designed for. More or less, I'm just trying to say I was aiming to keep it both simple and concise. |
I will start this today, thanks to WhiteDragon.
Any other entries? More to follow. (I hope everyone had a happy thanksgiving to balance out a terrible one of mine:D) |
All times are GMT +2. The time now is 09:01 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.