<commit_before>package;

import luxe.Input;
import phoenix.Camera;

class Main extends luxe.Game {
	override function ready() {
        Luxe.camera.view.set_perspective( {
           near:0.1,
           far:1000,
           aspect:Luxe.screen.w / Luxe.screen.h
        });
        
        Luxe.camera.pos.z = 2;
        Luxe.draw.rectangle( {
            x:0,
            y:0,
            w:1,
            h:1
        });
        
        
	}

	override function onkeyup(e:KeyEvent) {
		if(e.keycode == Key.escape)
			Luxe.shutdown();
	}
    
    override public function onkeydown(event:KeyEvent) {
        if (event.keycode == Key.space) {
            if (Luxe.camera.view.fov_type == FOVType.horizontal) {
                Luxe.camera.view.fov_type = FOVType.vertical;
            }
            else {
                Luxe.camera.view.fov_type = FOVType.horizontal;
            }
        }
    }

	override function update(dt:Float) {
	}
}<commit_msg>Added fov change via up/down arrow keys<commit_after>package;

import luxe.Input;
import phoenix.Camera;

class Main extends luxe.Game {
	override function ready() {
        Luxe.camera.view.set_perspective( {
           near:0.1,
           far:1000,
           fov_type:FOVType.vertical,
           fov:60,
           aspect:Luxe.screen.w / Luxe.screen.h
        });
        
        Luxe.camera.pos.z = 2;
        Luxe.draw.rectangle( {
            x:0,
            y:0,
            w:1,
            h:1
        });
        
        
	}

	override function onkeyup(e:KeyEvent) {
		if(e.keycode == Key.escape)
			Luxe.shutdown();
	}
    
    override public function onkeydown(event:KeyEvent) {
        if (event.keycode == Key.space) {
            if (Luxe.camera.view.fov_type == FOVType.horizontal) {
                Luxe.camera.view.fov_type = FOVType.vertical;
            }
            else {
                Luxe.camera.view.fov_type = FOVType.horizontal;
            }
        }
        
        if (event.keycode == Key.up) {
            Luxe.camera.view.fov += 10;
        }
        else if (event.keycode == Key.down) {
            Luxe.camera.view.fov -= 10;
        }
    }

	override function update(dt:Float) {
	}
}
{'fraction_non_alphanumeric': 0.11614083219021491, 'fraction_numerical': 0.012802926383173296, 'mean_word_length': 1.4639639639639639, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1852189', 'n_tokens_mistral': 756, 'n_tokens_neox': 725, 'n_words': 115}