Save
Saving
  • Malre

    mwwai, i test many time but a compil build don't fonctionnely really.
    I see that kodeStudio and VSstudio isn't same plug KHa..
    Of more , i have a 32bit and Kode have to need to 64
    ok !!! thanks You , see you soon

    posted in Kode read more
  • Malre

    Ok, ok i understand , i used VsStudio and not KodeStudio..
    package isn't fonctionnely same with VSStudio..
    i see on github and Microsoft shop but my book isn't clean for app..
    if Package change a days would to be nice for all! im' sorry

    posted in Kode read more
  • Malre

    ok, but function Render()
    static function render(framebuffer: Framebuffer): Void {
    var graphics = framebuffer.g2
    graphics.begin();
    graphics.drawRect(32,32,32,6);
    graphics.end();
    }
    Windows hasn't graphics !!

    for error 1 ::
    Executing task: node C:\Users\malre.vscode\extensions\kodetech.kha-19.1.0\kha\make.js debug-html5 <

    internal/modules/cjs/loader.js:797
    throw err;
    ^

    Error: Cannot find module 'C:\Usersmalre.vscodeextensionskodetech.kha-19.1.0khamake.js'
    ?[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)?[39m
    ?[90m at Function.Module._load (internal/modules/cjs/loader.js:687:27)?[39m
    ?[90m at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)?[39m
    ?[90m at internal/main/run_main_module.js:17:11?[39m {
    code: ?[32m'MODULE_NOT_FOUND'?[39m,
    requireStack: []
    }
    The terminal process terminated with exit code: 1

    Terminal will be reused by tasks, press any key to close it.
    i need change things ..

    posted in Kode read more
  • Malre

    ok it's fine , my config it's good ?! i don' t know how to make compil for Windows , do it install a new plug?

    posted in Kode read more
  • Malre

    (Thx) i have download , project Empty and Empty-master...

    package;
    
    import kha.Assets;
    import kha.Framebuffer;
    import kha.Scheduler;
    import kha.System;
    
    class Main {
    	static function update(): Void {
    
    	}
    
    	static function render(framebuffer: Framebuffer): Void {
    
    	}
    
    	public static function main() {
    		System.start({title: "Kha", width: 800, height: 600}, function (_) {
    			// Just loading everything is ok for small projects
    			Assets.loadEverything(function () {
    				// Avoid passing update/render directly,
    				// so replacing them via code injection works
    				Scheduler.addTimeTask(function () { update(); }, 0, 1 / 60);
    				System.notifyOnFrames(function (framebuffers) { render(framebuffers[0]); });
    			});
    		});
    	}
    with change !!!
    

    posted in Kode read more
  • Malre

    Hi, thanks for your response, but i thinks same to you by video 4](https://haxe.org/videos/tutorials/kha-tutorial-series/episode-004-loading-an-image.html). i really understand for path , not i's exactly .(.vscode\extensions\kodetech.kha-19.1.0\kha)
    My problem is then to change title and size . this build is same .. ist'n change..

    posted in Kode read more
  • Malre

    ok i have installed kha and take path on settings but then put F5 , this build not fonctionnelly.
    1° on tutoriel video 4 (kha init project) don't give exactly folder , file project.hx on folder not exist.
    2° i change name title Windows and size , F5 build exist but name and size not change.
    3° a message is :
    internal/modules/cjs/loader.js:797
    throw err;
    ^

    Error: Cannot find module 'C:\Usersmalre.vscodeextensionskodetech.kha-19.1.0khamake.js'
    ?[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)?[39m
    ?[90m at Function.Module._load (internal/modules/cjs/loader.js:687:27)?[39m
    ?[90m at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)?[39m
    ?[90m at internal/main/run_main_module.js:17:11?[39m {
    code: ?[32m'MODULE_NOT_FOUND'?[39m,
    requireStack: []
    }
    4° if build , also it's possible that problem compil init kha directly not?

    posted in Kode read more