grep -rin '[SEARCH_TEXT]' app | cut -f 1 -d ":"
sed -i '' '/[SEARCH_TEXT]/d' [FILENAME]
sed -i '' '/[SEARCH_TEXT]/d' $(grep -rin '[SEARCH_TEXT]' [SEARCH_PATH] | cut -f 1 -d ":")
$fn = 50; | |
/******************************************************************** | |
* Experimenting with creating steam locomotive driving wheels in * | |
* OpenSCAD * | |
* * | |
* Author: Alanna Kelly * | |
* Contact: https://twitter.com/sparklyparticle * | |
* License: Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) * | |
********************************************************************/ |
!to "music.prg", cbm | |
IRQ_VECTOR = $fffe | |
!macro push { | |
pha | |
txa | |
pha | |
tya | |
pha |
pico-8 cartridge // http://www.pico-8.com | |
version 29 | |
__lua__ | |
-------------------------------- | |
-- 3rd person camera demo -- | |
-- -- | |
-- (c) 2021 alanna kelly -- | |
-- -- | |
-- -- | |
--this work is licensed under -- |
; Player 84 | |
; | |
; Commodore 64 Moveable Sprite in 84b | |
; | |
; Joystick in Port 2 to move sprite. | |
; Purely for fun to see how few bytes it | |
; can be done in. Public Domain, do what | |
; you want with the code but credit is | |
; always appreciated. | |
; |
; Player 76 | |
; | |
; Commodore 64 Moveable Sprite in 76b | |
; | |
; Joystick in Port 2 to move sprite. | |
; Purely for fun to see how few bytes it | |
; can be done in. Public Domain, do what | |
; you want with the code but credit is | |
; always appreciated. | |
; |
; Player 74 | |
; | |
; Commodore 64 Moveable Sprite in 74b | |
; | |
; Joystick in Port 2 to move sprite. | |
; Purely for fun to see how few bytes it | |
; can be done in. Public Domain, do what | |
; you want with the code but credit is | |
; always appreciated. | |
; |
; Player 73 | |
; | |
; Commodore 64 Moveable Sprite in 73b | |
; | |
; Joystick in Port 2 to move sprite. | |
; Purely for fun to see how few bytes it | |
; can be done in. Public Domain, do what | |
; you want with the code but credit is | |
; always appreciated. | |
; |
; Player 59 | |
; | |
; Commodore 64 Moveable Sprite in 59b | |
; | |
; Joystick in Port 2 to move sprite. | |
; Purely for fun to see how few bytes it | |
; can be done in. Public Domain, do what | |
; you want with the code but credit is | |
; always appreciated. | |
; |
1000 DIM CX,CY,XS,YS,XT,YT,IA,IB,IC,ID,IX | |
1002 DIM VX(100),VY(100),VZ(100) | |
1005 CX=128:CY=128 | |
1010 READ VX(IX),VY(IX),VZ(IX):IF VX(IX)=-999 THEN GOTO 1020 ELSE IX=IX+1:GOTO 1010 | |
1020 PMODE4:SCREEN1,0:PCLS:COLOR1 | |
1030 READ IA,IB,IC,ID | |
1040 IF IA = -1 THEN GOTO 1490 | |
1050 IX=IA:GOSUB1500:XT=XS:YT=YS:IX=IB:GOSUB1500:LINE(XS,YS)-(XT,YT),PSET | |
1060 IX=IB:GOSUB1500:XT=XS:YT=YS:IX=IC:GOSUB1500:LINE(XS,YS)-(XT,YT),PSET | |
1070 IX=IC:GOSUB1500:XT=XS:YT=YS:IX=ID:GOSUB1500:LINE(XS,YS)-(XT,YT),PSET |