Commit a9597df2 authored by Emery Tanghanwaye's avatar Emery Tanghanwaye
Browse files

waterGame: remove old source files

parent fe380217
[gd_scene load_steps=2 format=2]
[ext_resource path="res://WellButton.cs" type="Script" id=1]
[node name="WellButton" type="Button"]
margin_left = 90.0
margin_top = 183.0
margin_right = 316.0
margin_bottom = 282.0
text = "Buy Well ($0)"
script = ExtResource( 1 )
using Godot;
using System;
public class ScrollCamera : Control
{
private Camera2D Cam;
private HScrollBar ScrlBar;
private Vector2 OriginalPos;
public bool ScrollBarVisibility
{
set
{
ScrlBar.Visible = value;
}
}
public void ExtendToNextStage()
{
ScrlBar.MaxValue += 1280;
}
public override void _Ready()
{
Cam = GetNode<Camera2D>("Camera2D");
ScrlBar = GetNode<HScrollBar>("CanvasLayer/HScrollBar");
OriginalPos = Cam.Offset;
}
public override void _PhysicsProcess(float delta)
{
Vector2 nextPos = OriginalPos;
nextPos.x = OriginalPos.x + (ScrlBar.Value);
Cam.Offset = nextPos;
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment