Skip to content

Commit ea63b0c

Browse files
II
I
authored and
I
committed
Fix for latest versions of snow and luxe.
1 parent 7ebf963 commit ea63b0c

File tree

4 files changed

+7
-17
lines changed

4 files changed

+7
-17
lines changed

luxe_ascii/REXLoader.hx

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package luxe_ascii;
22

33
import luxe.Color;
4-
import snow.system.assets.Asset;
54
import snow.api.buffers.*;
65

76
import haxe.io.Bytes;

sample/project.flow

-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
{
2-
3-
luxe:{
4-
window: {
5-
width:640,
6-
height:350,
7-
title:'luxe_ascii demo',
8-
fullscreen:false,
9-
resizable:true,
10-
borderless:false
11-
}
12-
},
13-
142
project : {
153
name : 'luxe_ascii_demo',
164
version : '1.0.0',

sample/src/Demo.hx

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import luxe.States;
2+
import luxe.Vector;
23
import luxe_ascii.*;
34

45
class Demo extends State {
@@ -14,6 +15,8 @@ class Demo extends State {
1415
public function new() {
1516
super({name:'demo'});
1617

18+
Luxe.camera.size = new Vector(640,350);
19+
1720
// The ConsoleBuffer manages the geometry that renders the ASCII console
1821
consoleBuffer = new ConsoleBuffer( {
1922
width: 80,

sample/src/Main.hx

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import luxe.Input;
33
import luxe.Parcel;
44
import luxe.ParcelProgress;
55
import luxe.States;
6-
import snow.types.Types;
6+
import luxe.GameConfig;
77

88
class Main extends luxe.Game {
99

10-
override function config(config:luxe.AppConfig) {
11-
10+
override function config(config:GameConfig) {
11+
config.window.width = 640;
12+
config.window.height = 350;
1213
return config;
13-
1414
} //config
1515

1616
override function ready() {

0 commit comments

Comments
 (0)