This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added API examples and migrated to net core.
- Loading branch information
1 parent
052de2b
commit e98a582
Showing
1,184 changed files
with
26,393 additions
and
2,444 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--[[ | ||
Pixel Vision 8 - AddScript Example | ||
Copyright (C) 2017, Pixel Vision 8 (http://pixelvision8.com) | ||
Created by Jesse Freeman (@jessefreeman) | ||
Learn more about making Pixel Vision 8 games at | ||
https://www.pixelvision8.com/getting-started | ||
]]-- | ||
|
||
-- Create Lua code as a string | ||
local textFile = | ||
[===[ | ||
function test() | ||
DrawText("Hello World", 1, 1, DrawMode.Tile, "large", 15) | ||
end | ||
]===] | ||
|
||
-- Register the text file as a script | ||
AddScript("textFile", textFile) | ||
|
||
function Init() | ||
-- Call the text method | ||
test() | ||
end | ||
|
||
function Draw() | ||
-- Redraw the display | ||
RedrawDisplay() | ||
end |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"ColorChip": | ||
{ | ||
"total": 16, | ||
"maxColors": 128, | ||
"backgroundColor": 0, | ||
"maskColor": "#FF00FF", | ||
"unique": false, | ||
"debug": false, | ||
|
||
}, | ||
"DisplayChip": | ||
{ | ||
"width": 264, | ||
"height": 248, | ||
"overscanX": 1, | ||
"overscanY": 1, | ||
"layers": 6 | ||
|
||
}, | ||
"FontChip": | ||
{ | ||
}, | ||
"GameChip": | ||
{ | ||
"lockSpecs": false, | ||
"maxSize": 512, | ||
"saveSlots": 8 | ||
}, | ||
"MusicChip": | ||
{ | ||
"totalSongs": 32, | ||
"notesPerTrack": 127, | ||
"totalPatterns": 24, | ||
"totalLoop": 24 | ||
}, | ||
"SoundChip": | ||
{ | ||
"totalChannels": 5, | ||
"totalSounds": 32, | ||
"channelTypes": [-1, -1, -1, -1, -1] | ||
}, | ||
|
||
"SpriteChip": { | ||
"maxSpriteCount": 0, | ||
"unique": false, | ||
"spriteWidth": 8, | ||
"spriteHeight": 8, | ||
"pages": 8, | ||
"cps": 8 | ||
}, | ||
"TilemapChip": | ||
{ | ||
"columns": 256, | ||
"rows": 256, | ||
"totalFlags": 16, | ||
"autoImport": false, | ||
|
||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "PV8System", | ||
"description": "A PV8 Game Template.", | ||
"version": "v0.9.4", | ||
"ext": ".pv8", | ||
"gpuChip": "PV8", | ||
"cartChip": "PV8", | ||
"soundChip": "PV8", | ||
|
||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
|
||
"GameChip": | ||
{ | ||
"savedData":{ | ||
|
||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--[[ | ||
Pixel Vision 8 - BackgrondColor Example | ||
Copyright (C) 2017, Pixel Vision 8 (http://pixelvision8.com) | ||
Created by Jesse Freeman (@jessefreeman) | ||
Learn more about making Pixel Vision 8 games at | ||
https://www.pixelvision8.com/getting-started | ||
]]-- | ||
|
||
function Init() | ||
|
||
-- Get the current background color | ||
local defaultColor = BackgroundColor() | ||
|
||
-- Draw the default background color ID to the display | ||
DrawText("Default Color " .. defaultColor, 1, 1, DrawMode.Tile, "large", 15) | ||
|
||
-- Here we are manually changing the background color | ||
local newColor = BackgroundColor(2) | ||
|
||
-- Draw the new color ID to the display | ||
DrawText("New Color " .. newColor, 1, 3, DrawMode.Tile, "large", 15) | ||
|
||
end | ||
|
||
function Draw() | ||
-- Redraw the display | ||
RedrawDisplay() | ||
end |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"ColorChip": | ||
{ | ||
"total": 16, | ||
"maxColors": 128, | ||
"backgroundColor": 0, | ||
"maskColor": "#FF00FF", | ||
"unique": false, | ||
"debug": false, | ||
|
||
}, | ||
"DisplayChip": | ||
{ | ||
"width": 264, | ||
"height": 248, | ||
"overscanX": 1, | ||
"overscanY": 1, | ||
"layers": 6 | ||
|
||
}, | ||
"FontChip": | ||
{ | ||
}, | ||
"GameChip": | ||
{ | ||
"lockSpecs": false, | ||
"maxSize": 512, | ||
"saveSlots": 8 | ||
}, | ||
"MusicChip": | ||
{ | ||
"totalSongs": 32, | ||
"notesPerTrack": 127, | ||
"totalPatterns": 24, | ||
"totalLoop": 24 | ||
}, | ||
"SoundChip": | ||
{ | ||
"totalChannels": 5, | ||
"totalSounds": 32, | ||
"channelTypes": [-1, -1, -1, -1, -1] | ||
}, | ||
|
||
"SpriteChip": { | ||
"maxSpriteCount": 0, | ||
"unique": false, | ||
"spriteWidth": 8, | ||
"spriteHeight": 8, | ||
"pages": 8, | ||
"cps": 8 | ||
}, | ||
"TilemapChip": | ||
{ | ||
"columns": 256, | ||
"rows": 256, | ||
"totalFlags": 16, | ||
"autoImport": false, | ||
|
||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "PV8System", | ||
"description": "A PV8 Game Template.", | ||
"version": "v0.9.4", | ||
"ext": ".pv8", | ||
"gpuChip": "PV8", | ||
"cartChip": "PV8", | ||
"soundChip": "PV8", | ||
|
||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
|
||
"GameChip": | ||
{ | ||
"savedData":{ | ||
|
||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--[[ | ||
Pixel Vision 8 - Button Example | ||
Copyright (C) 2017, Pixel Vision 8 (http://pixelvision8.com) | ||
Created by Jesse Freeman (@jessefreeman) | ||
Learn more about making Pixel Vision 8 games at | ||
https://www.pixelvision8.com/getting-started | ||
]]-- | ||
|
||
-- This array will store any buttons pressed during the current frame | ||
local pressedButtons = {} | ||
|
||
-- A list of all the buttons to check on each frame | ||
local buttons = { | ||
Buttons.Up, | ||
Buttons.Down, | ||
Buttons.Left, | ||
Buttons.Right, | ||
Buttons.A, | ||
Buttons.B, | ||
Buttons.Select, | ||
Buttons.Start | ||
} | ||
|
||
function Update(timeDelta) | ||
|
||
-- Clear the pressedButtons array on each frame | ||
pressedButtons = {} | ||
|
||
-- Loop through all the buttons | ||
for i = 1, #buttons do | ||
|
||
-- Test if player 1's current button is down and save it to the pressedButtons array | ||
if(Button(buttons[i], InputState.Down, 0)) then | ||
table.insert(pressedButtons, tostring(buttons[i])) | ||
end | ||
end | ||
|
||
end | ||
|
||
function Draw() | ||
|
||
-- Clear the display | ||
Clear() | ||
|
||
-- Convert the pressedButtons into a string and draw to the display | ||
local message = table.concat(pressedButtons, ", "):upper() | ||
DrawText("Buttons Down:", 8, 8, DrawMode.Sprite, "large", 15) | ||
DrawText(message:sub(0, #message), 8, 16, DrawMode.Sprite, "medium", 14, - 4) | ||
|
||
end |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"ColorChip": | ||
{ | ||
"total": 16, | ||
"maxColors": 128, | ||
"backgroundColor": 0, | ||
"maskColor": "#FF00FF", | ||
"unique": false, | ||
"debug": false, | ||
|
||
}, | ||
"DisplayChip": | ||
{ | ||
"width": 264, | ||
"height": 248, | ||
"overscanX": 1, | ||
"overscanY": 1, | ||
"layers": 6 | ||
|
||
}, | ||
"FontChip": | ||
{ | ||
}, | ||
"GameChip": | ||
{ | ||
"lockSpecs": false, | ||
"maxSize": 512, | ||
"saveSlots": 8 | ||
}, | ||
"MusicChip": | ||
{ | ||
"totalSongs": 32, | ||
"notesPerTrack": 127, | ||
"totalPatterns": 24, | ||
"totalLoop": 24 | ||
}, | ||
"SoundChip": | ||
{ | ||
"totalChannels": 5, | ||
"totalSounds": 32, | ||
"channelTypes": [-1, -1, -1, -1, -1] | ||
}, | ||
|
||
"SpriteChip": { | ||
"maxSpriteCount": 0, | ||
"unique": false, | ||
"spriteWidth": 8, | ||
"spriteHeight": 8, | ||
"pages": 8, | ||
"cps": 8 | ||
}, | ||
"TilemapChip": | ||
{ | ||
"columns": 256, | ||
"rows": 256, | ||
"totalFlags": 16, | ||
"autoImport": false, | ||
|
||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "PV8System", | ||
"description": "A PV8 Game Template.", | ||
"version": "v0.9.4", | ||
"ext": ".pv8", | ||
"gpuChip": "PV8", | ||
"cartChip": "PV8", | ||
"soundChip": "PV8", | ||
|
||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
|
||
"GameChip": | ||
{ | ||
"savedData":{ | ||
|
||
} | ||
} | ||
} |
Oops, something went wrong.