A 2D game without canvas, only html vibes. SVG is used not only for artwork but to annotate as much world/level data as possible, simply by drawing shapes accoring to a few rules. Exploring wether it's worthwile to make it into an open source 2d world game engine.
closes #2 (adds a system for marshal posts around the track) and improves Gamepad rumbling.
In the track file, a <layer id="marshal-posts"> can be added, and in it, <ellipse> elements should be placed, dotted around the track (see assen.svg or monaco.svg for examples). At each of these ellipses a number (5) of marshal NPCs will spawn, and station themselves around the post.
When the player goes off track, the nearest marshal posts are selected and NPCs dispatched to the player car.
If the car is back on track, the marshals will return to their post.
Should the car be having a velocity of over 20 while they collide with an NPC, immedately the red flag will be thrown.
The session timer will stop (and, just as when the timer runs out naturally, the player will be summoned back to the pits by the team).
Looping sprites in Emitter class
now has a boolean flag allowing the sprite to loop instead of being reset after completing its cycle
closes #2 (adds a system for marshal posts around the track) and improves Gamepad rumbling.
In the track file, a
<layer id="marshal-posts">
can be added, and in it,<ellipse>
elements should be placed, dotted around the track (seeassen.svg
ormonaco.svg
for examples). At each of these ellipses a number (5) of marshal NPCs will spawn, and station themselves around the post.When the player goes off track, the nearest marshal posts are selected and NPCs dispatched to the player car.
If the car is back on track, the marshals will return to their post.
Should the car be having a
velocity
of over 20 while they collide with an NPC, immedately the red flag will be thrown. The session timer will stop (and, just as when the timer runs out naturally, the player will be summoned back to the pits by the team).Looping sprites in Emitter class
:video_game: Using dual rumble (Chrome only)