• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
  • entries
  • comments
  • views

Epoch Postcount++

Sign in to follow this  
Followers 0


Finally got infix operators working correctly with precedence rules. Along the way I managed to implement support for parenthetical expressions. That means that this entire unit test now passes:

// Tests for validating infix operator behaviour (particularly operator precedence)
// Also includes tests for unary operators and parenthetical expressions

entrypoint : () -> ()
debugwritestring(cast(string, 38 + 5 - 1))
debugwritestring(cast(string, 51 - 9))

debugwritestring(cast(string, 40 + 2))
debugwritestring(cast(string, 50 - 10 + 2))
debugwritestring(cast(string, 50 + 2 - 10 - 42 + 22 + 18 + 2))

debugwritestring(cast(string, 2 + 10 * 4))
debugwritestring(cast(string, 14 * 2 - 8 + 20 + 6 * 2 - 10))

debugwritestring(cast(string, -2))
debugwritestring(cast(string, 44 + -2))
debugwritestring(cast(string, -2 + 44))

integer(quux, 0)
quux = bletch() - 1
debugwritestring(cast(string, quux))

debugwritestring(cast(string, 2 + echo(1 + 1)))
debugwritestring(cast(string, (4 + 7)))
debugwritestring(cast(string, 30 + (4 + 7)))
debugwritestring(cast(string, 30 + (4 + 7) + 1))
debugwritestring(cast(string, (9 + 2) * (4 - 2)))
debugwritestring(cast(string, ((4 - 1) + 6) * 2))
debugwritestring(cast(string, 2 * ((4 - 1) + 6)))
debugwritestring(cast(string, bletch() / 2))

// Just tests of the assignment operator
integer(baz, 42)
quux = 3
baz = 0
baz = 1 + 1
baz = baz * 2
baz = quux
baz = quux = 42
debugwritestring(cast(string, baz))
debugwritestring(cast(string, quux))

baz = quux = sanitycheck("test", "xorph")
debugwritestring(cast(string, baz))

bletch : () -> (integer(ret, 43))

echo : (integer(x)) -> (integer(ret, x))

plus : (integer(x), integer(y)) -> (integer(ret, x + y))

sanitycheck : (string(a), string(b)) -> (integer(ret, 42))


Next step is to implement support for unary operators like preincrement/postincrement, bitwise/logical NOT, and so on. This shouldn't be too hard as I already have the experience from the last compiler iteration, but then again, I thought the same thing about operator precedence, and that took all day to get right... so, who knows.

The bug list filed against Release 10 continues to dwindle; the final set of issues looks something like this at the moment:

  • Implement unary operators

  • Implement free blocks (artificial scopes)

  • Implement flow control entities

  • Final unit test triage

  • Update documentation/wiki pages

Unary operators are a wildcard, but again shouldn't be terribly difficult. Free-standing blocks will take some effort as I need to review the way lexical scopes are handled; right now nested scopes are not really supported at all, so that may require a bit of heavy lifting in the parser and virtual machine to make everything run correctly.

Once lexical scoping is working, adding flow control back into the language should go quickly. It's mainly just a matter of adding hooks in the entity system to allow for conditional and/or repeated execution of an entity. I'll probably need some VM-level support for this with special flow control instructions, but I want to try and avoid hard-coding too much stuff into the VM, so that I can easily add entities for things like automatically parallelized loops and so on.

With the feature work out of the way, it'll just be a matter of making sure all the appropriate unit tests still pass, and then doing some documentation work. I intend to write up a proper tutorial on the new features of the language (mainly pattern matching and function overloading) as well as some technical docs on how the standard library works and how the standard entities (i.e. flow control) are implemented.

So all told probably another couple of weekends at a minimum, plus polishing time and whatever other stuff crops up along the way.

After Release 10 goes out the door, it'll be time to look towards the traditional GDC 2011 Preview Kit release. I'm not sure if the GDC'11 kit will be Release 11 or Release 12; it really depends on how much time I can dig up between now and then. R11 will primarily focus on getting Win32 support back into the language, so that it's possible to write real software that lives beyond the confines of the console and its limited debug interactivity. Assuming that goes well, R12's goal will be to reintroduce all of the parallelism features of former releases. In particular I want R12 to have some solid threading and CUDA support, and possibly an OpenCL cross-compiler as well.

Whether R11 or R12 goes to GDC, I want to write a simple, quick arcade-type game that shows off the language. Something like a Raptor clone appeals to me; the artwork should be easy enough even for a hack like myself, and there's no sophisticated logic or complex balancing or any of that jazz to make life difficult. Just a couple different enemies, a few weapons, a boss, and some simple cartoonish artwork, and I'll have a demo.

The plan here is to have the demo ready for GDC'11, so that I can finally prove that Epoch is a viable language for game development - which, after all, was what it was originally meant to be!

So... all that said, I'm pretty stoked about the whole thing. The language is finally shaping up into something that's enjoyable to use, and with a little more investment, it should be a powerfully kick-ass platform for development.

For now, though, I really, really need some sleep.

Sign in to follow this  
Followers 0


There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now