Future Calling Begins
I am writing both the game engine, and the game it's self in Rust.
I will post updates here daily.
mod test_state;
extern crate future_engine;
use future_engine::{app_state::app_state::AppState, Application};
use future_engine::smart_draw::smart_draw::SmartDraw;
use future_engine::texture2d::Texture2D;
use test_state::NewState;
fn main() {
let mut app = Application::new(800, 600, "Future Calling - Episode One");
let mut new_state = NewState::new();
// let mut tex1 = Texture2D::new("test/img1.png".to_string());
let tex1 = match Texture2D::new("test/test1.png".to_string()) {
Ok(tex) => tex,
Err(err) => {
eprintln!("{}", err);
return;
}
};
// Call methods on NewState
new_state.init_state();
app.set_state(Box::new(new_state));
while(true){
app.start_frame();
app.present_frame();
}
}