Giter Club home page Giter Club logo

bulletml's People

Contributors

emillon avatar mathiasbourgoin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bulletml's Issues

Support Accel

The linear_map is already there, with a unit parameter.

All that is left to do is a bit of trigonometry.

make cov

An additional target to compute coverage locally would be nice.

Speed/Accel parameters

Missing feature?
It would be nice to add parameters to modify speed/accel of a whole pattern.

Prune bullets

Bullets that are either vanished or oob should get deleted. See also how it can be plugged to a collision engine.

Hook system

It would be nice to attach external hooks to bulletml actions. For example for a change_color action could be implemented using a function ('a -> 'a) -> ('a obj -> 'a obj) that changes some private state within the obj (where it is possible to store the color or a sprite).

Fix Accel

An additional Accel test would be nice to have: by accelerating (1., 2.) I expect the speed to be (0., 0.);(1.;2.);(2.;4.) etc.

MParser upgrade?

make
...
0.02s bulletml/Bulletml/parser.cmo [failed]
[47.1] Command failed: '/Users/mathias/.opam/4.02.1/bin/ocamlc.opt' '-g' '-bin-annot' '-c' '-o' '_obuild/47/parser.cmo' '-for-pack' 'Bulletml' '-I' './_obuild/bulletml/Bulletml' '-I' './_obuild/bulletml' '-I' './bulletml' '-I' '/Users/mathias/.opam/4.02.1/lib/mparser' '-I' '/Users/mathias/.opam/4.02.1/lib/xml-light' 'bulletml/parser.ml'
-- stderr of ocamlc.opt --
File "bulletml/parser.ml", line 10, characters 34-52:
Error: Unbound module Tokens

JS app: pixel overflow

When a sprite is drawn, no bound checking is done, so something drawn at the right edge can appear at the left edge.

Stack overflow

On [ESP_RADE]_round_123_boss_izuna_fan.xml, a wild stack overflow appears.

Pass arguments, not by substitution

subst_* functions are a bit annoying. I would like to get rid of them. It would be better to have a proper call stack. The problem is where to store it. obj makes sense of course but breaks standalone function evaluation. It is probably necessary to add Op{Push,Pop}Param opcodes too.

js_of_ocaml app

Writing a js_of_ocaml app should help decouple what goes where.

Make a dummy ship for the demos

So far ship_pos stays constant. It would be nice if it was possible to move the ship using the mouse or keyboard.

It can be implemented in main_loop in the form of an additional function 'l -> position -> position or something similar.

File reference

[Bulletsmorph]_kunekune_plus_homing.xml contains a label to bulletmls/[G_DARIUS]_homing_laser.xml:_:hmgLsr. Is this syntax documented somewhere? Support it?

Alternative syntax

Support loading patterns using "lighter" syntax forms, such as JSON or YAML.

Use PPX instead of a custom DSL

let prog =
  let%bulletml act =
    repeat 500 @@ fire @@ repeat 10
      begin
        wait 60;
        speed 0;
        wait 60;
        speed 1;
      end;
    wait 10
  in
  [("top", act)]

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.