Init commit
This commit is contained in:
commit
76d55bf58b
4 changed files with 2891 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
/target
|
||||
**/*.rs.bk
|
2842
Cargo.lock
generated
Normal file
2842
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
11
Cargo.toml
Normal file
11
Cargo.toml
Normal file
|
@ -0,0 +1,11 @@
|
|||
[package]
|
||||
name = "ld45_start_with_nothing"
|
||||
version = "0.1.0"
|
||||
authors = ["Stephen Seo <seo.disparate@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
quicksilver = "0.3.19"
|
||||
rand = "0.7.2"
|
36
src/main.rs
Normal file
36
src/main.rs
Normal file
|
@ -0,0 +1,36 @@
|
|||
use quicksilver::{
|
||||
geom::{Circle, Rectangle, Vector},
|
||||
graphics::{Background::Col, Color},
|
||||
input::{ButtonState, Key},
|
||||
lifecycle::{run, Event, Settings, State, Window},
|
||||
Result,
|
||||
};
|
||||
use rand::prelude::*;
|
||||
|
||||
struct GameState {}
|
||||
|
||||
impl State for GameState {
|
||||
fn new() -> Result<Self> {
|
||||
Ok(Self {})
|
||||
}
|
||||
|
||||
fn event(&mut self, event: &Event, window: &mut Window) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn update(&mut self, window: &mut Window) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn draw(&mut self, window: &mut Window) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
run::<GameState>(
|
||||
"LudumDare45_StartWithNothing",
|
||||
Vector::new(800, 600),
|
||||
Settings::default(),
|
||||
);
|
||||
}
|
Loading…
Reference in a new issue