Skip to content

Commit

Permalink
Big update, switched to using dynamic SFML, added input, added lua sc…
Browse files Browse the repository at this point in the history
…ripting.
  • Loading branch information
drako0812 committed Nov 20, 2017
1 parent 3855633 commit 560f1b3
Show file tree
Hide file tree
Showing 127 changed files with 61,828 additions and 106 deletions.
9 changes: 7 additions & 2 deletions DRAK-0.sln
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2006
VisualStudioVersion = 15.0.27004.2009
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DRAK-0", "DRAK-0\DRAK-0.vcxproj", "{D576964F-A218-48D7-95AB-BD939AFD6F34}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{425410EF-3D28-4F1F-BEDA-A387B0FEB6D4}"
ProjectSection(SolutionItems) = preProject
after_build.bat = after_build.bat
appveyor.yml = appveyor.yml
CODE_OF_CONDUCT.md = CODE_OF_CONDUCT.md
DRAK-0-ICON.png = DRAK-0-ICON.png
DRAK-0-LOGO.png = DRAK-0-LOGO.png
LICENSE = LICENSE
README.md = README.md
EndProjectSection
EndProject
Global
Expand Down
22 changes: 22 additions & 0 deletions DRAK-0/DRAK-0.licenseheader
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
extensions: .cs .cpp .h .hpp
// The MIT License (MIT)
//
// Copyright (c) 2017 Drew Wibbenmeyer
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
244 changes: 223 additions & 21 deletions DRAK-0/DRAK-0.vcxproj

Large diffs are not rendered by default.

111 changes: 108 additions & 3 deletions DRAK-0/DRAK-0.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,110 @@
<ClCompile Include="src\pch.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lapi.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lauxlib.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lbaselib.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lbitlib.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lcode.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lcorolib.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lctype.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\ldblib.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\ldebug.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\ldo.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\ldump.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lfunc.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lgc.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\linit.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\liolib.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\llex.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lmathlib.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lmem.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\loadlib.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lobject.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lopcodes.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\loslib.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lparser.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lstate.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lstring.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lstrlib.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\ltable.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\ltablib.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\ltm.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lundump.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lutf8lib.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lvm.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\lua\src\lzio.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\color.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\screen_buffer.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\bit_array.hpp">
<Filter>Header Files</Filter>
</ClInclude>
Expand All @@ -44,8 +140,17 @@
<ClInclude Include="src\font_data.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\screen.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\input.hpp">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="example.chai" />
<None Include="DRAK-0.licenseheader" />
<None Include="example.lua" />
<None Include="example_input.lua" />
</ItemGroup>
</Project>
10 changes: 6 additions & 4 deletions DRAK-0/example.chai
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ trace("example.chai");
trace("Starting Up...");

def update() {
// Do things here
for(var j = 0; j < 240; ++j) {
for(var i = 0; i < 320; ++i) {
var c = random(0, 64);
pix(i, j, c);
}
}
}

trace("Shutting Down...");
exit()
11 changes: 11 additions & 0 deletions DRAK-0/example.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
trace("example.lua")
trace("Starting Up...")

function update()
for j=0, 239, 1 do
for i=0, 319, 1 do
local c = random(0, 64)
pix(i, j, c)
end
end
end
13 changes: 13 additions & 0 deletions DRAK-0/example_input.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function update()
cls(0)
for i=0, 19, 1 do
if btn(i) then pix(1 + (2 * i), 1, 3)
else pix(1 + (2 * i), 1, 1) end
end
for i=0, 3, 1 do
if mbtn(i) then pix(1 + (2 * i), 3, 3)
else pix(1 + (2 * i), 3, 1) end
end

pix(mpos(0), mpos(1), 3)
end
Loading

0 comments on commit 560f1b3

Please sign in to comment.