First off, you shouldn't capitalize your file name: "Main.lua". That won't work on some systems. Rename it to lowercase, "main.lua", to be sure.
Regarding the code, this is what I see in your main.lua:
Code: Select all
function showintro()
load = intro
print ("WIN AND FAIL CARD GAME WIN AND FAIL IS PLAYED IN THE FOLLOWING MANNER THE DEALER (THE GAME MASTER) DEALS TWO CARDS FACE UP YOU HAVE AN OPTION TO BET OR NOT BET DEPENDING ON WHETHER OF NOT YOU FEEL THE CARD WILL HAVE A VALUE BETWEEN THE FIRST TWO. IF YOU DO NOT WANT TO BET INPUT A 0", 100, 100 )
end
local starting_cash = 100
local card_names = {[11] = "JACK", [12] = "QUEEN", [13] = "KING", [14] = "ACE"}
for i = 2, 10 do
card_names = string.format(" %d", i)
end
The only code that would do anything visible is the print() statement, but that's inside the function
definition for 'showintro', and that function is never called, so it makes sense that you would not see anything. (Correct indentation would make this much more obvious.)
If you put a print statement in love.load or outside any function definitions, then you will see it in the console.
If you want something to show in the game window, then you need to define a love.draw function and put call some drawing functions in it.
Possibly you are confusing the base lua function 'print()', which outputs text to the console, with '
love.graphics.print()', a Löve function that draws text to the screen (use it inside love.draw()).