Coder Social home page Coder Social logo

gba-dvd's People

Contributors

hpmason avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

gba-dvd's Issues

Cargo.toml uses git repo for gba crate

gba-dvd/Cargo.toml

Lines 15 to 17 in e641f19

# Due to this issue with bitfield ints https://github.com/rust-console/gba/issues/145
# Waiting until next cargo version release
gba = {git = "https://github.com/rust-console/gba", branch = "main"}

This is because the gba crate hasn't pushed an update to the registry since rust-console/gba#145 was resolved. Once an update is pushed to crates.io, we can update Cargo.toml to that version.

Randomize start position/direction

The start position/direction are hard coded in main.rs

gba-dvd/src/main.rs

Lines 70 to 71 in e641f19

let mut x_dir = Direction::RIGHT;
let mut y_dir = Direction::UP;

gba-dvd/src/main.rs

Lines 73 to 74 in e641f19

// Size should be 64x48 (from top left), but takes up a full 64x64 sprite
let mut dvd_obj = Obj::new(40, 30, 64, 48);

^ position (40, 30)

Possible ways to randomize this include:

  • Each time the game boots, save a randomly generated value to a save file. On boot, we can use that value as the starting seed.
    • Each load will be randomized
  • Use RTC (Real Time Clock) as starting seed
    • Therefore the starting values will also be randomized and not determined by the previous iteration of the game
    • While this is the nice way to randomize this, it will not work any flashcards without a RTC component

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.