Keep the virus from getting your precious cell which is now defended by a light-infused bleach cannon that you must aim and fire! They keep coming faster and faster, and it is up to you to save the day!

Controls: Left and right arrows rotate the turret, and the Z key fires the weapon.

This is my first Itch, Jam, and fantasy console game. I'm more of a devops production support developer, but I recently found Itch and Jams and have some free time to play. Thanks for checking it out!

This was made for TweetTweetJam 4, a Jam needing source code that would fit into two tweets and can have no assets beyond the framework/console.

I started off wanting to make battle tanks, then started with a center turret, then thought an asteroids-like game might be necessary, then by the time I got one bullet, one enemy, and scoring working I was about out of characters allowed for the jam.

The bullet will fly forever until it hits the virus or until you fire again. There is only one bullet flying at a time.

The virus speeds up 20% every time you kill it. It also always starts at the top-left, and after the game starts it always moves in the direction your turret is pointing when the bullet hits it.

When the virus gets close enough to infect your cell, the high score is updated if necessary then the game instantly starts over.

The high score does not preserve in the virtual cartridge, but it gives you a goal to beat. 

Here is 558 characters comprising all the lua code for this game. Actually there are even 3 extra newlines for 'readability',  so this could have been done in 555 characters (source is MIT-licensed and linked under "More Information", including a commented pre-minified version):

a=math b=240 c=138 d=120 e=69 f=0 g=0 h=0 i=.5 j=.2 k=.5
function l()m=d n=e o=0 p=0 q=0 r=0 end
l()
function TIC()t=a.sin(a.rad(f))u=-a.cos(a.rad(f))m=m+o n=n+p q=q+i r=r+j
if btnp(4)then m=d+t*9 n=e+u*9 o=t*2 p=u*2 end
if btn(2)then f=f-4 end
if btn(3)then f=f+4 end
cls()circ(d,e,7,8)print("*",(q-6)%b,(r-4)%c,6,true,2)circ(q%b,r%c,2,6)
if pix(m%b,n%c)==6 then g=g+1 k=k*1.2 i=k*t j=k*u l()end
print("SCORE "..g.." HI "..h,9,0)pix(m%b,n%c,15)line(d,e,d+t*9,e+u*9,15)
if a.abs(q%b-d)<9 and a.abs(r%c-e)<9 then h=g>h and g or h g=0 k=.5 i=.5 j=.2 l()end
end
StatusReleased
PlatformsHTML5
Rating
Rated 3.0 out of 5 stars
(1 total ratings)
AuthorJimOfLeisure
GenreShooter
Made withTIC-80
Tagsfantasy-console, Singleplayer
Code licenseMIT License
Average sessionA few seconds
LanguagesEnglish
InputsKeyboard
LinksSource code

Comments

Log in with itch.io to leave a comment.

(+1)

A little bit too easy, but good nevertheless. Maybe point the 'enemy' directly toward the player?

Thanks!

Yeah, I meant for the enemies to increase over time and/or direct them better, but I ran out of space. So the one enemy just gets faster each time you kill it.

I’m learning more about lua, though, and I may yet be able to improve this while staying within 560 characters. It’s a fun set of constraints!

I suppose pointing the enemy at the player might do, too, and I should be able to make that fit now….

(+1)

WOW very impressive your game looks sooo cooll If i woul rate this game it would be 5 stars

(+1)

Thanks!