Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the formatting of example? #8

Open
ozkriff opened this issue Mar 29, 2018 · 1 comment
Open

Update the formatting of example? #8

ozkriff opened this issue Mar 29, 2018 · 1 comment

Comments

@ozkriff
Copy link

ozkriff commented Mar 29, 2018

Site's version uses an old indenting style with visual indentation, not the new blocky one:

https://github.com/ggez/ggez/blob/b51c4ff85/examples/super_simple.rs#L27-L38

Maybe it's even better to move out a point to a variable so the call fit one line?

    fn draw(&mut self, ctx: &mut Context) -> GameResult<()> {
        graphics::clear(ctx);
        let point = Point2::new(self.pos_x, 380.0);
        graphics::circle(ctx, DrawMode::Fill, point, 100.0, 2.0)?;
        graphics::present(ctx);
        Ok(())
    }
@ozkriff
Copy link
Author

ozkriff commented Mar 30, 2018

Hmm, it's already written as one line in master: https://github.com/ggez/ggez.github.io/blob/master/src/index.liquid#L43

I don't know how deployment works here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant