This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { initializeApp } from "firebase/app"; | |
import AsyncStorage from '@react-native-async-storage/async-storage'; | |
import { initializeAuth, getReactNativePersistence } from "firebase/auth" | |
const firebaseConfig = { | |
//.. | |
}; | |
// Initialize Firebase | |
const app = initializeApp(firebaseConfig); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ** make a lava floor that generates a game over condition when touched | |
-- 1) After creating lava sprite with flag 2 set, add this to set_map_x() | |
-- make lava | |
if flr_hgt < 1 then | |
mset(x,15,2) | |
end | |
-- 2) in _init(), add dead flag to player |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ** this part generates a simple map, generating more each time you reach the end of the memory map ** | |
-- works around the overlap when resetting position by making the overlap area the same | |
-- 1) add map generation fn to tab 2 | |
function gen_map() | |
--clear | |
for i=0,127 do | |
for j=0,15 do | |
mset(i,j,3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Create a map and get a sprite moving on it | |
function _init() | |
x = 64 | |
y = 64 | |
spd = 1 | |
end | |
function _draw() | |
cls() | |
camera(x-24,0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _init() | |
x = 64 | |
y = 64 | |
end | |
function _draw() | |
cls() | |
spr(0,x,y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add files and bits needed to deploy and build apps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Follow these steps to add chat to each channel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Follow the steps below to add login capabilities! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add Firebase as backend, loading and saving channels |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Edit each file in order in this gist to complete the section! |
NewerOlder