← Alla projektAll projects/ 04
00:00:00
04exrik.se/whackattack● live

WhackAttack

Slå bollen så långt det går. Tryck när den landar, så studsar den vidare.Hit the ball as far as you can. Tap when it lands and it bounces on.

CanvasWeb AudioAndroid WebView
Spela ↗Play ↗APK ↓
04exrik.se/whackattack● live
spelbartplayable
01WhackAttack

SlagetThe swing

En nål sveper över en mätare och man trycker när den är i mitten. Träffen blir allt från "Mitt i prick" till "Snett", och det avgör hur hårt bollen går.

A needle sweeps across a meter and you tap when it is in the middle. The hit ranges from a bullseye to a miss-hit, and that decides how hard the ball goes.

02WhackAttack

StudsarnaThe bounces

Innan bollen landar krymper en ring runt den. Trycker man när ringen är som minst studsar bollen vidare med full fart. Lite för tidigt eller lite för sent går också, men ger mindre.

På planen finns is som gör bollen snabbare, lera som bromsar, staket som stoppar låga bollar, turboringar och portaler där man drar med fingret för att sikta. Man har också luftpuffar som knuffar bollen upp eller ner.

Before the ball lands, a ring shrinks around it. Tap when the ring is at its smallest and the ball bounces on at full speed. A little early or a little late works too, but gives less.

On the field there is ice that speeds the ball up, mud that slows it down, fences that stop low balls, turbo rings and portals where you drag your finger to aim. You also have air puffs that nudge the ball up or down.

03WhackAttack

UppgraderingarUpgrades

  • Styrka, Studs och Inkomst: hårdare slag, mer fart kvar efter studsen och fler mynt.
  • Luftpuffar, Slowmotion och Tidsbroms: fler puffar och mer tid att hinna trycka.
  • Lugn mätare: nålen går långsammare.
  • Sju slagträn och fyra bollar med olika egenskaper.
  • Power, Bounce and Income: harder hits, more speed kept after a bounce and more coins.
  • Air puffs, Slow motion and Time brake: more puffs and more time to tap.
  • Calm meter: the needle moves more slowly.
  • Seven bats and four balls with different traits.
04WhackAttack

VärldarnaThe worlds

Arenan, Utkanten från 400 meter, Neonstaden från 3 km, Bergen från 25 km, Rymden från 200 km och Kosmos från 2 000 km.

The Arena, the Outskirts from 400 metres, Neon City from 3 km, the Mountains from 25 km, Space from 200 km and the Cosmos from 2,000 km.

05WhackAttack

Under huvenUnder the hood

  • Hela spelet är en HTML-fil. Allt ritas med canvas, utan bilder.
  • Varje kast spelas upp på ungefär två sekunder, hur långt det än är. Därför fungerar tajmingen lika bra på 50 meter som på 2 000 km.
  • Ljudet går genom Web Audio. Effekterna är från Kenney och musiken är "Synthwave House Loop" av Fupi, båda CC0. Musiken saktar in som ett kassettband när man laddar slaget.
  • Grafiken sänker upplösningen själv om mobilen inte hänger med.
  • Android-appen är ett WebView-skal runt samma fil. APK:n byggs i Docker.
  • The whole game is one HTML file. Everything is drawn with canvas, with no images.
  • Every flight plays out in about two seconds, however far it goes. That is why the timing works as well at 50 metres as at 2,000 km.
  • Sound runs through Web Audio. The effects are by Kenney and the music is "Synthwave House Loop" by Fupi, both CC0. The music slows down like a cassette tape while you wind up the swing.
  • The graphics lower their own resolution if the phone cannot keep up.
  • The Android app is a WebView shell around the same file. The APK is built in Docker.
06WhackAttack

Läget nuWhere it stands

Spelet går att spela i webbläsaren och som Android-app att installera själv. Det finns inte i Play Butik och är bara på svenska.

You can play it in the browser and as an Android app you install yourself. It is not in the Play Store, and the game itself is only in Swedish.